/* Root Container */
.property-gallery-container {
    --gallery-radius: 0.75rem;
    --gallery-gap: 0.5rem;
    margin-bottom: 2rem;
}

/* ====================
   Desktop Gallery Layout
======================= */
.airbnb-gallery-desktop {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--gallery-gap);
    height: 500px;
}

.airbnb-gallery-main {
    grid-row: span 2;
    position: relative;
    border-radius: var(--gallery-radius);
    overflow: hidden;
    height: 100%;
}

.gallery-slide {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--gallery-radius);
}

/* Arrows */
.swiper-button-next,
.swiper-button-prev {
    top: 50% !important;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s ease;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.7);
}
.swiper-button-next i,
.swiper-button-prev i {
    font-size: 20px;
    line-height: 1;
}

/* Counter on main image */
.gallery-counter {
    position: absolute;
    bottom: 0.75rem;
    right: 1rem;
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    z-index: 10;
}

/* ====================
   Thumbnails
======================= */
.airbnb-gallery-grid {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: var(--gallery-gap);
    height: 100%;
}
.airbnb-gallery-item {
    position: relative;
    height: 100%;
    border-radius: var(--gallery-radius);
    overflow: hidden;
}
.airbnb-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.airbnb-gallery-last .airbnb-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--gallery-radius);
    cursor: pointer;
    transition: background 0.3s ease;
}
.airbnb-gallery-last .airbnb-gallery-overlay:hover {
    background: rgba(0, 0, 0, 0.7);
}

.airbnb-show-all-btn {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255,255,255,0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

/* clickable image buttons */
.gallery-image-btn {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

/* ====================
   Mobile Gallery Layout
======================= */
.mobile-gallery          { position: relative; }
.mobile-gallery-slide img{
    width: 100%;
    height: 60vw;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--gallery-radius);
}
.mobile-gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem .5rem 0;
}
.mobile-gallery-counter  { font-size: 0.875rem; color: #444; }
.mobile-show-all-btn     {
    font-size: 0.75rem;
    background-color: #f5f5f5;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    border: 1px solid #ddd;
}

/* nav arrows on mobile */
.mobile-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 10; transition: background 0.3s ease;
}
.mobile-gallery-nav:hover{ background: rgba(0, 0, 0, 0.7); }
.mobile-gallery-nav i    { font-size: 20px; line-height: 1; pointer-events: none; }
.mobile-gallery-nav-prev { left: 10px; }
.mobile-gallery-nav-next { right: 10px; }

/* dots (optional) */
.mobile-gallery-dot      {
    width: 6px; height: 6px; margin: 0 3px;
    background: #ccc; border-radius: 50%;
    display: inline-block; transition: all .2s ease;
}
.mobile-gallery-dot.active{ background: var(--primary, #EA5739); }

/* ====================
   Responsive helpers
======================= */
@media (max-width: 767.98px){
    .airbnb-gallery-desktop{ display:none!important; }
    .d-md-none{ display:block!important; }
}
@media (min-width: 768px){
    .d-md-none{ display:none!important; }
    .airbnb-gallery-desktop{ display:grid!important; }
}

/* ---------- OPTIONAL EXTRAS ---------- */
.pswp--open .pswp__bg { background: rgba(0,0,0,0.9); } /* darker overlay */
