/* Core Reset & Variables */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --primary: #5A494C;
    --secondary: #E8D5B5;
    --accent: #D4A373;
    --bg-light: #FAF7F2;
    --text-dark: #2C2C2C;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Utilities */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Screen */
#fake-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loading-logo {
    width: 100px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.loading-text {
    font-family: 'Playfair Display';
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 500;
}

/* Language Screen */
.language-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 2000;
    transition: opacity 0.5s;
}

.lang-content {
    max-width: 600px;
    padding: 20px;
}

.welcome-logo {
    width: 180px;
    margin: 0 auto 40px;
}

.welcome-text-group p {
    font-size: 1.2rem;
    margin: 10px 0;
    color: var(--primary);
    font-weight: 300;
    opacity: 0.8;
}

.lang-options {
    margin-top: 40px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lang-btn:hover {
    background: var(--primary);
    color: white;
}

/* Header */
.main-header {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.header-logo img {
    width: 80px;
}

.header-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.header-nav a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 500;
    transition: color 0.3s;
}

.header-nav a:hover {
    color: var(--accent);
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.hero h2 {
    font-size: 3.5rem;
    max-width: 800px;
    margin-bottom: 40px;
    line-height: 1.2;
    font-weight: 400;
}

.cta-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 18px 45px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.cta-btn:hover {
    background: #4a3b3e;
    transform: scale(1.02);
}

/* Preferences Form */
.preferences-form {
    padding: 80px 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.form-container h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.form-group {
    margin-bottom: 40px;
}

.form-group label {
    display: block;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 500;
}

input[type="range"] {
    width: 100%;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    -webkit-appearance: none;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type="date"] {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
    font-family: 'Outfit';
    font-size: 1rem;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #777;
}

.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    background: white;
}

.chip:hover {
    border-color: var(--primary);
}

.chip.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.radio-group {
    display: flex;
    gap: 15px;
}

.radio-card {
    flex: 1;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.radio-card:hover {
    border-color: var(--primary);
}

.radio-card input {
    display: none;
}

.radio-card:has(input:checked) {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--primary);
    font-weight: 600;
}

.custom-select-wrapper select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Outfit';
    font-size: 1rem;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
}

.submit-btn:hover {
    background: #4a3b3e;
}

.verification-note {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: 15px;
}

/* ITINERARY RESULT */
.itinerary-result {
    min-height: 100vh;
    padding: 120px 0 60px 0;
    background: linear-gradient(to bottom, var(--bg-light), #fff);
}

.timeline-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Summary */
.trip-summary {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 50px;
    text-align: center;
}

.trip-summary h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.summary-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
    margin-top: 10px;
}

.summary-item {
    text-align: center;
    min-width: 100px;
}

.summary-item strong {
    display: block;
    color: #999;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.summary-item span {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    display: block;
}

.itinerary-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Day Cards Layout */
.day-card {
    background: white;
    border-radius: 20px;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.day-header {
    background: var(--primary);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    cursor: pointer;
}

.day-header h3 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
}

.day-number {
    color: white;
    font-family: 'Playfair Display';
    font-size: 1.5rem;
}

/* --- 1. DARK ACTIVITY BLOCKS (The "2 Blocks" user requested) --- */
.activity-card,
.activity-item {
    background-color: #5A494C !important;
    /* Pure Black/Dark */
    color: #ffffff !important;
    /* White Text */
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #6d5b5e;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
}

.activity-card:hover,
.activity-item:hover {
    transform: translateY(-3px);
}

.activity-card h4,
.activity-item h4 {
    color: #ffffff !important;
    /* Title White */
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.activity-card p,
.activity-item p {
    color: #e0e0e0 !important;
    /* Description White/Grey */
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.activity-card span,
.activity-item span,
.meta-row span {
    color: #aaaaaa !important;
    /* Metadata Light Grey */
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.time-block {
    padding-left: 0;
    border-left: none;
    margin-bottom: 30px;
}

/* Remove vertical line for cleaner dark blocks */


/* --- 2. DARK TIME HEADERS (Toggles) --- */
.time-toggle {
    width: 100%;
    background-color: transparent !important;
    /* Minimalist toggle since blocks are dark */
    color: var(--primary) !important;
    padding: 10px 0;
    border: none;
    margin-bottom: 15px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.time-toggle:hover {
    color: var(--accent) !important;
}

/* --- 3. DARK RESTAURANT CARD --- */
.restaurant-card {
    background-color: #5A494C !important;
    color: #ffffff !important;
    border: 1px solid #6d5b5e;
    padding: 25px;
    margin-top: 25px;
    border-radius: 12px;
    display: flex;
    gap: 15px;
}

.restaurant-card .icon {
    font-size: 1.5rem;
}

.restaurant-card .info h4 {
    color: #ffffff !important;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.restaurant-card p,
.restaurant-card span,
.restaurant-card .rest-meta {
    color: #d0d0d0 !important;
}

.restaurant-card a {
    color: var(--accent) !important;
    font-weight: bold;
}

/* --- 4. DARK CTA --- */
.accommodation-cta {
    background: linear-gradient(135deg, #6d5b5e 0%, #5A494C 100%) !important;
    color: #ffffff !important;
    padding: 60px 40px;
    margin-top: 60px;
    border-radius: 20px;
    text-align: center;
}

.accommodation-cta .cta-text,
.accommodation-cta h3 {
    color: #ffffff !important;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-family: 'Playfair Display';
}

.accommodation-cta .cta-subtext,
.accommodation-cta p {
    color: #cccccc !important;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* --- 5. GALLERY (Fixed) --- */
.gallery-container {
    display: block !important;
    width: 100%;
    margin: 60px auto 30px;
    min-height: 100px;
}

.gallery-title {
    text-align: center;
    color: var(--primary) !important;
    margin-bottom: 30px;
    font-size: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 10px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Intro Partners */
.partners-section {
    padding: 80px 20px;
    text-align: center;
    background: white;
}

.partners-content {
    max-width: 800px;
    margin: 0 auto;
}

/* --- EXPERIENCE MAP SECTION --- */
.map-section {
    padding: 80px 20px;
    background: var(--bg-light);
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.map-content {
    max-width: 1000px;
    margin: 0 auto;
}

.map-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

.map-section p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 550px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #f0f0f0;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .map-wrapper {
        height: 450px;
        min-height: 420px;
    }

    .map-section {
        padding: 60px 20px;
    }
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 2.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gallery-item {
        height: 180px;
    }

    .main-header {
        padding: 15px;
    }

    .header-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .radio-group {
        flex-direction: column;
    }
}

/* Footer (Static Block) */
.author-footer {
    background: #2C2C2C;
    /* Premium Dark */
    color: #f0f0f0;
    padding: 60px 20px;
    text-align: center;
    border-top: 4px solid var(--accent);
    position: relative;
    width: 100%;
    z-index: 10;
    font-family: 'Outfit', sans-serif;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.author-footer h3 {
    font-family: 'Playfair Display', serif;
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.footer-desc {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 30px;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.8rem;
    color: #888;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.arg-link {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.arg-link:hover {
    color: var(--accent);
}

.separator {
    color: #444;
}

/* Mobile Footer Adjustments */
@media (max-width: 600px) {
    .author-footer {
        padding: 40px 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 5px;
    }

    .separator {
        display: none;
    }
}

/* Reset Body Margin since Footer is not fixed */
body {
    margin-bottom: 0 !important;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.modal-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 5px;
    font-family: 'Outfit';
    font-size: 1rem;
}

.primary-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    margin-top: 20px;
    cursor: pointer;
}

.primary-btn:hover {
    background: #4a3b3e;
}

/* --- MOBILE HEADER/TITLE FIX (Step 2577) --- */
@media (max-width: 480px) {

    /* Prevent Logo overlap on top of content */
    .itinerary-result,
    .preferences-form {
        padding-top: 120px !important;
        /* Force space below header */
    }

    .map-section,
    .partners-section {
        padding-top: 60px !important;
    }

    /* Reduce Header Logo further if needed */
    .header-logo img {
        width: 60px;
        margin-top: 10px;
    }

    /* Ensure title doesn't climb up */
    .trip-summary {
        margin-top: 0;
    }
}

/* --- BRANDING REINFORCEMENT (Step 2674) --- */
.brand-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: -10px;
    margin-bottom: 40px;
    font-weight: 400;
    letter-spacing: 1px;
}

.welcome-logo {
    margin-bottom: 15px !important;
}

.header-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    line-height: normal;
}

.brand-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-top: 5px;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .brand-tagline {
        font-size: 0.5rem;
        letter-spacing: 1px;
        margin-top: 2px;
    }

    .brand-subtitle {
        font-size: 1.3rem;
        margin-bottom: 30px;
    }

    .header-logo {
        width: auto;
    }
}

/* FIX MOBILE LANGUAGE SELECTOR (Step 87) */
@media (max-height: 800px),
(max-width: 768px) {
    .language-screen {
        align-items: flex-start;
        overflow-y: auto;
        padding: 40px 0;
        height: 100dvh;
    }

    .lang-content {
        margin: auto 0;
        padding: 20px;
        width: 100%;
        max-width: 100%;
    }

    .welcome-logo {
        width: 130px;
        margin-bottom: 20px !important;
    }

    .brand-subtitle {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

    .welcome-text-group p {
        font-size: 1rem;
        margin: 5px 0;
    }

    .lang-options {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 30px;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .lang-btn {
        width: 100%;
        padding: 14px 10px;
        font-size: 0.9rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* Extra small screens */
@media (max-width: 350px) {
    .lang-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .itinerary-result {
        padding-top: 80px;
    }
}