/* Base Styles - Shared across all destinations */
/* Theme colors are injected by engine.js via CSS variables */

:root {
    --primary-color: #EC700B;
    --accent-color: #f5a142;
    --bg-color: #fff3cd;
    --card-bg: #ffffff;
    --text-color: #555555;
    --font-scale: 1;
}

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

body {
    font-family: 'Varela Round', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding-bottom: 80px;
    min-height: 100vh;
}

/* RTL Support */
html[dir="rtl"] body {
    text-align: right;
}

html[dir="ltr"] body {
    text-align: left;
}

/* Loading Screen */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    padding: 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Screen */
.error-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    padding: 20px;
}

.error-screen h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.error-screen p {
    color: var(--text-color);
    margin-bottom: 20px;
}

.error-screen button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1em;
    transition: all 0.3s;
}

.error-screen button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.text-center {
    text-align: center;
}

.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-25 { margin-bottom: 25px; }

.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
a:focus,
button:focus,
input:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Countdown Banner */
.countdown-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    text-align: center;
    padding: 12px 20px;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 15px;
    margin: 15px 15px 0 15px;
    box-shadow: 0 4px 15px rgba(236, 112, 11, 0.3);
}

.countdown-banner p {
    margin: 0;
}

.countdown-banner.during-trip {
    background: linear-gradient(135deg, #28a745 0%, #5cb85c 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* ==================== FLOATING CONTROLS ==================== */
.floating-controls {
    position: fixed;
    bottom: 90px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 999;
}

.floating-btn {
    width: 42px;
    height: 42px;
    background: rgba(85, 85, 85, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Font size controls */
.font-controls {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.font-btn {
    width: 36px;
    height: 36px;
    background: rgba(85, 85, 85, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
}

.font-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.font-btn:active {
    transform: scale(0.95);
}

.font-btn.font-increase {
    font-size: 16px;
}

.font-btn.font-decrease {
    font-size: 12px;
}

/* print button is now a .floating-btn inside .floating-controls */

/* Font scaling support - applies to main content */
.container {
    font-size: calc(1rem * var(--font-scale, 1));
}

/* Ensure key text scales properly */
.day-content,
.info-card,
.tip-card,
.hotel-card,
.timeline-item {
    font-size: calc(1em * var(--font-scale, 1));
}

.day-header h3 {
    font-size: calc(1.15em * var(--font-scale, 1));
}

.section-title {
    font-size: calc(1.6em * var(--font-scale, 1));
}

.desc,
.day-intro p,
.timeline-item .desc {
    font-size: calc(0.95em * var(--font-scale, 1));
    line-height: 1.7;
}

/* ==================== PRINT STYLES ==================== */
@media print {
    /* Hide interactive/non-essential elements */
    .floating-controls,
    .floating-btn,
    .font-controls,
    .font-btn,
    .pwa-banner,
    .countdown-banner,
    .quick-links,
    .theme-selector,
    .mini-edit-btn,
    .edit-hint,
    .upload-area,
    .upload-box,
    .expense-form,
    .emergency-form,
    .add-item-container,
    .book-toggle,
    .btn,
    button:not(.day-header),
    #pwa-install-banner,
    .tips-accordion-close,
    .accordion-close-x,
    .agent-branding {
        display: none !important;
    }

    /* Hide non-itinerary tabs - ONLY show itinerary */
    #tickets-tab,
    #expenses-tab,
    #tips-tab,
    #emergency-tab {
        display: none !important;
    }

    /* Show itinerary tab always */
    #itinerary-tab {
        display: block !important;
    }

    /* Reset page margins - smaller for more content per page */
    @page {
        margin: 1cm;
        size: A4;
    }

    /* Reset body for print - larger font for older readers */
    body {
        background: white !important;
        color: black !important;
        padding: 0 !important;
        font-size: 12pt !important;
    }

    /* Container full width */
    .container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Header styling for print - NO background image, just compact text */
    header {
        background: var(--primary-color) !important;
        background-image: none !important;
        border-radius: 0 !important;
        padding: 15px 20px !important;
        min-height: auto !important;
        height: auto !important;
        page-break-after: avoid;
        break-after: avoid;
    }

    header h1 {
        font-size: 1.5em !important;
        margin-bottom: 5px !important;
    }

    header .subtitle {
        font-size: 1em !important;
        margin-bottom: 0 !important;
    }

    /* CRITICAL: Prevent page breaks inside content blocks */
    .info-card,
    .day-card,
    .tip-card,
    .hotel-card,
    .hotel-box,
    .travelers-card,
    .timeline-item,
    .expense-item,
    .checklist-item,
    .phrases-card,
    .phrase-item,
    .emergency-number,
    .emergency-contact-item,
    .document-item,
    .day-intro,
    .tip-box,
    .day-options-box,
    .bookable-item,
    .embassy-info,
    .blog-card,
    .category-card {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    /* Expand all day cards for printing - compact layout */
    .day-card .day-content {
        max-height: none !important;
        overflow: visible !important;
        padding: 10px 15px !important;
    }

    /* Hide day hero images in print to save ink */
    .day-hero {
        display: none !important;
    }

    /* Day cards - ALLOW page breaks inside for continuous flow */
    .day-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        margin-bottom: 10px !important;
        /* NO page-break-inside: avoid - allows content to flow continuously */
    }

    /* Expand all accordions */
    .tips-accordion .tips-accordion-content {
        max-height: none !important;
        overflow: visible !important;
    }

    /* Day header - compact for print */
    .day-header {
        cursor: default !important;
        border-bottom: 1px solid #eee !important;
        padding: 10px 15px !important;
    }

    .day-header h3 {
        font-size: 1.1em !important;
        margin: 0 !important;
    }

    .day-header .day-location {
        font-size: 0.9em !important;
        margin-top: 3px !important;
    }

    .day-header i {
        display: none !important;
    }

    /* Info cards - compact for print */
    .info-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        page-break-before: auto;
        margin-bottom: 10px !important;
        padding: 10px 15px !important;
    }

    /* Day intro and tip boxes - compact */
    .day-intro,
    .tip-box,
    .day-options-box {
        margin: 8px 0 !important;
        padding: 8px 12px !important;
    }

    /* Images for print - hide attraction images, keep small hotel image */
    .attraction-img {
        display: none !important;
    }

    .hotel-image {
        max-height: 120px !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    /* Timeline improvements - compact */
    .timeline-item {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        margin-bottom: 8px !important;
        padding: 8px 10px !important;
    }

    /* Travelers card */
    .travelers-card {
        page-break-after: avoid !important;
        break-after: avoid !important;
    }

    /* Section titles - keep with content */
    .section-title,
    h2,
    h3,
    h4 {
        page-break-after: avoid !important;
        break-after: avoid !important;
    }

    /* Links - show URL for important links */
    .hotel-buttons a::after,
    .btn-primary::after {
        content: none !important;
    }

    /* Tab content - show itinerary tab */
    .tab-content {
        display: none !important;
    }

    .tab-content#itinerary-tab {
        display: block !important;
    }

    /* Footer - compact */
    footer {
        margin-top: 10px !important;
        padding: 10px !important;
        border-top: 1px solid #ddd !important;
        background: white !important;
        page-break-before: avoid;
        font-size: 0.9em !important;
    }

    /* Hotel boxes - more compact */
    .hotel-box {
        margin-bottom: 8px !important;
        padding: 10px !important;
    }

    /* Colors for print */
    .day-header h3,
    .info-card h3,
    .tip-card h4,
    .section-title {
        color: var(--primary-color) !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Preserve backgrounds */
    .day-intro,
    .tip-box,
    .day-options-box,
    .info-item,
    .tip-card,
    .hotel-box,
    .phrase-item,
    .emergency-number,
    .checklist-item {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        background: #f9f9f9 !important;
    }

    /* Border colors */
    .day-header,
    .info-item,
    .day-intro,
    .tip-box,
    .day-options-box,
    .tip-card,
    .timeline-item {
        border-right-color: var(--primary-color) !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* ==================== IMPROVED PRINT READABILITY FOR OLDER READERS ==================== */

    /* Larger, more readable text for descriptions */
    .desc,
    .day-intro p,
    .timeline-item .desc,
    .info-item p {
        font-size: 12pt !important;
        line-height: 1.8 !important;
    }

    /* Activity titles more prominent */
    .timeline-item h4 {
        font-size: 13pt !important;
        font-weight: 700 !important;
        margin-bottom: 8px !important;
    }

    /* Time stamps clear and readable */
    .time {
        font-size: 12pt !important;
        font-weight: 700 !important;
    }

    /* Day headers more prominent */
    .day-header h3 {
        font-size: 14pt !important;
        font-weight: 700 !important;
    }

    .day-header span {
        font-size: 11pt !important;
    }

    /* Section titles */
    .section-title {
        font-size: 16pt !important;
        font-weight: 700 !important;
        margin: 15px 0 !important;
    }

    /* Day intro title */
    .day-intro h4 {
        font-size: 13pt !important;
        font-weight: 700 !important;
    }

    /* Tip boxes readable */
    .tip-box,
    .day-options-box {
        font-size: 11pt !important;
        padding: 12px !important;
        line-height: 1.7 !important;
    }

    /* Hotel details */
    .hotel-details h4 {
        font-size: 13pt !important;
    }

    .hotel-notes {
        font-size: 11pt !important;
        line-height: 1.7 !important;
    }

    /* Map links - hide in print as they're not clickable */
    .map-btn,
    a[href*="maps.google"] {
        display: none !important;
    }

    /* Reduce visual noise - hide decorative images */
    .day-hero {
        display: none !important;
    }

    /* Better spacing between days */
    .day-card {
        margin-bottom: 25px !important;
    }

    /* Traveler names */
    .traveler {
        font-size: 11pt !important;
        padding: 8px 12px !important;
    }

    /* Print header with trip info */
    header h1 {
        font-size: 18pt !important;
    }

    header .subtitle {
        font-size: 12pt !important;
    }
}

/* ==================== HEADER ==================== */
header {
    background: var(--header-gradient);
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 45px 25px;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* Flag overlay rendered via data-flag attribute - flag is the hero at 50% opacity */
header[data-flag]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--flag-bg);
    background-size: cover;
    background-position: center;
    opacity: 0.50;
    z-index: 0;
    pointer-events: none;
}

header > * {
    position: relative;
    z-index: 1;
}

h1 {
    margin: 0;
    font-size: 2.2em;
    font-weight: 700;
    letter-spacing: 1px;
}

p.subtitle {
    margin: 8px 0 0;
    font-size: 1.1em;
    opacity: 0.95;
}

.agent-branding {
    margin-top: 15px;
    font-size: 0.9em;
    background: rgba(255,255,255,0.25);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 700px;
    margin: -20px auto 0;
    padding: 0 15px;
    position: relative;
    z-index: 10;
}

/* ==================== QUICK LINKS NAVIGATION ==================== */
.quick-links {
    display: flex;
    justify-content: space-between;
    background: var(--card-bg);
    padding: 18px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.q-link {
    text-align: center;
    flex: 1;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.85em;
    transition: all 0.3s;
}

.q-link:hover { color: var(--primary-color); }
.q-link.active { color: var(--primary-color); }
.q-link.active i { filter: drop-shadow(0 0 4px rgba(var(--primary-color-rgb, 236, 112, 11), 0.25)); }
.q-link i {
    display: block;
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 6px;
}

/* ==================== TAB CONTENT ==================== */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ==================== SECTION TITLE ==================== */
.section-title {
    font-size: 1.6em;
    color: var(--primary-color);
    text-align: center;
    margin: 30px 0 20px;
    font-weight: 700;
}

/* ==================== INFO CARD ==================== */
.info-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.info-card h3 {
    font-size: 1.2em;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item {
    background: var(--bg-color);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 12px;
    border-right: 4px solid var(--primary-color);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item h4 {
    font-size: 1em;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.info-item p {
    font-size: 0.92em;
    line-height: 1.6;
    color: var(--text-color);
}

/* ==================== TRAVELERS CARD ==================== */
.travelers-card {
    background: var(--header-gradient);
    color: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 25px;
    text-align: center;
}

.travelers-card h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
}

.travelers-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.traveler {
    background: rgba(255,255,255,0.2);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.95em;
}

/* ==================== DESTINATION SUMMARY TABLE ==================== */
/* ==================== DESTINATION SUMMARY TABLE ==================== */
.dest-summary-table {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.dest-summary-row {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: background 0.2s ease;
}

.dest-summary-row:last-child {
    border-bottom: none;
}

.dest-summary-row:hover {
    background: rgba(0, 0, 0, 0.03);
}

.dest-summary-row:nth-child(even) {
    background: rgba(0, 0, 0, 0.015);
}

.dest-summary-row:nth-child(even):hover {
    background: rgba(0, 0, 0, 0.04);
}

/* Top line: city | nights | dates */
.dest-summary-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.dest-summary-name {
    font-weight: 700;
    font-size: 1.05em;
    color: var(--primary-color);
}

.dest-summary-name strong {
    color: #333;
    font-weight: 700;
}

.dest-summary-dates {
    font-size: 0.92em;
    color: #333;
    flex-shrink: 0;
    direction: ltr;
    text-align: left;
}

.dest-summary-dates strong {
    font-weight: 700;
    color: #333;
}

/* Description line below */
.dest-summary-desc {
    margin-top: 4px;
    font-size: 0.88em;
    color: #777;
    line-height: 1.4;
}

/* ==================== DAY CARD (ACCORDION) ==================== */
.day-card {
    background: var(--card-bg);
    margin-bottom: 15px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.day-header {
    padding: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-right: 5px solid var(--primary-color);
}

.day-header h3 {
    margin: 0;
    font-size: 1.15em;
    color: var(--primary-color);
}

.day-header span {
    font-size: 0.9em;
    color: #777;
    display: block;
    margin-top: 5px;
}

.day-header i {
    color: var(--primary-color);
    transition: transform 0.3s;
}

.day-content {
    max-height: 0;
    overflow: hidden;
    background: var(--card-bg);
    padding: 0 22px;
    transition: max-height 0.4s ease-out, padding 0.3s;
    border-top: 1px solid #f0f0f0;
    position: relative;
}

/* Expanded State */
.day-card.active .day-content {
    max-height: 5000px;
    padding: 22px;
}

.day-card.active .day-header i { transform: rotate(180deg); }
.day-card.active { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); }

/* Day hero image */
.day-hero {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 15px;
    margin-bottom: 20px;
}

/* Attraction image */
.attraction-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    margin: 10px 0;
}

/* Day intro */
.day-intro {
    background: var(--bg-color);
    padding: 18px;
    border-radius: 15px;
    margin-bottom: 20px;
    border-right: 4px solid var(--primary-color);
}

.day-intro h4 {
    color: var(--primary-color);
    font-size: 1.05em;
    margin-bottom: 10px;
}

.day-intro p {
    font-size: 0.95em;
    line-height: 1.7;
    color: var(--text-color);
}

/* ==================== TIMELINE ==================== */
.timeline-item {
    position: relative;
    padding-right: 25px;
    margin-bottom: 22px;
    border-right: 2px solid var(--bg-color);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    right: -7px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
}

.time {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 0.95em;
}

.activity {
    font-weight: 700;
    margin: 6px 0;
    color: #333;
    font-size: 1.05em;
}

.desc {
    font-size: 0.92em;
    color: var(--text-color);
    line-height: 1.65;
}

/* Loop Tour Banner */
.loop-tour-banner {
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 100%);
    border-right: 4px solid #3498db;
    border-radius: 10px;
    padding: 16px 18px;
    margin: 15px 0;
    font-size: 0.92em;
    line-height: 1.65;
}

.loop-tour-header {
    font-size: 1em;
    color: #1a6a9a;
    margin-bottom: 8px;
}

.loop-tour-body p {
    margin: 4px 0;
    color: #2c3e50;
}

.tip-box {
    background: var(--bg-color);
    border-right: 4px solid var(--primary-color);
    padding: 15px;
    font-size: 0.9em;
    margin-top: 15px;
    border-radius: 10px;
    line-height: 1.6;
}

.tip-box strong {
    color: var(--primary-color);
}

.day-options-box {
    background: var(--bg-color);
    border-right: 4px solid #e67e22;
    padding: 15px;
    font-size: 0.9em;
    margin-top: 15px;
    border-radius: 10px;
    line-height: 1.6;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9em;
    margin-top: 12px;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn:hover {
    background: var(--accent-color);
    color: #333;
    transform: translateY(-2px);
}

.btn[style*="accent-color"] {
    color: #333;
}

.btn i { margin-left: 6px; }

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

.btn-primary:hover {
    background: var(--accent-color);
    color: #333;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f1f3f5;
    color: #555;
    border: 1px solid #dee2e6;
}

.btn-secondary:hover {
    background: #e9ecef;
}

/* ==================== HOTEL CARD ==================== */
.hotel-card {
    background: var(--bg-color);
    border-radius: 15px;
    margin: 25px 0;
    border: 1px solid rgba(0,0,0,0.1);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.hotel-card h3 {
    font-size: 1.1em;
    color: var(--primary-color);
    padding: 15px 20px;
    background: rgba(0,0,0,0.03);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hotel-content {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 20px;
}

.hotel-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

.hotel-details h4 {
    font-size: 1.25em;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.hotel-notes {
    font-size: 0.95em;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.hotel-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Hotel Box (simple) */
.hotel-box {
    background: var(--bg-color);
    padding: 18px;
    border-radius: 15px;
    margin: 15px 0;
}

.hotel-box h4 {
    color: var(--primary-color);
    font-size: 1em;
    margin-bottom: 8px;
}

.hotel-box p {
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 5px;
}

/* ==================== FOOTER ==================== */
footer {
    text-align: center;
    padding: 30px 20px;
    font-size: 0.85em;
    color: #777;
    background: var(--card-bg);
    border-radius: 20px 20px 0 0;
    margin-top: 30px;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* ==================== PWA BANNER ==================== */
.pwa-banner {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-gradient);
    padding: 15px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.pwa-banner p {
    color: white;
    margin: 0 0 10px 0;
    font-size: 1em;
}

.pwa-close-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255,255,255,0.3);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.pwa-install-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* ==================== MOBILE RESPONSIVENESS ==================== */
@media (max-width: 768px) {
    header { padding: 30px 18px; }
    h1 { font-size: 1.6em; }
    p.subtitle { font-size: 0.95em; }
    .container { padding: 0 10px; }
    .section-title { font-size: 1.35em; }
    .info-card { padding: 18px; }
    .day-header { padding: 18px; }
    .day-header h3 { font-size: 1.05em; }
    .day-card.active .day-content { padding: 18px; }
    .travelers-list { gap: 8px; }
    .traveler { padding: 8px 14px; font-size: 0.85em; }
    .flight-divider img { max-width: 180px; }
    .day-hero { height: 180px; }
    .attraction-img { height: 150px; }

    .quick-links {
        flex-wrap: wrap;
        gap: 5px;
    }

    .q-link {
        flex: 0 0 30%;
        margin-bottom: 10px;
    }

    .hotel-content {
        flex-direction: column;
    }
}

@media (min-width: 600px) {
    .hotel-content {
        flex-direction: row;
    }
    .hotel-image {
        flex: 0 0 200px;
        height: auto;
    }
    .hotel-details {
        flex: 1;
    }
}

@media (min-width: 768px) {
    .day-hero {
        height: 280px;
        object-position: center 40%;
    }
    .attraction-img {
        height: 200px;
    }
}

/* ==================== FORM STYLES ==================== */
/* Universal form input styles */
input[type="text"],
input[type="number"],
input[type="tel"],
input[type="email"],
select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1em;
    font-family: inherit;
    background: #f8f9fa;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
select:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 236, 112, 11), 0.1);
    outline: none;
}

input::placeholder {
    color: #999;
}

/* ==================== EXPENSE STYLES ==================== */
.expense-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.expense-form input,
.expense-form select {
    margin: 0;
}

.expense-summary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%) !important;
    color: white;
}

.expense-summary h3 {
    color: white !important;
}

.expense-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 12px;
    margin-bottom: 10px;
    border-right: 4px solid var(--primary-color);
}

.expense-item:last-child {
    margin-bottom: 0;
}

.expense-item .expense-info {
    flex: 1;
}

.expense-item .expense-category {
    font-size: 1.5em;
    margin-left: 10px;
}

.expense-item .expense-desc {
    font-weight: 700;
    color: #333;
}

.expense-item .expense-amount {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1em;
}

.expense-item .delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s;
}

.expense-item .delete-btn:hover {
    background: #c82333;
}

/* ==================== CURRENCY CONVERTER STYLES ==================== */
.currency-converter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.currency-converter input {
    flex: 1;
    min-width: 100px;
}

.currency-converter select {
    flex: 0 0 120px;
}

.currency-converter span {
    font-size: 1.2em;
    color: var(--primary-color);
    font-weight: 700;
}

.currency-converter .btn {
    flex: 0 0 auto;
}

.convert-result {
    background: var(--bg-color);
    padding: 15px;
    border-radius: 12px;
    margin-top: 15px;
    text-align: center;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

/* ==================== TIP CALCULATOR STYLES ==================== */
.tip-calculator {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tip-calculator input {
    width: 100%;
}

.tip-btn {
    background: var(--bg-color) !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
}

.tip-btn:hover {
    background: var(--primary-color) !important;
    color: white !important;
}

/* ==================== TIPS ACCORDION STYLES ==================== */
.tips-accordion {
    background: var(--card-bg);
    margin-bottom: 15px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.tips-accordion-header {
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
}

.tips-accordion-header h3 {
    margin: 0;
    font-size: 1.15em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tips-accordion-header i.toggle-icon {
    transition: transform 0.3s;
}

.tips-accordion.active .toggle-icon {
    transform: rotate(180deg);
}

.tips-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.tips-accordion.active .tips-accordion-content {
    max-height: 10000px;
}

.tips-accordion-inner {
    padding: 15px;
    position: relative;
    padding-bottom: 50px;
}

.tips-accordion-close {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 28px;
    height: 28px;
    background: rgba(85, 85, 85, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.tips-accordion-close:hover {
    background: rgba(85, 85, 85, 0.9);
    transform: scale(1.1);
}

/* ==================== TIPS CONTENT STYLES ==================== */
.tip-card {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    border-right: 4px solid var(--primary-color);
}

.tip-card:last-child {
    margin-bottom: 0;
}

.tip-card h4 {
    color: var(--primary-color);
    font-size: 1.05em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tip-card h4 i {
    font-size: 1.2em;
}

.tip-card p,
.tip-card li {
    font-size: 0.95em;
    line-height: 1.7;
    color: var(--text-color);
}

.tip-card ul {
    margin: 0;
    padding-right: 20px;
}

.tip-card li {
    margin-bottom: 8px;
}

.tip-card li:last-child {
    margin-bottom: 0;
}

.tip-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.tip-card a:hover {
    text-decoration: underline;
}

.tip-highlight {
    background: rgba(var(--primary-color-rgb, 236, 112, 11), 0.1);
    padding: 12px 15px;
    border-radius: 10px;
    margin-top: 12px;
    font-size: 0.9em;
}

.tip-highlight strong {
    color: var(--primary-color);
}

/* ==================== PHRASES CARD STYLES ==================== */
.phrases-card {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
}

.phrases-card h4 {
    color: var(--primary-color);
    font-size: 1.1em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.phrase-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 10px;
}

.phrase-item:last-child {
    margin-bottom: 0;
}

.phrase-text {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.05em;
}

.phrase-pronunciation {
    font-size: 0.85em;
    color: #777;
    font-style: italic;
}

.phrase-meaning {
    font-size: 0.95em;
    color: var(--text-color);
}

/* ==================== EMERGENCY TAB STYLES ==================== */
.emergency-form {
    margin-top: 14px;
    background: var(--bg-color);
    border-radius: 16px;
    padding: 14px;
    border-right: 4px solid var(--primary-color);
}

.emergency-form .row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.emergency-form input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95em;
    outline: none;
}

.emergency-number {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 12px;
    margin-bottom: 10px;
}

.emergency-number:last-child {
    margin-bottom: 0;
}

.emergency-number .service-name {
    font-weight: 700;
    color: var(--text-color);
}

.emergency-number a {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.emergency-number a:hover {
    text-decoration: underline;
}

.embassy-info {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 15px;
    margin-top: 15px;
    border-right: 4px solid var(--primary-color);
}

.embassy-info h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.embassy-info p {
    margin-bottom: 8px;
    font-size: 0.95em;
}

.embassy-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.emergency-contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 12px;
    margin-bottom: 10px;
}

.emergency-contact-item .contact-info {
    flex: 1;
}

.emergency-contact-item .contact-name {
    font-weight: 700;
    color: #333;
}

.emergency-contact-item .contact-phone a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.emergency-contact-item .delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

/* ==================== UPLOAD AREA STYLES ==================== */
.upload-area {
    margin-top: 15px;
}

.upload-box {
    border: 2px dashed var(--primary-color);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-color);
}

.upload-box:hover {
    background: rgba(var(--primary-color-rgb, 236, 112, 11), 0.1);
    border-style: solid;
}

.document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 12px;
    margin-bottom: 10px;
}

.document-item .doc-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.document-item .doc-icon {
    font-size: 1.5em;
    color: var(--primary-color);
}

.document-item .doc-name {
    font-weight: 700;
    color: #333;
}

.document-item .doc-size {
    font-size: 0.85em;
    color: #777;
}

.document-item .delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

/* ==================== BLOG CARD STYLES ==================== */
.blog-card {
    background: linear-gradient(135deg, var(--bg-color) 0%, #fff 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-top: 20px;
    border: 2px solid var(--primary-color);
}

.blog-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.blog-card p {
    font-size: 0.95em;
    color: var(--text-color);
    margin-bottom: 15px;
}

/* ==================== CHECKLIST STYLES ==================== */
.checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.checklist-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.checklist-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary-color);
    cursor: pointer;
    flex-shrink: 0;
}

.checklist-item input[type="checkbox"]:checked + span {
    text-decoration: line-through;
    color: #999;
}

.checklist-item span {
    flex: 1;
    line-height: 1.4;
}

.checklist-item .delete-item {
    color: #cc0000;
    cursor: pointer;
    padding: 0 5px;
    font-size: 16px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.checklist-item .delete-item:hover {
    opacity: 1;
}

.add-item-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.add-item-input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
}

.add-item-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
}

.add-item-btn:hover {
    opacity: 0.85;
}

/* back-to-top is now a .floating-btn inside .floating-controls */

/* ==================== DAY ACCORDION CLOSE BUTTON ==================== */
.accordion-close-x {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 28px;
    height: 28px;
    background: rgba(85, 85, 85, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.accordion-close-x:hover {
    background: rgba(85, 85, 85, 0.9);
    transform: scale(1.1);
}

/* ==================== FLIGHT DIVIDER ==================== */
.flight-divider {
    text-align: center;
    margin: 25px 0;
}

.flight-divider img {
    max-width: 280px;
    width: 70%;
    filter: drop-shadow(0 0 6px rgba(60, 60, 60, 0.15));
}

/* ==================== MINI EDIT BUTTON ==================== */
.mini-edit-btn {
    border: none;
    background: rgba(255,255,255,0.18);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-family: inherit;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mini-edit-btn:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.26);
}

.mini-edit-btn.editing { background: rgba(255,255,255,0.30); }

.edit-hint {
    margin-top: 12px;
    font-size: 0.85em;
    color: rgba(255,255,255,0.92);
    opacity: 0.95;
}

.edit-hint.hidden { display: none; }

.travelers-card.editing .traveler {
    background: rgba(255,255,255,0.32);
    outline: 2px dashed rgba(255,255,255,0.55);
    cursor: text;
}

.travelers-card.editing .traveler:focus {
    outline: 2px solid rgba(255,255,255,0.9);
}

/* ==================== BOOKABLE ITEM ==================== */
.bookable-item {
    position: relative;
    transition: all 0.3s ease;
}

.bookable-item.booked {
    opacity: 0.7;
    border-right-color: #28a745;
}

.bookable-item.booked h4::after {
    content: ' ✓';
    color: #28a745;
}

.book-toggle {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75em;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.book-toggle:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

.bookable-item.booked .book-toggle {
    background: #28a745;
}

.bookable-item.booked .book-toggle:hover {
    background: #218838;
}

/* ==================== BOOKING OPTIONS (multi-option bookings) ==================== */
.booking-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.booking-options .btn {
    font-size: 0.85em;
    padding: 8px 14px;
}

.booking-options-label {
    width: 100%;
    font-size: 0.85em;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 2px;
}

/* Booked badge (shown inline in activity after booking) */
.booking-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #28a745;
    font-weight: bold;
    font-size: 0.9em;
    margin-top: 8px;
}

/* Booking card in tickets tab */
.booking-card {
    background: var(--bg-color);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 12px;
    border-right: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.booking-card.booked {
    border-right-color: #28a745;
}

.booking-card h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.booking-card.booked h4::after {
    content: ' ✓';
    color: #28a745;
}

.booking-card .day-label {
    font-size: 0.8em;
    color: #888;
    margin-bottom: 5px;
}

.booking-day-group {
    margin-bottom: 20px;
}

.booking-day-group h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1em;
}

/* "I booked" button */
.btn-i-booked {
    background: #e8f5e9;
    color: #28a745;
    border: 2px solid #28a745;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    font-size: 0.85em;
    transition: all 0.2s;
}

.btn-i-booked:hover {
    background: #28a745;
    color: white;
}

.btn-whatsapp-transfer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9em;
    font-weight: 700;
    margin-top: 12px;
    text-decoration: none;
    transition: all 0.3s;
    direction: ltr;
    cursor: pointer;
}

.btn-whatsapp-transfer:hover {
    background: #128C7E;
    color: white;
    transform: translateY(-2px);
}

.btn-whatsapp-transfer i {
    font-size: 1.2em;
}

/* ==================== LODGING TAB ==================== */

.hotel-options-compact {
    background: var(--bg-color);
    border: 2px dashed var(--accent-color);
    border-radius: 15px;
    padding: 15px 18px;
    margin: 15px 0;
    text-align: center;
}

.hotel-options-compact.chosen {
    border-style: solid;
    border-color: #28a745;
    background: #f0fff0;
}

.hotel-compact-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 0.95em;
}

.hotel-compact-option {
    font-weight: bold;
    color: var(--text-color);
}

.hotel-compact-divider {
    color: #ccc;
    font-size: 1.2em;
}

.hotel-compact-compare {
    font-size: 0.9em;
    padding: 8px 20px;
}

.hotel-compact-chosen {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #28a745;
    font-weight: bold;
    margin-bottom: 8px;
}

.hotel-compact-chosen i {
    font-size: 1.2em;
}

.hotel-compact-change {
    display: inline-block;
    font-size: 0.85em;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
}

.lodging-group {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.lodging-group-header {
    margin-bottom: 20px;
}

.lodging-group-header h3 {
    font-size: 1.2em;
    color: var(--primary-color);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lodging-dates {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 5px;
}

.lodging-group-note {
    font-size: 0.9em;
    color: #888;
    font-style: italic;
    margin-top: 5px;
}

.lodging-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.lodging-card {
    background: var(--bg-color);
    border-radius: 15px;
    padding: 18px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.lodging-card h4 {
    color: var(--primary-color);
    font-size: 1.05em;
    margin-bottom: 5px;
}

.lodging-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.lodging-option-label {
    background: var(--primary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: bold;
}

.lodging-chosen-icon {
    color: #28a745;
    font-size: 1.3em;
}

.hotel-stars {
    display: inline-block;
    color: #f5a623;
    font-size: 0.85em;
    margin-bottom: 8px;
}

.lodging-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin: 10px 0;
}

.lodging-card-desc {
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 10px;
    color: var(--text-color);
}

.lodging-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.lodging-btn-book {
    font-size: 0.85em;
    padding: 8px 14px;
}

.lodging-btn-choose {
    flex: 1;
    min-width: 100px;
    text-align: center;
}

.lodging-btn-choose.chosen {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.lodging-card-chosen {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

.lodging-card-dimmed {
    opacity: 0.55;
    filter: grayscale(30%);
}

.lodging-card-dimmed:hover {
    opacity: 0.8;
    filter: none;
}

.lodging-prebooked-full {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.lodging-prebooked-image {
    width: 220px;
    height: 155px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.lodging-prebooked-info {
    flex: 1;
}

.lodging-prebooked-info h4 {
    color: var(--primary-color);
    font-size: 1.1em;
    margin-bottom: 6px;
}

.lodging-room-type,
.lodging-address {
    font-size: 0.88em;
    color: #666;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lodging-btn-map {
    background: var(--secondary-color, #6c757d);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 768px) {
    .lodging-prebooked-full {
        flex-direction: column;
    }
    .lodging-prebooked-image {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .lodging-cards {
        grid-template-columns: 1fr;
    }
    .lodging-group {
        padding: 18px;
    }
    .lodging-card-image {
        height: 140px;
    }
    .hotel-compact-options {
        flex-direction: column;
        gap: 4px;
    }
    .hotel-compact-divider {
        display: none;
    }
}

/* Booking option selection prompt */
.booking-select-prompt {
    background: #f0fff0;
    border: 1px solid #c8e6c9;
    border-radius: 10px;
    padding: 12px;
    margin-top: 10px;
}

.booking-select-prompt p {
    margin: 0 0 8px;
    font-size: 0.9em;
    color: #555;
}

.booking-select-prompt .btn {
    font-size: 0.85em;
    margin: 4px;
}

/* Booked confirmation in card */
.booking-booked-info {
    color: #28a745;
    font-size: 0.9em;
    margin-top: 5px;
}

/* ==================== DOCUMENT ITEM (detailed) ==================== */
.document-item .doc-actions {
    display: flex;
    gap: 8px;
}

.document-item .doc-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.2s;
}

.document-item .doc-btn.view-btn {
    color: var(--primary-color);
}

.document-item .doc-btn.view-btn:hover {
    background: rgba(var(--primary-color-rgb, 236, 112, 11), 0.1);
}

.document-item .doc-btn.delete-btn {
    color: #dc3545;
}

.document-item .doc-btn.delete-btn:hover {
    background: rgba(220, 53, 69, 0.1);
}

/* ==================== EXPENSE ITEM & CATEGORY CARDS ==================== */
.expense-item .expense-info .category-icon {
    font-size: 1.2em;
    margin-left: 8px;
}

.expense-item .expense-info .description {
    font-weight: bold;
    color: #333;
}

.expense-item .expense-info .meta {
    font-size: 0.85em;
    color: #777;
    margin-top: 3px;
}

.expense-item .delete-expense {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 5px;
    margin-right: 10px;
    transition: color 0.2s;
}

.expense-item .delete-expense:hover {
    color: #e74c3c;
}

.quick-category-btn {
    padding: 8px 12px;
    border-radius: 20px;
    border: 2px solid var(--primary-color);
    background: white;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.quick-category-btn.active {
    background: var(--primary-color) !important;
    color: white;
}

.category-card {
    padding: 12px;
    background: #f9f9f9;
    border-radius: 10px;
    text-align: center;
}

.category-card .cat-icon {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.category-card .cat-name {
    font-size: 0.85em;
    color: #777;
}

.category-card .cat-total {
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 5px;
}

/* ==================== RESPONSIVE FORM STYLES ==================== */
@media (max-width: 768px) {
    .currency-converter {
        flex-direction: column;
    }

    .currency-converter input,
    .currency-converter select {
        flex: 1 1 100%;
    }

    .currency-converter span {
        display: none;
    }

    .expense-item {
        flex-wrap: wrap;
        gap: 10px;
    }

    .expense-item .expense-category {
        order: -1;
        margin-left: 0;
    }
}

/* ==================== THEME SELECTOR ==================== */
.theme-selector {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.theme-selector p {
    margin-bottom: 20px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    text-align: center;
}

.theme-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.theme-btn {
    width: 50px;
    height: 50px;
    border: 3px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    padding: 0;
    position: relative;
    background: none;
    overflow: hidden;
}

/* Mobile: smaller theme buttons */
@media (max-width: 480px) {
    .theme-btn {
        width: 42px;
        height: 42px;
    }

    .theme-options {
        gap: 8px;
    }
}

.theme-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.theme-btn.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary-color);
    transform: scale(1.1);
}

.theme-preview {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}

/* Flag-based theme previews (round flags) */
.theme-preview.flag {
    background-size: cover;
    background-position: center;
}

/* Generic theme previews (gradients) */
.theme-preview.ocean {
    background: linear-gradient(135deg, #E3F2FD, #B3E5FC);
}

.theme-preview.sunset {
    background: linear-gradient(135deg, #FFF3E0, #FFCCBC);
}

.theme-preview.forest {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
}

.theme-preview.desert {
    background: linear-gradient(135deg, #FFF8E1, #FFE082);
}

.theme-preview.purple {
    background: linear-gradient(135deg, #F3E5F5, #E1BEE7);
}

.theme-preview.classic {
    background: linear-gradient(135deg, #4A4A4A, #6A6A6A);
}

.theme-btn span {
    display: none;
}

.update-notice {
    background: #fff3cd;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #856404;
    display: none;
    text-align: center;
}

.update-notice.show {
    display: block;
}

/* RTL support for update notice */
html[dir="rtl"] .update-notice {
    direction: rtl;
    text-align: right;
}

html[dir="ltr"] .update-notice {
    direction: ltr;
    text-align: left;
}

/* ==================== GUIDE TAB - Story Cards ==================== */

.story-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin: 12px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-right: 4px solid var(--accent-color, #EC700B);
    transition: box-shadow 0.2s ease;
}

.story-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.story-card-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 12px;
    max-height: 200px;
    object-fit: cover;
}

.story-card-title {
    color: var(--primary-color, #2D3436);
    font-size: 1.15em;
    margin: 0 0 8px 0;
}

.story-card-teaser {
    color: #555;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

.story-read-more {
    display: inline-block;
    color: var(--accent-color, #EC700B);
    font-weight: 600;
    font-size: 0.9em;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.story-read-more:hover {
    color: var(--primary-color, #2D3436);
}

.story-full-content {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.95em;
    line-height: 1.75;
    color: #444;
}

.story-card.highlighted {
    animation: storyHighlight 2s ease-out;
}

@keyframes storyHighlight {
    0% { box-shadow: 0 0 0 4px var(--accent-color); }
    100% { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
}

html[dir="ltr"] .story-card {
    border-right: none;
    border-left: 4px solid var(--accent-color, #EC700B);
}
