/* ═══════════════════════════════════════════════════════
   TeneTicket — "Night Mode Luxury" Theme
   ═══════════════════════════════════════════════════════ */

:root {
    --bg-primary: #0B0E14;
    --bg-card: #161B22;
    --bg-card-hover: #1C2230;
    --bg-input: #1C2230;
    --bg-surface: #111620;
    --accent: #FF5E13;
    --accent-hover: #E65510;
    --accent-glow: rgba(255, 94, 19, 0.25);
    --text-primary: #F0F2F5;
    --text-secondary: #8B949E;
    --text-muted: #6B7280;
    --border: #21262D;
    --border-light: #30363D;
    --success: #2EA043;
    --danger: #F85149;
    --warning: #D29922;
    --info: #58A6FF;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --transition: all 0.2s ease;
}

/* ─── Reset ─────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    padding-top: 70px;
}

main {
    flex: 1;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
}

/* ─── Container ─────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 32px;
    box-sizing: border-box;
}

.container-sm {
    max-width: 640px;
}

.container-md {
    max-width: 800px;
}

/* ─── Navbar ────────────────────────────────────────── */
.navbar {
    background: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo {
    height: 36px;
    width: auto;
}

/* ─── Nav Dropdown ─────────────────────────────────── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 0;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    margin-top: 8px;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: var(--bg-surface);
    color: var(--accent);
}

@media (max-width: 768px) {
    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        margin-top: 0;
        padding: 0 0 0 16px;
        background: transparent;
        display: none;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-menu a {
        padding: 8px 16px;
        font-size: 0.82rem;
    }
}

/* ─── Affiliate Badge ──────────────────────────────── */
.affiliate-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 94, 19, 0.12);
    border: 1px solid rgba(255, 94, 19, 0.35);
    border-radius: 20px;
    padding: 5px 14px 5px 10px;
    margin-left: 12px;
    white-space: nowrap;
    animation: affiliateFadeIn 0.4s ease;
}

@keyframes affiliateFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.affiliate-badge-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    box-shadow: 0 0 6px var(--accent);
    animation: affiliatePulse 2s infinite;
}

@keyframes affiliatePulse {
    0%, 100% { box-shadow: 0 0 4px var(--accent); }
    50%       { box-shadow: 0 0 10px var(--accent); }
}

.affiliate-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.affiliate-badge-via {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #e65510;
}

.affiliate-badge-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #FF5E13;
    letter-spacing: 0.2px;
}

.affiliate-mobile-item {
    display: none;
}

@media (max-width: 768px) {
    .affiliate-badge {
        display: none;
    }
    .affiliate-mobile-item {
        display: block;
        border-top: 1px solid var(--border);
        margin-top: 4px;
        padding-top: 12px !important;
    }
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

/* ─── Navbar Search ────────────────────────────────── */
.navbar-search {
    flex: 1;
    max-width: 500px;
    margin: 0 32px;
}

.search-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 500px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-primary);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-card-hover);
}

.search-result-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-surface);
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
}

.search-result-price {
    color: var(--accent);
    font-weight: 600;
}

.search-result-location {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-no-results {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
}


/* ─── Category Filter ───────────────────────────────── */
.category-filter {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 70px;
    background: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(20px);
    z-index: 999;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-top: 16px;
}

.category-filter::after {
    content: '';
    position: fixed;
    right: 0;
    top: 70px;
    height: 56px;
    width: 60px;
    background: linear-gradient(to left, rgba(11, 14, 20, 0.85), transparent);
    pointer-events: none;
    z-index: 1000;
}

.category-filter::before {
    content: '';
    position: fixed;
    left: 0;
    top: 70px;
    height: 56px;
    width: 60px;
    background: linear-gradient(to right, rgba(11, 14, 20, 0.85), transparent);
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-filter::-webkit-scrollbar {
    display: none;
}

.category-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.category-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.category-btn .count {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.category-btn.active .count {
    background: rgba(255, 255, 255, 0.25);
}

/* ─── Pagination ────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 40px 0 60px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.pagination-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.pagination-page:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.pagination-page.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.pagination-ellipsis {
    color: var(--text-muted);
    padding: 0 4px;
}

/* ─── Cards Grid ────────────────────────────────────── */
.excursion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}


.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-link {
    color: inherit;
    text-decoration: none;
}

.card-link:hover {
    color: inherit;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    background: var(--bg-surface);
}

.card-body {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-operator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(46, 160, 67, 0.15);
    color: var(--success);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-verified i {
    font-size: 0.65rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-title a {
    color: inherit;
}

.card-title a:hover {
    color: var(--accent);
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    flex: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.card-meta i {
    margin-right: 4px;
    color: var(--accent);
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.card-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.card-price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* ─── Buttons ───────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 12px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #da3633;
    color: #fff;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ─── Forms ─────────────────────────────────────────── */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238B949E' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ─── Alerts ────────────────────────────────────────── */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid;
}

.alert-success {
    background: rgba(46, 160, 67, 0.1);
    border-color: rgba(46, 160, 67, 0.3);
    color: var(--success);
}

.alert-error {
    background: rgba(248, 81, 73, 0.1);
    border-color: rgba(248, 81, 73, 0.3);
    color: var(--danger);
}

.alert-warning {
    background: rgba(210, 153, 34, 0.1);
    border-color: rgba(210, 153, 34, 0.3);
    color: var(--warning);
}

.alert-info {
    background: rgba(88, 166, 255, 0.1);
    border-color: rgba(88, 166, 255, 0.3);
    color: var(--info);
}

/* ─── Excursion Detail ──────────────────────────────── */
.excursion-detail {
    padding: 0 0 60px;
}

.excursion-hero {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    background: #000;
    margin-bottom: 0;
}

.excursion-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.excursion-hero iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100%;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
    display: block;
}

.excursion-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 30%,
        rgba(11, 14, 20, 0.25) 45%,
        rgba(11, 14, 20, 0.55) 60%,
        rgba(11, 14, 20, 0.85) 78%,
        #0B0E14 100%
    );
    pointer-events: none;
    z-index: 1;
}

.excursion-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 32px;
}

.excursion-gallery-thumb {
    flex-shrink: 0;
    width: 90px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #fff;
    opacity: 0.85;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.excursion-gallery-thumb:hover,
.excursion-gallery-thumb.active {
    border-color: var(--accent);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.excursion-header {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    margin-bottom: 40px;
}


.trust-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 20px 0;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    /* background: var(--bg-surface); */
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--text-secondary);
    /* border: 1px solid var(--border); */
}

.trust-badge i {
    color: var(--accent);
    font-size: 1rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}


.review-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.review-stars {
    color: #f59e0b;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.review-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 10px;
    font-style: italic;
}

.review-author {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.review-source {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 6px;
    opacity: 0.8;
}

.review-source img {
    height: 12px;
    width: auto;
    opacity: 0.7;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.reviews-summary .avg-score {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.reviews-summary .avg-stars {
    color: #f59e0b;
    font-size: 0.95rem;
}

.reviews-summary .review-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.review-card .review-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.card.card-link {
    position: relative;
}

.excursion-info h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.excursion-info .operator-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.excursion-info .price-display {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 4px;
}

.excursion-info .price-display span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.excursion-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--accent);
    width: 18px;
    text-align: center;
}

.scarcity-text {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.3);
    color: var(--danger);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    margin: 16px 0;
    text-align: center;
}

.excursion-description {
    padding: 40px 0;
}

.excursion-description h2 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.excursion-description p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ─── Share Bar ─────────────────────────────────────── */
.share-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.share-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-right: 4px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.1rem;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.12s;
    flex-shrink: 0;
    padding: 0;
}

.share-btn:hover {
    opacity: 0.7;
    transform: translateY(-2px);
    text-decoration: none;
}

.share-whatsapp,
.share-facebook,
.share-twitter,
.share-copy { color: #ffffff !important; }
.share-copy:hover { color: var(--text-muted) !important; }

@media (max-width: 480px) {
    .share-bar { gap: 6px; }
    .share-label { width: 100%; margin-bottom: 2px; }
}

/* ─── Booking Form ──────────────────────────────────── */
.booking-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.booking-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

/* ── Booking Steps ───────────────────────────────────── */
.booking-steps-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}

.booking-step-ind {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.booking-step-ind span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-surface);
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.booking-step-ind.active {
    color: var(--text-primary);
    border-color: var(--text-primary);
    background: rgba(240, 242, 245, 0.04);
}

.booking-step-ind.active span {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.booking-step-ind.completed {
    color: var(--text-secondary);
    border-color: var(--border-light);
    background: transparent;
}

.booking-step-ind.completed span {
    background: var(--border-light);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.booking-step {
    display: none;
    animation: bookingStepIn 0.2s ease;
}

.booking-step.active {
    display: block;
}

/* ── Custom Booking Calendar ─────────────────────────── */
.bc-cal {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-surface);
}
.bc-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}
.bc-cal-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
.bc-cal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}
.bc-cal-nav:hover {
    background: rgba(240, 242, 245, 0.08);
    color: var(--text-primary);
}
.bc-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    padding: 8px 8px 4px;
    border-bottom: 1px solid var(--border);
}
.bc-cal-weekdays div {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.bc-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    padding: 6px;
    gap: 2px;
}
.bc-day {
    padding: 8px 0;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.12s ease;
    position: relative;
}
.bc-day-disabled {
    color: var(--border-light);
    cursor: default;
}
.bc-day-active {
    color: var(--text-primary);
    cursor: pointer;
}
.bc-day-active:hover {
    background: rgba(240, 242, 245, 0.07);
}
.bc-day-today {
    color: var(--text-primary);
    background: rgba(240, 242, 245, 0.05);
}
.bc-day-today::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
}
.bc-day-selected {
    background: var(--text-primary) !important;
    color: var(--bg-primary) !important;
    font-weight: 700;
}

@keyframes bookingStepIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Success Page ──────────────────────────────────── */
.success-page {
    text-align: center;
    padding: 80px 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(46, 160, 67, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: var(--success);
}

.success-page h1 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.success-page p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ─── Auth Pages ────────────────────────────────────── */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 70px);
    padding: 40px 20px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.auth-card h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.auth-card .subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.auth-card .auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ─── Admin Panel ───────────────────────────────────── */
.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: calc(100vh - 70px);
    max-width: 100vw;
    overflow-x: hidden;
}

.admin-sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 24px 0;
}

.admin-sidebar .sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.admin-sidebar .sidebar-link:hover,
.admin-sidebar .sidebar-link.active {
    color: var(--text-primary);
    background: var(--bg-surface);
    border-right: 3px solid var(--accent);
}

.admin-sidebar .sidebar-link i {
    width: 20px;
    text-align: center;
}

.admin-content {
    padding: 32px;
    min-width: 0;
    overflow-x: hidden;
}

.admin-content h1 {
    font-size: 1.6rem;
    margin-bottom: 24px;
}

/* ─── Modal ─────────────────────────────────────────── */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    width: 100%;
    max-width: 500px;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 1.2rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    color: var(--text-primary);
}

/* ─── Stats Cards ───────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
}

.stat-card .stat-value.accent {
    color: var(--accent);
}

/* Compact stat cards for analytics */
.stat-card-compact {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label-compact {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-value-compact {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-value-compact.accent {
    color: var(--accent);
}

/* ─── Card Header ───────────────────────────────────── */
.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface);
}

/* ─── Tables ────────────────────────────────────────── */
.table-wrapper {
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.data-table th {
    text-align: left;
    padding: 14px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface);
}

.data-table td {
    padding: 14px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: var(--bg-card-hover);
}

/* ─── Status Badges ─────────────────────────────────── */
.status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-paid {
    background: rgba(46, 160, 67, 0.15);
    color: var(--success);
}

.status-pending {
    background: rgba(210, 153, 34, 0.15);
    color: var(--warning);
}

.status-transferred {
    background: rgba(88, 166, 255, 0.15);
    color: var(--info);
}

.status-cancelled {
    background: rgba(248, 81, 73, 0.15);
    color: var(--danger);
}

.status-refunded,
.status-reversed {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.status-completed {
    background: rgba(46, 160, 67, 0.15);
    color: var(--success);
}

/* ─── Ticket ────────────────────────────────────────── */
.ticket-container {
    max-width: 500px;
    margin: 40px auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.ticket-header {
    background: linear-gradient(135deg, var(--accent) 0%, #c44a0f 100%);
    padding: 24px;
    text-align: center;
    color: #fff;
}

.ticket-header h2 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.ticket-body {
    padding: 24px;
}

.ticket-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

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

.ticket-row .label {
    color: var(--text-muted);
}

.ticket-row .value {
    font-weight: 600;
}

.ticket-qr {
    text-align: center;
    padding: 20px;
}

.ticket-qr img {
    border-radius: var(--radius-sm);
}

/* ─── Legal Pages ───────────────────────────────────── */
.legal-page {
    padding: 60px 0;
}

.legal-content {
    max-width: 820px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 56px;
}

.legal-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.legal-content h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 36px;
    margin-bottom: 12px;
}

.legal-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-content ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content ul li {
    margin-bottom: 6px;
}

.legal-content a {
    color: var(--accent);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 28px 20px;
    }
    
    /* Mobile card layout - horizontal layout with image on left */
    .excursion-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .excursion-grid .card {
        flex-direction: row;
        overflow: hidden;
        min-height: auto;
        max-height: 180px;
    }
    
    .excursion-grid .card:hover {
        transform: none;
    }
    
    .excursion-grid .card-image {
        width: 130px;
        height: 100%;
        min-height: 180px;
        max-height: 180px;
        flex-shrink: 0;
        object-fit: cover;
        border-radius: 0;
        margin: 0;
    }
    
    .excursion-grid .card-body {
        padding: 12px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-width: 0;
        overflow: hidden;
    }
    
    .excursion-grid .card-title {
        font-size: 0.95rem;
        font-weight: 700;
        margin-bottom: 4px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .excursion-grid .card-desc {
        display: none;
    }
    
    .excursion-grid .card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 8px;
        font-size: 0.8rem;
    }
    
    .excursion-grid .card-meta span {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .excursion-grid .card-footer {
        padding-top: 0;
        margin-top: 0;
        border-top: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .excursion-grid .card-price {
        font-size: 1.4rem;
        font-weight: 800;
        display: flex;
        align-items: baseline;
        gap: 4px;
    }
    
    .excursion-grid .card-price .price-suffix {
        font-size: 0.75rem;
        font-weight: 400;
        color: var(--text-muted);
    }
    
    .card-operator,
    .desktop-only {
        display: none !important;
    }

    /* Profile page: stack cards vertically */
    .admin-content .card {
        max-height: none;
    }
    
    .admin-content .card .card-body {
        padding: 20px;
    }
    
    .category-filter {
        flex-wrap: nowrap;
        padding-bottom: 16px;
        margin-bottom: 24px;
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .seo-content {
        margin-left: -20px !important;
        margin-right: -20px !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }
    
    .seo-content > div {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* ─── Footer ────────────────────────────────────────── */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
    margin-top: 60px;
    width: 100%;
}

.admin-layout + .site-footer,
.admin-layout ~ footer.site-footer {
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-logo {
    height: 30px;
    margin-bottom: 12px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-image[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-image[loading="lazy"].loaded {
    opacity: 1;
}

/* ─── Utilities ─────────────────────────────────────── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

/* ─── Tablet Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
    .excursion-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 768px) {

    /* ── Navbar ── */
    .navbar-search {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        padding: 10px 16px;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        margin: 0;
        max-width: none;
        display: none;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease;
        z-index: 999;
    }

    .navbar-search.search-open {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

    .navbar-search-toggle {
        display: flex !important;
    }

    .search-results {
        max-height: 400px;
    }

    .navbar-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px;
    }

    .navbar-links.open {
        display: flex;
    }

    .navbar-toggle {
        display: block;
    }

    /* ── Excursion listing grid (re-assert after 1024px tablet override) ── */
    .excursion-grid {
        grid-template-columns: 1fr;
    }

    /* ── Excursion detail page ── */
    .excursion-detail {
        padding: 0 0 40px;
        overflow-x: hidden;
    }

    .excursion-hero {
        height: 320px;
    }

    /* On mobile, hide YouTube iframe in hero and show fallback image */
    .excursion-hero iframe.desktop-only {
        display: none !important;
    }
    .excursion-hero .mobile-hero-img {
        display: block !important;
    }

    .excursion-header {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }

    .excursion-info h1 {
        font-size: 1.5rem;
    }

    .excursion-meta-grid {
        grid-template-columns: 1fr;
    }

    .trust-badges {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .excursion-gallery-thumb {
        width: 70px;
        height: 50px;
    }

    /* ── Mobile Floating CTA ── */
    .mobile-booking-cta {
        display: flex !important;
    }

    /* ── Booking card ── */
    .booking-card {
        padding: 18px;
        margin-left: 0;
        margin-right: 0;
    }

    /* ── Share bar ── */
    .share-bar {
        margin-left: 0;
        margin-right: 0;
    }

    /* ── Admin layout ── */
    .admin-layout {
        display: block; /* Prevent grid stretch blowouts */
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .admin-content {
        padding: 16px;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .admin-content h1 {
        font-size: 1.3rem;
        margin-bottom: 16px;
    }

    /* ── Admin sidebar: horizontal scroll strip ── */
    .admin-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0;
        width: 100%;
        box-sizing: border-box;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .admin-sidebar::-webkit-scrollbar {
        display: none;
    }

    .admin-sidebar .sidebar-link {
        white-space: nowrap;
        padding: 14px 16px;
        border-right: none;
        flex-shrink: 0;
        font-size: 0.85rem;
    }

    .admin-sidebar .sidebar-link.active {
        border-right: none;
        border-bottom: 3px solid var(--accent);
    }

    /* ── Stats grid ── */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* ── Data tables: horizontal scroll, full bleed ── */
    .table-wrapper {
        border-radius: 0;
        margin: 0 -16px;
        border-left: none;
        border-right: none;
        overflow-x: auto;
        width: calc(100% + 32px);
        max-width: 100vw;
        -webkit-overflow-scrolling: touch;
    }

    .data-table th,
    .data-table td {
        padding: 10px 12px;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    /* ── Inline grid overrides (admin pages) ── */
    .scan-grid,
    [style*="grid-template-columns: 1fr 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr 1fr"],
    [style*="grid-template-columns: repeat(3"],
    [style*="grid-template-columns:repeat(3"],
    [style*="grid-template-columns: 2fr 1fr"],
    [style*="grid-template-columns:2fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
        display: grid !important;
    }

    /* ── Admin inline-padded cards ── */
    .admin-content > div[style*="padding"] {
        padding: 16px !important;
    }

    /* ── Analytics date filter: stack on mobile ── */
    .admin-content .d-flex.justify-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .admin-content .d-flex.justify-between form {
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }

    .admin-content .d-flex.justify-between form .form-control {
        flex: 1;
        min-width: 120px;
    }

    /* ── Modals: full-width on mobile ── */
    [style*="max-width:800px"],
    [style*="max-width: 800px"],
    [style*="max-width:520px"],
    [style*="max-width: 520px"],
    [style*="max-width:500px"],
    [style*="max-width: 500px"] {
        max-width: calc(100vw - 32px) !important;
        margin: 16px !important;
    }

    /* ── Forms ── */
    .form-control,
    .form-control select,
    input[type="text"],
    input[type="email"],
    input[type="number"],
    select {
        font-size: 16px;
    }

    /* ── Footer ── */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

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

    .auth-card {
        padding: 28px 20px;
    }


    .admin-content {
        padding: 12px;
    }
}

/* ─── Google Translate: hide toolbar, keep functionality ─── */
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.skiptranslate,
.goog-te-menu-value,
.goog-te-menu-frame,
#google_translate_element,
#google_translate_element2 .skiptranslate,
iframe.goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
}
body {
    top: 0 !important;
    position: static !important;
}
.goog-te-gadget {
    display: none !important;
}
/* Prevent Google from pushing body down on mobile */
@media (max-width: 768px) {
    body.translated-ltr,
    body.translated-rtl {
        top: 0 !important;
        margin-top: 0 !important;
    }
    .goog-te-banner-frame.skiptranslate {
        display: none !important;
    }
}

/* ─── Language Flag Switcher ─────────────────────────────── */
.language-flags {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.language-flag {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-block;
    cursor: pointer;
    border: 2px solid transparent;
    background-size: cover;
    background-position: center;
    transition: border-color 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.language-flag:hover {
    border-color: var(--accent);
    transform: scale(1.15);
}

.language-flag.en {
    background-image: url('https://flagicons.lipis.dev/flags/4x3/gb.svg');
}
.language-flag.es {
    background-image: url('https://flagicons.lipis.dev/flags/4x3/es.svg');
}
.language-flag.de {
    background-image: url('https://flagicons.lipis.dev/flags/4x3/de.svg');
}
.language-flag.it {
    background-image: url('https://flagicons.lipis.dev/flags/4x3/it.svg');
}
.language-flag.fr {
    background-image: url('https://flagicons.lipis.dev/flags/4x3/fr.svg');
}
.language-flag.cs {
    background-image: url('https://flagicons.lipis.dev/flags/4x3/cz.svg');
}

/* ─── Mobile Floating Booking CTA ─────────────── */
.mobile-booking-cta {
    display: none; /* Hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 12px 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.mobile-cta-left {
    flex: 1;
    min-width: 0;
}
.mobile-cta-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}
.mobile-cta-suffix {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
}
.mobile-cta-badges {
    display: flex;
    gap: 10px;
    margin-top: 3px;
}
.mobile-cta-badges span {
    font-size: 0.68rem;
    color: var(--text-muted);
    white-space: nowrap;
}
.mobile-cta-badges i {
    color: var(--accent);
    margin-right: 3px;
    font-size: 0.65rem;
}
.mobile-cta-btn {
    flex-shrink: 0;
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    white-space: nowrap;
}
.mobile-booking-cta.hidden {
    display: none !important;
}

/* ─── Image Dropzone (Admin) ──────────────────── */
.image-dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-surface);
    position: relative;
}
.image-dropzone:hover,
.image-dropzone.dragover {
    border-color: var(--accent);
    background: rgba(255, 107, 53, 0.05);
}
.image-dropzone .dropzone-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}
.image-dropzone .dropzone-text i {
    font-size: 2rem;
    color: var(--accent);
    opacity: 0.6;
}
.image-dropzone .dropzone-text span {
    font-size: 0.9rem;
    font-weight: 500;
}
.image-dropzone .dropzone-text small {
    font-size: 0.75rem;
    opacity: 0.7;
}
.dropzone-preview {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dropzone-preview img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
}
.dropzone-preview .dropzone-filename {
    font-size: 0.8rem;
    color: var(--text-muted);
    word-break: break-all;
}
.dropzone-preview-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.dropzone-preview-row img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
}

/* ── Excursion Edit Tabs ─────────────────────────────────── */
.exc-tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.exc-tab-nav::-webkit-scrollbar { display: none; }
.exc-tab-nav button {
    background: none;
    border: none;
    padding: 10px 18px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.88rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}
.exc-tab-nav button:hover { color: var(--text-primary); }
.exc-tab-nav button.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 600;
}
.exc-tab-panel { display: none; }
.exc-tab-panel.active { display: block; }

/* ── TuriTop Time Slot Buttons ────────────────────────────── */
.turitop-slot-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    min-width: 90px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
}
.turitop-slot-btn:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
}
.turitop-slot-btn.selected {
    border-color: var(--accent);
    background: rgba(255, 94, 19, 0.12);
    box-shadow: 0 0 0 1px var(--accent);
}
.turitop-slot-btn .slot-time {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
}
.turitop-slot-btn .slot-seats {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}
