/* ===================================
   HEVELA - Destinations/Offers Section
   Editorial Fine Art Style
   =================================== */

.destinations {
    position: relative;
    background: #ffffff;
    /* Contrast against the black cards */
    color: #1a2332;
    overflow: visible;
    padding-top: 120px;
    padding-bottom: 20vh;
    /* Increased to avoid sticky header sinking into the next section */
}

/* ============================================
   LAYOUT (Sticky Sidebar)
   ============================================ */
.destinations-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.dest-sticky-header {
    width: 35%;
    position: sticky;
    top: 25vh;
    margin-bottom: 25vh;
    /* Forces the sticky element to stop before the bottom of the section */
}

/* ============================================
   SECTION HEADER (Sidebar Style)
   ============================================ */
.destinations .section-header {
    text-align: right;
    margin-bottom: 0;
}

.destinations .section-title {
    color: #050505;
    font-weight: 800;
}

.destinations .section-title-en {
    color: #a0abb8;
    letter-spacing: 2px;
}

.destinations .section-subtitle {
    color: #5c6a7a;
    font-weight: 400;
}

.destinations .section-title-line {
    margin-right: 0;
    margin-left: auto;
}

/* ============================================
   STICKY STACKING CONTAINER
   ============================================ */
.dest-stack-container {
    position: relative;
    width: 60%;
    padding-bottom: 10vh;
    /* Reduced extra space */
}

/* ============================================
   EDITORIAL CARD (Light Pearl / Frosted Glass)
   ============================================ */
.offer-card {
    position: sticky;
    top: 15vh;
    height: 420px;
    /* Explicit height to allow image to stretch */
    min-height: auto;
    margin-bottom: 8vh;

    background: rgba(255, 255, 255, 0.9);
    /* Frosted pearl white */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(15, 166, 142, 0.15);
    /* Soft teal border */
    border-radius: 20px;
    /* Slightly softer corners for compact size */
    box-shadow: 0 30px 60px rgba(26, 35, 50, 0.05);
    /* Very soft dark shadow */
    overflow: hidden;
    color: #1a2332;
    /* Dark text for readability */
    display: flex;
    transform-origin: center top;
    will-change: transform, filter;

    /* Removed padding from the card to allow edge-to-edge image */
    padding: 0;
    gap: 0;
}

/* Ambient glow inside the card for luxury feel */
.offer-card::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(15, 166, 142, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   CONTENT COLUMN (Editorial Typography)
   ============================================ */
.offer-content-col {
    width: 50%;
    /* Rebalance width */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    padding: 30px;
    /* Add padding here since card has none */
}

.offer-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.offer-subtitle-en {
    font-family: var(--font-en);
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--clr-primary);
    margin-bottom: 8px;
    /* Tighter margin */
    display: block;
}

.offer-title {
    font-family: var(--font-ar);
    font-size: clamp(2rem, 3vw, 2.5rem);
    /* Smaller title */
    font-weight: 300;
    /* Thin, elegant typography */
    color: #1a2332;
    /* Deep dark blue-grey */
    line-height: 1.1;
    margin-bottom: 12px;
    /* Tighter margin */
}

.offer-stars {
    display: flex;
    gap: 4px;
    /* Tighter stars */
    color: var(--clr-primary);
}

.offer-stars svg {
    width: 16px;
    /* Smaller stars */
    height: 16px;
    fill: currentColor;
}

/* Details Grid */
.offer-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Tighter gap */
    margin: auto 0;
    /* Push to center vertically */
    padding-left: 15px;
    border-left: 1px solid rgba(26, 35, 50, 0.08);
    /* Soft separator */
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    /* Tighter gap */
}

.detail-icon {
    color: var(--clr-primary);
    /* Changed from clr-accent to clr-primary (green) */
    opacity: 0.9;
}

.detail-icon svg {
    width: 20px;
    /* Smaller icon */
    height: 20px;
    stroke-width: 1.5;
}

.detail-text {
    font-family: var(--font-ar);
    font-size: 1.05rem;
    /* Smaller text */
    font-weight: 400;
    color: #5c6a7a;
    /* Medium soft grey */
    letter-spacing: 0.5px;
}

/* Price & CTA */
.offer-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 25px;
    /* Tighter padding */
    border-top: 1px solid rgba(26, 35, 50, 0.08);
}

.offer-price-wrapper {
    display: flex;
    flex-direction: column;
}

.offer-price-label {
    font-family: var(--font-ar);
    font-size: 0.9rem;
    /* Smaller label */
    color: #8a9bb0;
    /* Light grey text */
    margin-bottom: 4px;
    font-weight: 300;
}

.offer-price {
    font-family: var(--font-en);
    font-size: clamp(2rem, 2.5vw, 3rem);
    /* Smaller price */
    font-weight: 200;
    /* Ultra thin for that Vogue look */
    color: #1a2332;
    line-height: 0.9;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.offer-price span {
    font-family: var(--font-ar);
    font-size: 1rem;
    font-weight: 400;
    color: var(--clr-primary);
}

/* ============================================
   IMAGE COLUMN (Fine Art Frame)
   ============================================ */
.offer-art-col {
    width: 50%;
    height: 100%;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-art-frame {
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.offer-art-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.offer-image {
    width: 100%;
    height: 100%;
    /* Changed from 125% to prevent cropping */
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
    filter: grayscale(20%) contrast(110%);
    transition: filter 0.5s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.offer-card:hover .offer-image {
    filter: grayscale(0%) contrast(100%);
    transform: scale(1.05);
    /* Smooth, subtle zoom on hover instead of heavy parallax */
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .offer-card {
        /* Edge to edge preserved */
    }

    .offer-title {
        font-size: 2.8rem;
    }

    .offer-price {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .destinations {
        padding-top: 80px;
        padding-bottom: 60px;
        overflow: hidden;
    }

    .destinations-layout {
        flex-direction: column;
        gap: 40px;
    }

    .dest-sticky-header {
        width: 100%;
        position: static;
        margin-bottom: 0;
    }

    .destinations .section-header {
        text-align: center;
    }

    .destinations .section-title-line {
        margin: 0 auto;
    }

    /* Image-Only Carousel — image drives the size */
    .dest-stack-container {
        width: 100%;
        position: relative;
        height: auto;
        margin-bottom: 0;
        overflow: visible;
    }

    .offer-card {
        display: none;
        width: 100%;
        flex-direction: column;
        min-height: auto;
        min-width: auto;
        max-width: none;
        margin-bottom: 0;
        padding: 0;
        border-radius: 16px;
        box-shadow: none;
        background: #ffffff;
        border: none;
        backdrop-filter: none;
        overflow: hidden;
        cursor: pointer;
    }

    .offer-card.mobile-active {
        display: block;
    }

    /* Hide content column on mobile */
    .offer-content-col {
        display: none;
    }

    .offer-art-col {
        width: 100%;
        height: auto;
        order: 1;
        margin-bottom: 0;
        border-radius: 16px;
        overflow: hidden;
        background: #ffffff;
    }

    .offer-art-frame {
        border-radius: 16px;
        background: #ffffff;
        height: auto;
    }

    .offer-art-container {
        background: #ffffff;
        height: auto;
        position: static;
    }

    .offer-image {
        width: 100%;
        height: auto;
        min-height: 480px;
        position: static;
        display: block;
        object-fit: contain;
        filter: none !important;
        /* Explicitly remove grayscale from desktop styles */
        border-radius: 16px;
        background: #ffffff;
    }

    /* Removed shadow gradient as requested */
    .offer-card::after {
        display: none;
    }

    /* Remove ambient glow on mobile */
    .offer-card::before {
        display: none;
    }

    /* Hide labels on card as requested */
    .offer-card .offer-mobile-label {
        display: none;
    }

    .offer-card .offer-mobile-label .offer-mobile-title {
        font-size: 1.6rem;
        font-weight: 700;
        margin-bottom: 4px;
    }

    .offer-card .offer-mobile-label .offer-mobile-subtitle {
        font-size: 0.85rem;
        opacity: 0.8;
    }

    .offer-card .offer-mobile-label .offer-mobile-tap {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-top: 10px;
        font-size: 0.8rem;
        color: var(--clr-primary-light);
        font-weight: 600;
    }

    .offer-card .offer-mobile-tap svg {
        width: 16px;
        height: 16px;
    }

    /* Mobile Dots Navigation */
    .offers-dots-nav {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 15px;
        /* Directly under the card */
    }

    .offers-dot-nav {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(15, 166, 142, 0.2);
        border: none;
        padding: 0;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .offers-dot-nav.active {
        background: var(--clr-primary);
        transform: scale(1.3);
        box-shadow: 0 0 15px rgba(15, 166, 142, 0.3);
    }
}

/* Offer Popup Modal */
.offer-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.offer-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.offer-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 85vh;
    background: #fff;
    border-radius: 24px 24px 0 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.offer-popup.active {
    transform: translateY(0);
}

.offer-popup-handle {
    display: flex;
    justify-content: center;
    padding: 12px 0 8px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    border-radius: 24px 24px 0 0;
}

.offer-popup-handle span {
    width: 40px;
    height: 4px;
    background: #d0d5dd;
    border-radius: 2px;
}

/* Image hidden in popup as requested */
.offer-popup-image {
    display: none;
}

.offer-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Full image in popup */
    background: #000;
}

.offer-popup-body {
    padding: 24px;
    direction: rtl;
}

.offer-popup-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: 4px;
}

.offer-popup-subtitle {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--clr-primary);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 20px;
}

.offer-popup-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
    padding-right: 12px;
    border-right: 2px solid rgba(15, 166, 142, 0.15);
}

.offer-popup-detail {
    display: flex;
    align-items: center;
    gap: 12px;
}

.offer-popup-detail svg {
    width: 20px;
    height: 20px;
    color: var(--clr-primary);
    flex-shrink: 0;
}

.offer-popup-detail span {
    font-size: 0.95rem;
    color: #5c6a7a;
}

.offer-popup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #edf0f4;
}

.offer-popup-price-label {
    font-size: 0.85rem;
    color: #8a9bb0;
}

.offer-popup-price {
    font-size: 1.8rem;
    font-weight: 200;
    color: #1a2332;
}

.offer-popup-price span {
    font-size: 0.9rem;
    color: var(--clr-primary);
    font-weight: 500;
}

.offer-popup-book {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--clr-primary);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.offer-popup-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 166, 142, 0.3);
}

/* Hide dots on desktop only */
@media (min-width: 993px) {
    .offers-dots-nav {
        display: none;
    }
}

@media (max-width: 600px) {
    .destinations {
        padding-top: 60px;
        padding-bottom: 40px;
    }
}