/* ==========================================================================
   DESTINATIONS SHOWCASE PAGE STYLES — MODERN LOOK
   Palette: Crisp White, Charcoal, Teal, Soft Mint
   ========================================================================== */

/* Universal Reset Safeguard */
.destinations-page,
.destinations-page *,
.destinations-page *::before,
.destinations-page *::after {
    box-sizing: border-box;
}

/* 1. Page Background & Layout */
.destinations-page {
    background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
    color: #0F172A;
    padding: 10px 0 40px 0; 
    min-height: 80vh;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.destinations-showcase .container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

@media (hover: hover) {
    .btn-back:hover,
    .btn-back.back-to-home-btn:hover {
        color: #964800;
        transform: translateX(-3px);
    }
}

/* 2. Simple Centered Header Row */
.header-row-simple {
    width: 100%;
    margin-bottom: 8px; 
    text-align: center;
}

.header-row-simple .section-header {
    text-align: center;
    margin-bottom: 0;
}

.destinations-showcase .eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #0D9488;
    background: #CCFBF1;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 800;
    margin-bottom: 8px;
}

.destinations-showcase h1,
.destinations-showcase h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    color: #0F172A;
    margin: 0;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

/* 3. Filter Bar */
.dest-filter-bar-container {
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 14px;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
    border: 1px solid #E2E8F0;
    margin-bottom: 6px; 
    flex-wrap: nowrap;
    overflow: hidden;
}

.filter-btn-single {
    flex: 1 1 0px;
    height: 38px;
    background: #F1F5F9;
    color: #334155;
    border: none;
    padding: 0 8px;
    border-radius: 20px;
    font-size: clamp(0.68rem, 0.8vw, 0.78rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 0;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filter-btn-single.active {
    background: #0D9488;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.filter-divider {
    width: 1px;
    height: 28px;
    background-color: #E2E8F0;
    flex-shrink: 0;
    margin: 0 2px;
}

.filter-column-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    flex: 3 1 0px;
    min-width: 0;
}

.filter-group-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #94A3B8;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
}

.filter-buttons-row {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
}

.filter-buttons-row .filter-btn {
    background: #F1F5F9;
    color: #334155;
    border: none;
    height: 34px;
    padding: 0 6px;
    border-radius: 16px;
    font-size: clamp(0.65rem, 0.75vw, 0.76rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex: 1 1 0px;
    min-width: 0;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (hover: hover) {
    .filter-btn-single:hover,
    .filter-buttons-row .filter-btn:hover {
        background: #E2E8F0;
        color: #0F172A;
    }
}

.filter-buttons-row .filter-btn.active {
    background: #0D9488;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

/* 4. Status & Grid Layout */
.grid-status-bar {
    width: 100%;
    text-align: right;
    font-size: 0.72rem;
    color: #64748B;
    margin-bottom: 12px;
    font-weight: 500;
}

.destinations-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* ==========================================================================
   5. Destination Cards — Modern Event Card Design
   ========================================================================== */
.destination-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #E2E8F0;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0 !important;
    width: 100%;
    min-width: 0;
}

.destination-card:focus-visible {
    outline: 2px solid #0D9488;
    outline-offset: 4px;
}

@media (hover: hover) {
    .destination-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
        border-color: #0D9488;
    }

    .destination-card:hover .dest-image-wrapper img {
        transform: scale(1.05);
    }
}

/* Image Wrapper - Full width, no gaps */
.dest-image-wrapper {
    position: relative;
    width: 100% !important;
    height: 180px;
    overflow: hidden;
    background-color: #CBD5E1;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    flex-shrink: 0;
}

.dest-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: transform 0.5s ease;
}

/* Date overlay - now styled like the event-date-badge */
.dest-card-date {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    color: #5EEAD4;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.4) 100%);
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    z-index: 2;
    margin: 0;
    line-height: 1.4;
    text-align: left;
}

/* Season badge - now styled like the event-date-badge .type */
.dest-card-season {
    position: absolute;
    top: 12px;
    right: 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 50px;
    z-index: 3;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.4;
}

/* Card Body — Modern clean padding */
.dest-card-body {
    padding: 20px !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
    background: #ffffff;
    margin: 0;
    gap: 0;
    width: 100%;
}

/* Hashtag styling — matches .event-tag */
.dest-card-hashtag {
    font-size: 0.72rem !important;
    font-weight: 800;
    color: #0D9488;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px !important;
    display: block;
    padding: 0;
    line-height: 1.3;
    width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Title / Location Name — matches .event-card-body h3 */
.dest-card-body h3 {
    font-size: 1.1rem !important;
    margin: 0 0 8px 0 !important;
    color: #0F172A;
    line-height: 1.3 !important;
    font-weight: 700;
    letter-spacing: -0.3px;
    width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    padding: 0;
}

.dest-card-body h3 a {
    color: #0F172A;
    text-decoration: none;
    transition: color 0.2s ease;
}

.dest-card-body h3 a:hover {
    color: #0D9488;
}

/* Horizontal divider line — hidden in modern design */
.dest-card-divider {
    display: none !important;
}

/* Location / Summary Text — matches .event-desc */
.dest-summary {
    font-size: 0.82rem !important;
    color: #475569;
    line-height: 1.45 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-grow: 1;
    width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Tags (kept for backwards compatibility) */
.dest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.dest-tags .tag {
    background: #F8FAFC;
    color: #64748B;
    border: 1px solid #E2E8F0;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ==========================================================================
   5b. Departure Card Specific Elements
   ========================================================================== */
.dest-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    margin: 12px 0 16px 0;
    padding: 0;
    box-sizing: border-box;
}

.dest-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.dest-feature-icon {
    font-size: 1.1rem;
    margin-bottom: 4px;
    line-height: 1;
}

.dest-feature-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #94A3B8;
    text-transform: uppercase;
    margin: 0 0 2px 0;
    line-height: 1.2;
}

.dest-feature-value {
    font-size: 0.78rem;
    color: #0F172A;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    word-break: break-word;
}

.dest-feature-value.price {
    color: #0D9488;
    font-size: 1rem;
    font-weight: 700;
}

.dest-price-per-person {
    display: block;
    font-size: 0.6rem;
    font-weight: 500;
    color: #94A3B8;
    text-transform: uppercase;
    margin-top: 2px;
}

.dest-inclusions {
    font-size: 0.72rem;
    color: #64748B;
    line-height: 1.5;
    margin: 0 0 16px 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    text-align: center;
    word-break: break-word;
    overflow-wrap: break-word;
}

.dest-inclusions strong {
    color: #0F172A;
    font-weight: 700;
}

.dest-view-link {
    display: inline-block;
    color: #0D9488;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    margin: 0 0 14px 0;
    padding: 0;
    transition: color 0.2s ease;
    max-width: 100%;
    word-break: break-word;
}

.dest-view-link:hover {
    color: #0F766E;
    text-decoration: underline;
}

.dest-book-btn {
    width: 100%;
    max-width: 100%;
    background: #0F172A;
    color: #ffffff;
    border: none;
    padding: 12px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    margin: 0;
    letter-spacing: 0.3px;
    box-sizing: border-box;
    word-break: break-word;
}

.dest-book-btn:hover {
    background: #0D9488;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
    transform: translateY(-2px);
}

/* 6. Load More & Messages */
.no-data-msg {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    color: #64748B;
    padding: 40px 0;
}

.load-more-wrapper {
    width: 100%;
    text-align: center;
    margin-top: 32px;
}

.btn-load-more {
    background: #0F172A;
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.1);
    transition: all 0.3s ease;
}

.btn-load-more:focus-visible {
    outline: 2px solid #0D9488;
    outline-offset: 3px;
}

@media (hover: hover) {
    .btn-load-more:hover {
        background: #0D9488;
        transform: translateY(-2px);
        box-shadow: 0 10px 15px -3px rgba(13, 148, 136, 0.3);
    }
}

/* ==========================================================================
   7. Details Modal
   ========================================================================== */

.dest-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.dest-modal.active,
.dest-modal.is-open,
.dest-modal[style*="display: flex"] {
    display: flex !important;
}

.dest-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
}

.dest-modal-content {
    position: relative;
    background: #ffffff;
    width: 100%;
    max-width: 900px;
    height: 500px;         
    max-height: 85vh;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    z-index: 100000;
    display: flex;
    flex-direction: row;
}

.dest-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    align-self: flex-start;
    flex: 0 0 auto;
    transition: all 0.2s ease;
}

.dest-modal-close:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

@media (hover: hover) {
    .dest-modal-close:hover {
        background: #0D9488;
        transform: scale(1.08);
    }
}

.dest-modal-hero {
    position: relative;
    width: 50%;
    height: 100%;
    background-color: #0F172A;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.dest-modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    object-position: center;
    display: block;
}

.dest-modal-badge {
    position: absolute;
    bottom: 14px;
    left: 16px;
    background: #0D9488;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    z-index: 3;
}

.dest-modal-body {
    width: 50%;
    height: 100%;           
    padding: 28px;
    overflow-y: auto;       
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

.dest-modal-body h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    color: #0F172A;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
    text-align: left;
    flex-shrink: 0;
}

.dest-modal-body p,
.dest-modal-formatted-desc {
    color: #475569;
    line-height: 1.7;
    font-size: 0.9rem;
    margin-bottom: 14px;
    text-align: left;
}

.dest-modal-highlights h4 {
    font-size: 1rem;
    color: #0F172A;
    margin-bottom: 10px;
    font-weight: 700;
    text-align: left;
}

.dest-modal-highlights ul {
    padding-left: 18px;
    margin-bottom: 16px;
    list-style-position: outside;
}

.dest-modal-highlights li {
    color: #475569;
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-align: left;
}

.dest-modal-btn {
    width: 100%;
    background: #0F172A;
    color: #ffffff;
    border: none;
    padding: 12px 14px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: auto;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

@media (hover: hover) {
    .dest-modal-btn:hover {
        background: #0D9488;
        transform: translateY(-2px);
        box-shadow: 0 10px 15px -3px rgba(13, 148, 136, 0.3);
    }
}

/* 8. Responsive Mobile Rules */
@media (max-width: 1024px) {
    .dest-filter-bar-container {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 12px 10px;
    }

    .filter-btn-single {
        flex: 0 0 auto;
        padding: 0 16px;
    }

    .filter-column-group {
        flex: 0 0 auto;
    }

    .filter-buttons-row .filter-btn {
        flex: 0 0 auto;
        padding: 0 12px;
    }
}

@media (max-width: 768px) {
    .destinations-page {
        padding-top: 20px; 
    }

    .destinations-showcase .container {
        padding: 0 16px;
    }

    .header-row-simple .section-header {
        text-align: center;
    }

    .filter-column-group {
        align-items: flex-start;
    }

    .filter-buttons-row {
        flex-wrap: nowrap;
    }

    .filter-divider {
        display: none;
    }

    .grid-status-bar {
        text-align: center;
    }

    .dest-modal-content {
        flex-direction: column;
        max-width: 100%;
        height: auto;
        max-height: 90vh;
        overflow: hidden;
        border-radius: 20px;
    }

    .dest-modal-hero {
        width: 100%;
        height: 35vh;
        flex-shrink: 0;
    }

    .dest-modal-body {
        width: 100%;
        height: auto;
        max-height: calc(90vh - 35vh);
        padding: 20px;
        overflow-y: auto;
    }

    /* Mobile tweaks for destination cards */
    .dest-image-wrapper { height: 180px; }
    .dest-card-body { padding: 18px !important; }
    .dest-card-body h3 { font-size: 1rem !important; }
    .dest-features-grid { gap: 8px; }
    .dest-feature-label { font-size: 0.55rem; }
    .dest-feature-value { font-size: 0.72rem; }
    .dest-price-per-person { font-size: 0.5rem; }
    .dest-book-btn { padding: 10px; font-size: 0.78rem; }
    .dest-view-link { font-size: 0.72rem; }
    .dest-inclusions { font-size: 0.68rem; }
}

/* 9. Chatbot Stacking Priority Fix */
#chatbot-container,
.chatbot-widget,
.chatbot-toggle-btn {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    z-index: 999999 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.chatbot-window {
    z-index: 1000000 !important;
}