/* ============================================================
   DESTINATIONS SYSTEM — our-destinations.css
   Responsive hover-flip grid for Main & Specific Destinations
   Pairs with: archive-main_destination.php, single-main_destination.php
   ============================================================ */

/* ============================================================
   1. PAGE HERO BANNER
   ============================================================ */
.dest-archive-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a2e2b 0%, #00635c 60%, #004d47 100%);
}

.dest-archive-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('') center/cover no-repeat;
    opacity: 0.18;
}

.dest-hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.dest-hero-particles span {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    animation: ttm-float 6s infinite ease-in-out;
}

.dest-hero-particles span:nth-child(1)  { top: 20%; left: 10%; animation-delay: 0s;    animation-duration: 7s;  }
.dest-hero-particles span:nth-child(2)  { top: 60%; left: 25%; animation-delay: 1s;    animation-duration: 5s;  }
.dest-hero-particles span:nth-child(3)  { top: 35%; left: 50%; animation-delay: 2s;    animation-duration: 8s;  }
.dest-hero-particles span:nth-child(4)  { top: 75%; left: 70%; animation-delay: 0.5s;  animation-duration: 6s;  }
.dest-hero-particles span:nth-child(5)  { top: 15%; left: 85%; animation-delay: 1.5s;  animation-duration: 9s;  }
.dest-hero-particles span:nth-child(6)  { top: 50%; left: 90%; animation-delay: 3s;    animation-duration: 7s;  }
.dest-hero-particles span:nth-child(7)  { top: 85%; left: 40%; animation-delay: 2.5s;  animation-duration: 5s;  }
.dest-hero-particles span:nth-child(8)  { top: 40%; left: 75%; animation-delay: 0.8s;  animation-duration: 8s;  }

@keyframes ttm-float {
    0%, 100% { transform: translateY(0px) scale(1);   opacity: 0.4; }
    50%       { transform: translateY(-20px) scale(1.5); opacity: 0.9; }
}

.dest-hero-inner {
    position: relative;
    z-index: 2;
    padding: 60px 20px;
}

.dest-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    padding: 6px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
    backdrop-filter: blur(6px);
}

.dest-hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    margin: 0 0 18px;
    letter-spacing: -1px;
}

.dest-hero-title span {
    color: #00d4c8;
}

.dest-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 560px;
    margin: 0 auto 30px;
    line-height: 1.7;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.dest-hero-scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.5);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.3s;
}
.dest-hero-scroll:hover { opacity: 0.8; color: #00d4c8; }
.dest-hero-scroll svg   { animation: bounce-arrow 1.5s ease infinite; }

@keyframes bounce-arrow {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(6px); }
}

/* Wave divider */
.dest-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.dest-hero-wave svg { display: block; width: 100%; }


/* ============================================================
   2. ARCHIVE SECTION WRAPPER
   ============================================================ */
.dest-archive-section {
    padding: 80px 0 100px;
    background: #fafafa;
    min-height: 60vh;
}

[data-theme="dark"] .dest-archive-section {
    background: #0d1a19;
}

.dest-archive-header {
    text-align: center;
    margin-bottom: 60px;
}

.dest-section-tag {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #00847c;
    background: rgba(0, 132, 124, 0.08);
    border: 1px solid rgba(0, 132, 124, 0.2);
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.dest-section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #0a2e2b;
    margin: 0 0 14px;
    line-height: 1.2;
}

[data-theme="dark"] .dest-section-title { color: #e0f7f5; }

.dest-section-desc {
    color: #666;
    max-width: 560px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

[data-theme="dark"] .dest-section-desc { color: #a0bfbb; }


/* ============================================================
   3. DESTINATIONS GRID
   ============================================================ */
.dest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 0 20px;
}

@media (max-width: 1024px) { .dest-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 640px)  { .dest-grid { grid-template-columns: 1fr; gap: 20px; padding: 0 16px; } }


/* ============================================================
   4. HOVER-FLIP DESTINATION CARD
   ============================================================ */
.dest-card {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.4s ease;
}

.dest-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 132, 124, 0.25);
}

/* ── Background image layers ── */
.dest-card-bg,
.dest-card-hover-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 20px;
}

.dest-card-bg {
    opacity: 1;
    transform: scale(1);
}

.dest-card-hover-bg {
    opacity: 0;
    transform: scale(1.08);
}

.dest-card:hover .dest-card-bg     { opacity: 0; transform: scale(1.06); }
.dest-card:hover .dest-card-hover-bg { opacity: 1; transform: scale(1); }

/* ── Gradient overlays ── */
.dest-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 20, 18, 0.88) 0%,
        rgba(0, 50, 45, 0.45) 45%,
        transparent 100%
    );
    border-radius: 20px;
    z-index: 1;
    transition: background 0.5s ease;
}

.dest-card:hover .dest-card-gradient {
    background: linear-gradient(
        to top,
        rgba(0, 20, 18, 0.95) 0%,
        rgba(0, 80, 70, 0.60) 50%,
        rgba(0, 0, 0, 0.15) 100%
    );
}

/* ── Card inner content ── */
.dest-card-inner {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 26px;
}

/* Default state — title + location badge */
.dest-card-default {
    transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.dest-card-location {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #00d4c8;
    margin-bottom: 8px;
    font-family: 'Orbitron', sans-serif;
}

.dest-card-location svg { width: 12px; height: 12px; }

.dest-card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.dest-card-subtitle {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

/* Hover state — description + CTA */
.dest-card-hover-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 22px 26px 26px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 3;
}

.dest-card:hover .dest-card-default         { opacity: 0; transform: translateY(-10px); }
.dest-card:hover .dest-card-hover-content   { opacity: 1;  transform: translateY(0); }

.dest-card-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0 0 16px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.dest-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #00847c;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 11px 22px;
    border-radius: 50px;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.15);
}

.dest-card-cta:hover {
    background: #00635c;
    color: #ffffff;
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(0, 132, 124, 0.4);
}

.dest-card-cta svg { transition: transform 0.2s ease; }
.dest-card-cta:hover svg { transform: translateX(3px); }

/* ── Card badge (top-left) ── */
.dest-card-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 4;
    background: rgba(0, 132, 124, 0.85);
    color: #fff;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
    padding: 4px 12px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* ── Count badge (top-right) ── */
.dest-card-count {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 4;
    background: rgba(0, 0, 0, 0.45);
    color: rgba(255,255,255,0.85);
    font-size: 9px;
    letter-spacing: 1px;
    font-family: 'Orbitron', sans-serif;
    padding: 4px 10px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
}


/* ============================================================
   5. EMPTY STATE
   ============================================================ */
.dest-empty-state {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}

.dest-empty-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 132, 124, 0.08);
    border: 2px solid rgba(0, 132, 124, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #00847c;
}

.dest-empty-state h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: #0a2e2b;
    margin: 0 0 10px;
}

[data-theme="dark"] .dest-empty-state h3 { color: #e0f7f5; }

.dest-empty-state p {
    color: #888;
    font-size: 0.95rem;
    max-width: 380px;
    margin: 0 auto;
    line-height: 1.6;
}


/* ============================================================
   6. SINGLE MAIN DESTINATION — Hero Section
   ============================================================ */
.dest-single-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.dest-single-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.dest-single-hero.loaded .dest-single-hero-bg { transform: scale(1); }

.dest-single-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 20, 18, 0.95) 0%,
        rgba(0, 50, 45, 0.6) 40%,
        rgba(0, 0, 0, 0.2) 100%
    );
}

.dest-single-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 60px 0 50px;
}

.dest-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.dest-breadcrumb a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.dest-breadcrumb a:hover  { color: #00d4c8; }
.dest-breadcrumb span     { color: rgba(255,255,255,0.35); }
.dest-breadcrumb .current { color: rgba(255,255,255,0.9); }

.dest-single-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 18px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.dest-single-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.dest-single-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.dest-single-meta-item svg { color: #00d4c8; }


/* ============================================================
   7. SINGLE MAIN DESTINATION — Intro + Sub-grid
   ============================================================ */
.dest-single-section {
    padding: 70px 0 100px;
    background: #fafafa;
}

[data-theme="dark"] .dest-single-section { background: #0d1a19; }

.dest-single-intro {
    max-width: 740px;
    margin: 0 auto 60px;
    text-align: center;
}

.dest-single-intro h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #0a2e2b;
    margin: 0 0 16px;
}

[data-theme="dark"] .dest-single-intro h2 { color: #e0f7f5; }

.dest-single-intro p {
    color: #555;
    font-size: 1rem;
    line-height: 1.8;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

[data-theme="dark"] .dest-single-intro p { color: #a0bfbb; }

/* Intro content from Elementor / editor */
.dest-page-content {
    margin-bottom: 60px;
}

/* Sub-destination grid heading */
.dest-sub-grid-heading {
    text-align: center;
    margin-bottom: 40px;
}

.dest-sub-grid-heading h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0a2e2b;
    margin: 0 0 10px;
}

[data-theme="dark"] .dest-sub-grid-heading h2 { color: #e0f7f5; }

.dest-sub-grid-heading p {
    color: #777;
    font-size: 0.95rem;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}


/* ============================================================
   8. SPECIFIC DESTINATION — Single Hero
   ============================================================ */
.specific-dest-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.specific-dest-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    animation: hero-drift 14s ease-in-out infinite alternate;
}

@keyframes hero-drift {
    0%   { transform: scale(1) translateX(0); }
    100% { transform: scale(1.06) translateX(-10px); }
}

.specific-dest-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(0, 10, 8, 0.55) 0%,
        rgba(0, 30, 28, 0.85) 100%
    );
}

.specific-dest-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 60px 0 55px;
}

.specific-dest-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #00d4c8;
    margin-bottom: 14px;
}

.specific-dest-eyebrow a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s, opacity 0.3s;
}

.specific-dest-eyebrow a:hover { opacity: 0.7; }

.specific-dest-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    padding: 7px 16px;
    transition: all 0.3s ease;
    margin-bottom: 22px;
    backdrop-filter: blur(6px);
    background: rgba(255,255,255,0.05);
    width: fit-content;
}

.specific-dest-back-link:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.5);
    transform: translateX(-4px);
}

.specific-dest-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 16px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.specific-dest-excerpt {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 600px;
    line-height: 1.7;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    margin: 0;
}

/* Wave divider reuse */
.dest-wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.dest-wave-divider svg { display: block; width: 100%; }

/* ── Content zone below hero ── */
.specific-dest-content-zone {
    padding: 60px 0 100px;
    background: #fafafa;
}

[data-theme="dark"] .specific-dest-content-zone { background: #0d1a19; }

.specific-dest-content-zone .container {
    max-width: 1100px;
}


/* ============================================================
   9. COMING SOON EMPTY STATE (specific sub-grid)
   ============================================================ */
.dest-coming-soon {
    text-align: center;
    padding: 60px 24px;
    background: linear-gradient(135deg, rgba(0,132,124,0.05), rgba(0,132,124,0.02));
    border: 2px dashed rgba(0,132,124,0.2);
    border-radius: 20px;
    grid-column: 1 / -1;
}

.dest-coming-soon-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(0, 132, 124, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    color: #00847c;
    font-size: 28px;
}

.dest-coming-soon h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: #0a2e2b;
    margin: 0 0 10px;
}

[data-theme="dark"] .dest-coming-soon h3 { color: #e0f7f5; }

.dest-coming-soon p {
    color: #888;
    font-size: 0.9rem;
    max-width: 350px;
    margin: 0 auto;
    line-height: 1.6;
}


/* ============================================================
   10. UTILITY — Header offset for this CPT archive
   ============================================================ */
.post-type-archive-main_destination .site-header,
.single-main_destination .site-header,
.single-specific_destination .site-header {
    position: relative !important;
}


/* ============================================================
   11. RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 768px) {
    .dest-archive-hero   { min-height: 320px; }
    .dest-single-hero    { min-height: 380px; }
    .specific-dest-hero  { min-height: 360px; }

    .dest-card { height: 340px; }

    .dest-card-cta { padding: 9px 18px; font-size: 10px; }

    .dest-single-meta { gap: 12px; }
}

@media (max-width: 480px) {
    .dest-card { height: 300px; }
    .dest-hero-title { font-size: 1.8rem; }
    .dest-single-title { font-size: 1.8rem; }
    .specific-dest-title { font-size: 1.6rem; }
}


/* ============================================================
   12. AOS ANIMATION COMPATIBILITY
   ============================================================ */
[data-aos] .dest-card-inner { overflow: hidden; }
