/* ═══════════════════════════════════════════════════════════════
   TRAWENTURE - Mobile First Responsive Styles
   Brand: Navy #1E2945, Copper #C58A67, Cream #F9F2E4
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --mobile-breakpoint: 480px;
    --tablet-breakpoint: 768px;
    --desktop-breakpoint: 1024px;
    --brand-color: #C58A67;
    --navy: #1E2945;
    --cream: #F9F2E4;
    --text-primary: #1E2945;
    --text-secondary: #6b7280;
    --bg-light: #faf8f5;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(30, 41, 69, 0.05);
    --shadow-md: 0 4px 8px rgba(30, 41, 69, 0.08);
    --shadow-lg: 0 8px 20px rgba(30, 41, 69, 0.1);
}

/* ─── SECTION VISIBILITY TOGGLES ─── */
@media (min-width: 768px) {
    .search-section[data-show-web="0"] {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .search-section[data-show-mobile="0"] {
        display: none !important;
    }
}

/* ─── GLOBAL STYLES ─── */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-light);
    font-family: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    color: var(--text-primary);
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ─── HEADER/NAVBAR ─── */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 56px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    color: var(--navy);
    flex: 1;
    min-width: 0;
}

.navbar-brand img {
    height: 42px;
    object-fit: contain;
    max-width: 100%;
    flex-shrink: 0;
}

.mobile-menu-toggle {
    display: flex;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--navy);
    padding: 8px;
    flex-shrink: 0;
    transition: color 0.2s;
    -webkit-appearance: none;
    appearance: none;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:active {
    color: var(--brand-color);
}

/* ─── MOBILE NAVIGATION MENU ─── */
.navbar-menu {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-white);
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 999;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
}

.navbar-menu.active {
    display: flex;
}

.navbar-menu li {
    border-bottom: 1px solid rgba(30, 41, 69, 0.06);
    padding: 0;
    margin: 0;
}

.navbar-menu li:last-child {
    border-bottom: none;
}

.navbar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--navy);
    font-size: 15px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    transition: background 0.2s;
    min-height: 48px;
}

.navbar-menu a:active {
    background: var(--cream);
    color: var(--brand-color);
}

/* ─── PROFILE DROPDOWN ─── */
.profile-dropdown {
    position: relative;
}

.profile-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--brand-color);
    background: var(--bg-white);
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    overflow: hidden;
    flex-shrink: 0;
    transition: box-shadow 0.2s;
    min-height: 44px;
    min-width: 44px;
}

.profile-avatar:active {
    box-shadow: 0 0 0 3px rgba(197, 138, 103, 0.2);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    min-width: 200px;
    overflow: hidden;
    border: 1px solid rgba(30, 41, 69, 0.08);
}

.dropdown-menu.active {
    display: flex;
    flex-direction: column;
}

.dropdown-menu a {
    padding: 14px 18px;
    text-decoration: none;
    color: var(--navy);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(30, 41, 69, 0.06);
    min-height: 48px;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:active {
    background: var(--cream);
}

/* ─── CONTAINERS & LAYOUT ─── */
.container {
    max-width: 100%;
    padding: 0 16px;
    margin: 0 auto;
}

.section {
    padding: 32px 0;
    margin: 0;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 16px;
    font-family: 'Montserrat', sans-serif;
}

.section-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* ─── PROFESSIONAL CARDS ─── */
.card {
    background: var(--bg-white);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    border: 1px solid rgba(30, 41, 69, 0.04);
}

.card:active {
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: 16px;
    border-bottom: 1px solid rgba(30, 41, 69, 0.06);
    background: #faf8f5;
}

.card-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
}

.card-body {
    padding: 16px;
}

.card-footer {
    padding: 12px 16px;
    background: #faf8f5;
    border-top: 1px solid rgba(30, 41, 69, 0.06);
    display: flex;
    gap: 8px;
}

/* ─── FORMS ─── */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-family: 'Montserrat', sans-serif;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    background: var(--bg-white);
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
    min-height: 48px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand-color);
    box-shadow: 0 0 0 3px rgba(197, 138, 103, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
    text-decoration: none;
    min-height: 48px;
    min-width: 48px;
    touch-action: manipulation;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background: var(--brand-color);
    color: white;
    width: 100%;
}

.btn-primary:active {
    opacity: 0.9;
    transform: scale(0.98);
}

.btn-secondary {
    background: var(--cream);
    color: var(--navy);
    width: 100%;
    border: 1px solid rgba(30, 41, 69, 0.1);
}

.btn-secondary:active {
    background: #ede5d5;
}

.btn-ghost {
    background: transparent;
    color: var(--brand-color);
    border: 1px solid var(--brand-color);
    width: 100%;
}

.btn-ghost:active {
    background: rgba(197, 138, 103, 0.05);
}

.btn-small {
    padding: 10px 14px;
    font-size: 13px;
    min-height: 40px;
}

/* ─── ALERTS ─── */
.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-error {
    background: #fef2f2;
    color: #7f1d1d;
    border-left: 4px solid #ef4444;
}

.alert-success {
    background: #f0fdf4;
    color: #15803d;
    border-left: 4px solid #22c55e;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert i {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ─── HERO SECTION ─── */
.hero {
    padding: 48px 0;
    text-align: center;
    background: linear-gradient(135deg, #1E2945 0%, #2d3e62 100%);
    color: white;
    margin: 0;
}

.hero h1 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 12px 0;
    font-family: 'Montserrat', sans-serif;
    color: white;
    text-wrap: balance;
}

.hero p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.6;
    text-wrap: balance;
}

/* ─── TOUR CARDS ─── */
.tour-card {
    background: var(--bg-white);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.2s;
    border: 1px solid rgba(30, 41, 69, 0.04);
}

.tour-card:active {
    box-shadow: var(--shadow-lg);
}

.tour-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.tour-card-content {
    padding: 16px;
}

.tour-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 6px 0;
    font-family: 'Montserrat', sans-serif;
}

.tour-card-location {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
}

.tour-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(30, 41, 69, 0.06);
    font-size: 13px;
    color: var(--text-secondary);
}

/* ─── INFO BLOCKS ─── */
.info-block {
    background: #faf8f5;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 3px solid var(--brand-color);
}

.info-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
    font-family: 'Montserrat', sans-serif;
}

.info-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
}

.info-value.price {
    color: var(--brand-color);
    font-size: 18px;
}

/* ─── FOOTER ─── */
footer {
    background: var(--navy);
    color: #d1d5db;
    padding: 40px 16px 30px;
    margin-top: 40px;
}

footer .container {
    max-width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    margin-bottom: 0;
}

.footer-section h3 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    font-family: 'Montserrat', sans-serif;
}

.footer-section p,
.footer-section a {
    font-size: 13px;
    line-height: 1.8;
    color: #9ca3af;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-section a:active {
    color: var(--brand-color);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(197, 138, 103, 0.15);
    border-radius: 50%;
    color: var(--brand-color);
    margin-bottom: 0;
    transition: all 0.2s;
    font-size: 14px;
}

.social-links a:active {
    background: var(--brand-color);
    color: white;
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 30px 0 25px;
    padding-top: 25px;
}

.footer-bottom {
    text-align: center;
    color: #6b7280;
    font-size: 12px;
}

/* ─── TABLET (768px+) ─── */
@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .navbar {
        padding: 14px 24px;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .navbar-menu {
        display: flex !important;
        position: static;
        background: none;
        flex-direction: row;
        align-items: center;
        list-style: none;
        padding: 0;
        margin: 0;
        gap: 6px;
        box-shadow: none;
        max-height: none;
        overflow: visible;
    }

    .navbar-menu li {
        border-bottom: none;
        padding: 0;
    }

    .navbar-menu a {
        padding: 8px 14px;
        font-size: 14px;
        min-height: auto;
    }

    .section {
        padding: 48px 0;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }

    footer {
        padding: 50px 24px 30px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
        margin-bottom: 40px;
    }

    .btn {
        padding: 13px 24px;
    }
}

/* ─── DESKTOP (1024px+) ─── */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        padding: 0 40px;
    }

    .navbar {
        padding: 16px 40px;
    }

    .section {
        padding: 60px 0;
    }

    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 18px;
    }

    .form-row {
        grid-template-columns: repeat(3, 1fr);
    }

    footer {
        padding: 60px 40px 30px;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 60px;
        margin-bottom: 40px;
    }

    .btn {
        padding: 14px 28px;
    }
}

/* ─── ACCESSIBILITY ─── */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@supports (padding: max(0px)) {
    body {
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
}

:focus-visible {
    outline: 2px solid var(--brand-color);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--brand-color);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--brand-color);
    color: white;
}

::placeholder {
    color: #9ca3af;
    opacity: 1;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    -webkit-text-fill-color: var(--navy) !important;
}

button, a {
    touch-action: manipulation;
}

@media print {
    .navbar, footer, .mobile-menu-toggle {
        display: none !important;
    }

    .container {
        padding: 0;
    }

    body {
        font-size: 12pt;
        color: black;
    }
}
