:root {
    --color-primary: #F0784B;
    --color-primary-dark: #D65A2E;
    --color-accent: #2FB6AC;
    --color-accent-dark: #24948C;
    --color-cream: #FDF3E7;
    --color-text: #2B2B2B;
    --color-muted: #6B6B6B;
    --color-bg: #F7F8FA;
    --color-card-bg: #FFFFFF;
    --color-border: #E7E7E7;
    --radius: 14px;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --gradient-brand: linear-gradient(135deg, #FDA85D 0%, #F1515D 100%);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.trustbar {
    background: var(--color-cream);
    font-size: 0.85rem;
    color: var(--color-primary-dark);
    font-weight: 600;
}
.trustbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    gap: 28px;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.trustbar-inner::-webkit-scrollbar { display: none; }
.trustbar-inner span { white-space: nowrap; flex-shrink: 0; }

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    white-space: nowrap;
}
.logo-mark { flex-shrink: 0; }
.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 600;
}
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
    background: none;
    border: none;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-text);
    padding: 0;
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 8px;
    min-width: 200px;
    margin-top: 12px;
}
.nav-dropdown-menu a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 500;
}
.nav-dropdown-menu a:hover { background: var(--color-cream); }
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu { display: block; }

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}
.mobile-nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--color-text);
    display: block;
    border-radius: 2px;
}

@media (max-width: 680px) {
    .site-header-inner { flex-wrap: wrap; }
    .mobile-nav-toggle { display: flex; }
    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-top: 12px;
        order: 3;
    }
    .main-nav.open { display: flex; }
    .main-nav > a { padding: 12px 0; border-top: 1px solid var(--color-border); }
    .nav-dropdown { width: 100%; }
    .nav-dropdown-toggle { width: 100%; text-align: left; padding: 12px 0; border-top: 1px solid var(--color-border); }
    .nav-dropdown-menu {
        display: none;
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding: 0 0 8px 12px;
        margin-top: 0;
    }
    .nav-dropdown:hover .nav-dropdown-menu { display: none; }
    .nav-dropdown.open .nav-dropdown-menu { display: block; }
}

/* Hero */
.hero {
    background-image: linear-gradient(180deg, rgba(11, 30, 45, 0.4), rgba(11, 30, 45, 0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 72px 20px;
    text-align: center;
}
.hero h1 { font-size: 2.4rem; margin: 0 0 12px; text-shadow: 0 2px 12px rgba(0,0,0,0.25); }
.hero p { font-size: 1.15rem; opacity: 0.95; margin: 0; text-shadow: 0 1px 8px rgba(0,0,0,0.2); }

/* Sections */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 20px;
}
.section h2 {
    font-size: 1.6rem;
    margin: 0 0 24px;
}
.section-sub {
    color: var(--color-muted);
    margin-top: -16px;
    margin-bottom: 28px;
}

/* Deal cards */
.deal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.deal-row {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.deal-row .deal-card { min-width: 260px; }

.deal-card {
    background: var(--color-card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.deal-card-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: #eee;
}
.deal-card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.deal-card-body h3 { margin: 0; font-size: 1.05rem; }
.deal-stars { color: var(--color-primary); font-size: 0.95rem; }
.deal-meta { color: var(--color-muted); font-size: 0.9rem; display: flex; align-items: center; gap: 6px; }
.deal-price { margin-top: auto; font-size: 0.9rem; color: var(--color-muted); }
.deal-price strong { font-size: 1.3rem; color: var(--color-text); }
.deal-found-at { font-size: 0.75rem; color: #a0a0a0; }

.btn {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}
.btn:hover { background: var(--color-accent-dark); }
.btn-primary { background: var(--color-primary); }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-block { display: block; width: 100%; }

/* Destination tiles */
.destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}
.destination-tile {
    background: var(--gradient-brand);
    border-radius: var(--radius);
    color: #fff;
    padding: 28px 16px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
}
.destination-tile .flag { font-size: 2.2rem; display: block; margin-bottom: 8px; }

/* Trust counters */
.counters {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 24px;
}
.counters .counter strong { display: block; font-size: 2rem; color: var(--color-primary-dark); }

/* Filters + listing layout */
.listing-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.filters {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    position: sticky;
    top: 90px;
}
.filters h4 { margin: 0 0 8px; }
.filters .filter-group { margin-bottom: 16px; }
.filters label { display: block; font-size: 0.9rem; margin-bottom: 4px; color: var(--color-muted); }
.filters select, .filters input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    font: inherit;
}

.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 28px; }
.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    font-weight: 600;
}
.pagination span { box-shadow: none; background: transparent; color: var(--color-muted); padding: 8px 4px; }
.pagination .active { background: var(--color-primary); color: #fff; }

/* Deal detail */
.deal-detail { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.deal-detail-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 360px; background-size: cover; background-position: center; background-color: #eee; }
.deal-detail-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.deal-detail-table td { padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.deal-detail-table td:first-child { color: var(--color-muted); width: 40%; }
.price-box {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    text-align: center;
    align-self: start;
    position: sticky;
    top: 90px;
}
.price-box .price-big { font-size: 2rem; font-weight: 800; color: var(--color-primary-dark); }

/* Newsletter / footer */
.newsletter-band { background: var(--color-cream); }
.newsletter-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.newsletter-form input {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    font: inherit;
    min-width: 240px;
}
.newsletter-thanks { font-weight: 700; color: var(--color-primary-dark); }

.site-footer { background: #fff; border-top: 1px solid var(--color-border); }
.footer-columns {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
}
.footer-col h4 { margin: 0 0 12px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-muted);
    padding: 16px 20px;
    border-top: 1px solid var(--color-border);
}

/* Admin */
.admin-body { background: var(--color-bg); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 220px;
    background: #1f2a30;
    color: #fff;
    padding: 24px 0;
    flex-shrink: 0;
}
.admin-sidebar a { display: block; padding: 12px 24px; color: #cfd8dc; font-weight: 600; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.08); color: #fff; }
.admin-sidebar .brand { padding: 0 24px 20px; font-size: 0.95rem; line-height: 1.3; font-weight: 800; color: #fff; }
.admin-main { flex: 1; padding: 32px; max-width: 1100px; }
.admin-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 24px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--color-border); font-size: 0.92rem; }
.admin-table th { color: var(--color-muted); font-weight: 600; }
.admin-form label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: 0.9rem; }
.admin-form input, .admin-form select, .admin-form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    font: inherit;
}
.admin-form textarea { min-height: 90px; }
.login-shell { max-width: 380px; margin: 80px auto; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.badge.active { background: #e3f6e5; color: #2c7a3d; }
.badge.inactive { background: #f4e3e3; color: #a03434; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 0.9rem; }
.alert-success { background: #e3f6e5; color: #2c7a3d; }
.alert-error { background: #f4e3e3; color: #a03434; }
.text-muted { color: var(--color-muted); }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
    .listing-layout { grid-template-columns: 1fr; }
    .deal-detail { grid-template-columns: 1fr; }
    .footer-columns { grid-template-columns: 1fr; }
    .admin-shell { flex-direction: column; }
    .admin-sidebar { width: 100%; display: flex; flex-wrap: wrap; padding: 12px; }
    .admin-sidebar .brand { width: 100%; padding: 8px 12px; }
}
