/* ============================================================
   cro.guide — Premium Design System
   Palette: Navy / Sand / Gold accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@500;600;700;800&display=swap');

:root {
    /* PALETTE */
    --bg:           #F8F6F1;   /* sand background */
    --bg-soft:      #FDFBF7;
    --surface:      #FFFFFF;
    --primary:      #102238;   /* deep navy */
    --primary-2:    #1E3A56;
    --accent:       #C8A96A;   /* gold */
    --accent-soft:  #E8DDC8;   /* sand accent */
    --text:         #1B1F24;
    --text-muted:   #6B7280;
    --border:       #E5E0D6;
    --success:      #1F8A5B;
    --warning:      #C58A2A;
    --danger:       #B42318;

    /* SHADOWS */
    --shadow-sm:    0 1px 2px rgba(16, 34, 56, .04), 0 1px 3px rgba(16, 34, 56, .06);
    --shadow:       0 2px 6px rgba(16, 34, 56, .05), 0 6px 16px rgba(16, 34, 56, .08);
    --shadow-lg:    0 8px 24px rgba(16, 34, 56, .10), 0 20px 60px rgba(16, 34, 56, .14);

    /* RADIUS */
    --radius-sm:    8px;
    --radius:       14px;
    --radius-lg:    18px;
    --radius-xl:    24px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    font-size: 15px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .heading-serif {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: -0.01em;
}

h1 { font-size: 2.5rem; line-height: 1.15; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

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

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar-main {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: var(--shadow-sm);
}
.navbar-main .navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary) !important;
    letter-spacing: -0.02em;
}
.navbar-main .navbar-brand i { color: var(--accent); }
.navbar-main .nav-link {
    color: var(--text) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1.1rem;
    position: relative;
}
.navbar-main .nav-link:hover { color: var(--accent) !important; }
.navbar-main .nav-link.active { color: var(--primary) !important; }
.navbar-main .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 1.1rem;
    right: 1.1rem;
    height: 2px;
    background: var(--accent);
}
.navbar-main .btn-light {
    background: var(--primary);
    color: var(--surface);
    border: none;
    font-weight: 500;
}
.navbar-main .btn-light:hover {
    background: var(--primary-2);
    color: var(--surface);
}
.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
}
.dropdown-item {
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}
.dropdown-item:hover { background: var(--bg); color: var(--primary); }

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
    padding: 100px 0 120px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1564507592333-c60657eea523?w=2000&q=80') center/cover no-repeat;
    opacity: 0.20;
    z-index: 0;
}
.hero-section > .container { position: relative; z-index: 1; }
.hero-section h1 {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.hero-section .lead {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    font-weight: 300;
}

.hero-search-box {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    margin-top: 2.5rem;
}
.hero-tabs.nav-tabs { border-bottom: 1px solid var(--border); padding-bottom: 0; }
.hero-tabs .nav-link {
    color: var(--text-muted);
    font-weight: 600;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
}
.hero-tabs .nav-link.active {
    color: var(--primary);
    background: transparent;
    border-bottom-color: var(--accent);
}
.hero-search-box .form-control, .hero-search-box .form-select {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
}
.hero-search-box .form-control:focus, .hero-search-box .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200, 169, 106, 0.15);
}

/* ============================================================
   LISTING CARDS
   ============================================================ */
.listing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
    height: 100%;
    position: relative;
}
.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-soft);
}
.listing-card.is-featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}
.listing-card-img,
.listing-card img.listing-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.listing-card-img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--accent-soft), var(--bg));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2.5rem;
}
.listing-card-body { padding: 1.1rem 1.25rem 1.25rem; }
.listing-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
}
.listing-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin: 0.4rem 0 0.25rem;
    line-height: 1.4;
}
.listing-location { font-size: 0.82rem; color: var(--text-muted); }
.listing-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 0.7rem;
    margin-top: 0.85rem;
}

/* ============================================================
   BADGES — premium tier system
   ============================================================ */
.badge-featured {
    background: linear-gradient(135deg, var(--accent), #b3935a);
    color: #fff;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(200,169,106,0.4);
}
.badge-premium {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
}
.badge-verified {
    background: var(--success);
    color: #fff;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
}
.badge-new { background: var(--accent-soft); color: var(--primary); padding: 0.3rem 0.6rem; border-radius: 999px; font-weight: 600; }

/* Featured ribbon over images */
.featured-ribbon {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, var(--accent), #b3935a);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(200,169,106,0.5);
    z-index: 3;
}
.premium-ribbon {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    text-transform: uppercase;
    z-index: 3;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.3rem;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}
.section-divider {
    display: inline-block;
    width: 40px;
    height: 3px;
    background: var(--accent);
    margin-bottom: 1rem;
    border-radius: 2px;
}
.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* ============================================================
   CITY CARDS
   ============================================================ */
.city-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    height: 200px;
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    transition: transform 0.25s ease;
    text-decoration: none;
    background-color: var(--primary);
}
.city-card:hover { transform: translateY(-3px); }
.city-card-name {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.35rem;
}
.city-card-count { color: rgba(255,255,255,0.85); font-size: 0.85rem; margin-top: 0.25rem; }

/* ============================================================
   AGENCY / PLACE CARDS
   ============================================================ */
.agency-card { transition: all .25s; border: 1px solid var(--border) !important; }
.agency-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg) !important; border-color: var(--accent-soft) !important; }

.discover-card { transition: all .25s; border: 1px solid var(--border) !important; }
.discover-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg) !important; border-color: var(--accent-soft) !important; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}
.btn-lg { padding: 0.85rem 1.6rem; font-size: 1rem; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.82rem; }
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-2);
    border-color: var(--primary-2);
}
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
}
.btn-accent, .btn-gold {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn-accent:hover, .btn-gold:hover {
    background: #b3935a;
    border-color: #b3935a;
    color: #fff;
}
.btn-link { color: var(--primary); }
.btn-link:hover { color: var(--accent); }
.btn-success { background: var(--success); border-color: var(--success); }
.btn-danger { background: var(--danger); border-color: var(--danger); }

/* ============================================================
   CARDS / SURFACES
   ============================================================ */
.card { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card.rounded-xl { border-radius: var(--radius-lg); }
.shadow-soft { box-shadow: var(--shadow) !important; }
.shadow-premium { box-shadow: var(--shadow-lg) !important; }

/* ============================================================
   CONTACT / INQUIRY BOX
   ============================================================ */
.contact-card {
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    background: var(--surface);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: sticky;
    top: 90px;
}

/* ============================================================
   ADMIN / DASHBOARD LAYOUTS
   ============================================================ */
.admin-body { background: var(--bg); }
.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    background: var(--primary);
    position: fixed;
    top: 0; left: 0;
    padding: 1.5rem 0;
    z-index: 100;
}
.admin-sidebar .sidebar-brand {
    padding: 0 1.5rem 1.5rem;
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}
.admin-sidebar .sidebar-label {
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 1rem 1.5rem 0.4rem;
    margin: 0;
}
.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.75);
    padding: 0.6rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    border-radius: 0;
    border-left: 3px solid transparent;
}
.admin-sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}
.admin-sidebar .nav-link.active {
    color: var(--accent);
    background: rgba(255,255,255,0.08);
    border-left-color: var(--accent);
}
.admin-main { margin-left: 260px; min-height: 100vh; }
.admin-topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}
.admin-content { padding: 1.5rem; }

/* ============================================================
   STAT CARDS
   ============================================================ */
.stat-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-card.green  { border-left-color: var(--success); }
.stat-card.orange { border-left-color: var(--warning); }
.stat-card.red    { border-left-color: var(--danger); }
.stat-card.purple { border-left-color: #8b5cf6; }
.stat-card.gold   { border-left-color: var(--accent); }
.stat-card .stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.4rem;
    font-weight: 500;
}

/* ============================================================
   TABLES
   ============================================================ */
.table { font-size: 0.92rem; }
.table thead.bg-light th { background: var(--bg) !important; color: var(--text-muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.table > :not(caption) > * > * { padding: 0.85rem 1rem; vertical-align: middle; }

/* ============================================================
   FORMS
   ============================================================ */
.form-control, .form-select {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.85rem;
    font-size: 0.92rem;
    background: var(--surface);
}
.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200, 169, 106, 0.15);
}
.form-label { font-size: 0.85rem; font-weight: 500; color: var(--text); margin-bottom: 0.35rem; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert { border-radius: var(--radius); border: 1px solid transparent; padding: 0.85rem 1.2rem; }
.alert-success { background: rgba(31, 138, 91, 0.08); color: var(--success); border-color: rgba(31, 138, 91, 0.2); }
.alert-warning { background: rgba(197, 138, 42, 0.08); color: var(--warning); border-color: rgba(197, 138, 42, 0.2); }
.alert-danger  { background: rgba(180, 35, 24, 0.08); color: var(--danger); border-color: rgba(180, 35, 24, 0.2); }
.alert-info    { background: rgba(16, 34, 56, 0.05); color: var(--primary); border-color: rgba(16, 34, 56, 0.15); }

/* ============================================================
   FOOTER
   ============================================================ */
footer.bg-dark, footer.site-footer { background: var(--primary) !important; color: rgba(255,255,255,0.75); }
footer h5 { font-family: 'Playfair Display', serif; color: var(--accent) !important; }
footer h6 { color: var(--accent); font-weight: 600; }
footer .footer-newsletter input.form-control {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
}
footer .footer-newsletter input.form-control::placeholder { color: rgba(255,255,255,0.55); }
footer .footer-newsletter input.form-control:focus {
    background: rgba(255,255,255,0.12);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(200,169,106,0.15);
}
footer .social-icons a {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    transition: all .2s;
    text-decoration: none;
}
footer .social-icons a:hover { background: var(--accent); color: #fff; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-primary { color: var(--primary) !important; }
.text-accent, .text-gold { color: var(--accent) !important; }
.bg-primary { background: var(--primary) !important; }
.bg-accent, .bg-gold { background: var(--accent) !important; }
.rounded-xl { border-radius: var(--radius-lg); }
.rounded-2xl { border-radius: var(--radius-xl); }

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}
.empty-state i { font-size: 3.5rem; color: var(--accent-soft); margin-bottom: 1rem; display: block; }
.empty-state p { font-size: 0.95rem; max-width: 400px; margin: 0 auto; }
.empty-state h5 { color: var(--primary); margin-bottom: 0.6rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s; }
    .admin-sidebar.show { transform: translateX(0); box-shadow: var(--shadow-lg); }
    .admin-main { margin-left: 0; }
}
@media (max-width: 768px) {
    .hero-section { padding: 60px 0 80px; }
    .hero-section h1 { font-size: 2.1rem; }
    .section-title { font-size: 1.5rem; }
    h1 { font-size: 2rem; }
    .hero-search-box { padding: 1rem; }
}
