/* ============================================================
   PACKAGES SYSTEM — our-packages.css
   Hover-flip grid for Package Cities and Package listings
   Extends/Reuses: our-destinations.css (same hover-flip component)
   ============================================================ */

/* ── Reuse all destination styles directly via class names ──
   .dest-archive-hero, .dest-grid, .dest-card, .dest-card-*
   are all already defined in our-destinations.css
   
   This file adds minimal package-specific overrides/extensions.
*/

/* ============================================================
   1. SINGLE PACKAGE CITY PAGE HERO
   ============================================================ */
.single-dest-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.single-dest-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 46, 43, 0.82) 0%, rgba(0, 99, 92, 0.68) 100%);
    z-index: 1;
}

.single-dest-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 60px 40px;
    text-align: center;
}

/* Breadcrumb navigation */
.breadcrumb-nav {
    margin-bottom: 20px;
}

.breadcrumb-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.breadcrumb-link:hover {
    color: #00d4c8;
}

/* Hero content */
.single-dest-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.single-dest-hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -1px;
}

.single-dest-hero-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    line-height: 1.7;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    margin: 0;
}

@media (max-width: 768px) {
    .single-dest-hero {
        min-height: 360px;
    }

    .single-dest-hero-inner {
        padding: 40px 20px;
    }

    .single-dest-hero-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }

    .single-dest-hero-desc {
        font-size: 0.95rem;
    }
}


/* ============================================================
   2. SINGLE PACKAGE CITY PACKAGES SECTION
   ============================================================ */
.single-dest-packages-section {
    padding: 80px 0 100px;
    background: #fafafa;
    min-height: 60vh;
}

[data-theme="dark"] .single-dest-packages-section {
    background: #0d1a19;
}

.pkg-city-grid {
    /* Reuses .dest-grid styles from our-destinations.css */
}

.pkg-card {
    /* Reuses .dest-card styles from our-destinations.css */
    cursor: pointer;
}

.pkg-card[role="button"] {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.pkg-card[role="button"]:focus-visible {
    outline: 2px solid #00d4c8;
    outline-offset: 4px;
}


/* ============================================================
   3. EMPTY STATE STYLING
   ============================================================ */
.dest-grid-empty {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================================
   4. ARCHIVE CTA SECTION
   ============================================================ */
.dest-archive-cta {
    text-align: center;
    margin-top: 60px;
    padding: 40px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 132, 124, 0.12) 0%, rgba(0, 200, 180, 0.08) 100%);
    border: 1px solid rgba(0, 132, 124, 0.2);
}

.dest-archive-cta h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #0a2e2b;
    margin: 0 0 8px;
    font-weight: 700;
}

[data-theme="dark"] .dest-archive-cta h3 {
    color: #e0f7f5;
}

.dest-archive-cta p {
    color: #666;
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto 16px;
    line-height: 1.6;
}

[data-theme="dark"] .dest-archive-cta p {
    color: #a0bfbb;
}

.dest-archive-cta-btn {
    display: inline-block;
    background: #00847c;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.dest-archive-cta-btn:hover {
    background: #00635c;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 132, 124, 0.3);
}

.dest-archive-cta-btn:active {
    transform: translateY(0);
}

@media (max-width: 640px) {
    .dest-archive-cta {
        margin-top: 40px;
        padding: 30px 16px;
    }

    .dest-archive-cta h3 {
        font-size: 1.2rem;
    }

    .dest-archive-cta p {
        font-size: 0.9rem;
    }
}


/* ============================================================
   5. POPUP MODALS - Quick View & Booking Form
   ============================================================ */

/* ── Base popup styles ── */
.ttm-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ttm-popup[aria-hidden="true"] {
    display: none;
}

.ttm-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.ttm-popup-content {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: ttm-popup-slide-in 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes ttm-popup-slide-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ttm-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
    border-radius: 6px;
}

.ttm-popup-close:hover,
.ttm-popup-close:focus {
    color: #00847c;
    outline: 2px solid rgba(0, 132, 124, 0.2);
}


/* ============================================================
   5a. QUICK-VIEW POPUP SPECIFIC
   ============================================================ */

.ttm-quickview-inner {
    padding: 40px;
}

.ttm-quickview-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #0a2e2b;
    margin: 0 0 12px;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.ttm-quickview-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.ttm-quickview-duration {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #00847c;
    font-weight: 600;
    font-size: 0.95rem;
}

.ttm-quickview-section {
    margin-bottom: 20px;
}

.ttm-quickview-section h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #0a2e2b;
    margin: 0 0 10px;
    font-weight: 700;
}

.ttm-quickview-hotel {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 8px;
}

.ttm-quickview-hotel-name {
    margin: 6px 0 8px;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.ttm-quickview-stars {
    display: flex;
    gap: 2px;
}

.ttm-star {
    font-size: 16px;
    color: #ddd;
}

.ttm-star.filled {
    color: #c9a227;
}

.ttm-quickview-places,
.ttm-quickview-vehicles {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ttm-chip {
    display: inline-block;
    background: rgba(0, 132, 124, 0.12);
    border: 1px solid rgba(0, 132, 124, 0.2);
    color: #00847c;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.ttm-quickview-price-box {
    background: linear-gradient(135deg, rgba(0, 132, 124, 0.15) 0%, rgba(0, 200, 180, 0.1) 100%);
    border: 1px solid rgba(0, 132, 124, 0.25);
    border-radius: 10px;
    padding: 16px;
    margin: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ttm-quickview-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.ttm-quickview-price {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #00847c;
}

.ttm-quickview-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}


/* ============================================================
   5b. BOOKING POPUP SPECIFIC
   ============================================================ */

.ttm-booking-inner {
    padding: 40px;
}

.ttm-booking-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0a2e2b;
    margin: 0 0 8px;
    line-height: 1.2;
}

.ttm-booking-subtitle {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 24px;
}

.ttm-booking-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ttm-form-group {
    display: flex;
    flex-direction: column;
}

.ttm-form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 6px;
}

.ttm-form-input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ttm-form-input:focus {
    outline: none;
    border-color: #00847c;
    box-shadow: 0 0 0 3px rgba(0, 132, 124, 0.1);
}

.ttm-form-row {
    flex-direction: row;
    gap: 16px;
}

.ttm-form-col {
    flex: 1;
    min-width: 120px;
}

.ttm-booking-privacy {
    color: #999;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 16px;
    line-height: 1.6;
}


/* ============================================================
   5c. BUTTON STYLES (Popups)
   ============================================================ */

.ttm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 8px;
}

.ttm-btn:focus {
    outline: 2px solid rgba(0, 132, 124, 0.5);
    outline-offset: 2px;
}

.ttm-btn-primary {
    background: #00847c;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.ttm-btn-primary:hover {
    background: #00635c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 132, 124, 0.3);
}

.ttm-btn-primary:active {
    transform: translateY(0);
}

.ttm-btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.ttm-btn-secondary:hover {
    background: #e8e8e8;
    color: #00847c;
}

.ttm-btn-full {
    width: 100%;
}


/* ============================================================
   5d. RESPONSIVE POPUPS
   ============================================================ */

@media (max-width: 640px) {
    .ttm-popup-content {
        max-width: calc(100% - 0px);
        max-height: calc(100vh - 40px);
    }

    .ttm-quickview-inner,
    .ttm-booking-inner {
        padding: 24px;
    }

    .ttm-quickview-title {
        font-size: 1.4rem;
    }

    .ttm-booking-title {
        font-size: 1.2rem;
    }

    .ttm-quickview-price-box {
        flex-direction: row;
    text-align: center;
    gap: 0px;
      padding: 8px;
    }
.ttm-quickview-price {
  font-size: 14px;
}
    .ttm-quickview-actions {
        flex-direction: column;
    }

    .ttm-form-row {
        flex-direction: column;
        gap: 0;
    }

    .ttm-form-col {
        min-width: unset;
    }
}

@media (max-width: 380px) {
    .ttm-popup-content {
        padding: 0;
        border-radius: 12px;
    }

    .ttm-quickview-inner,
    .ttm-booking-inner {
        padding: 16px;
    }

    .ttm-quickview-title,
    .ttm-booking-title {
        font-size: 12px;
    }
.ttm-quickview-duration{
      font-size: 11px;
}
.ttm-booking-subtitle {
  color: #666;
  font-size: 11px;
}
.ttm-form-input {
  padding: 5px 9px;
  font-size: 10px;
}

    .ttm-btn {
        padding: 8px 10px;
    font-size: 8px;
    }
    .ttm-quickview-hotel-name {
  font-size: 12px;
  margin: 0px 0 0px;
    }
    .ttm-chip {
  padding: 5px 9px;
  font-size: 9px;
    }

    .ttm-quickview-section h4 {
        font-size: 10px;
    }
}
