/* ─── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --navy:        #0D1B35;
  --navy-light:  #162444;
  --orange:      #E07020;
  --orange-light:#f08840;
  --teal:        #1B9EAF;
  --teal-light:  #2AB8CB;
  --white:       #ffffff;
  --gray-50:     #f8f9fa;
  --gray-100:    #f1f3f5;
  --gray-200:    #e9ecef;
  --gray-400:    #ced4da;
  --gray-500:    #adb5bd;
  --gray-600:    #6c757d;
  --gray-700:    #495057;
  --gray-900:    #212529;
  --green:       #22c55e;
  --red:         #ef4444;
  --shadow-sm:   0 1px 4px rgba(0,0,0,.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.18);
  --radius:      8px;
  --radius-lg:   16px;
  --transition:  .25s ease;
}

/* ─── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; color: var(--gray-900); background: var(--white); line-height: 1.6; }
img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }

/* ─── Utilities ───────────────────────────────────────────────────────────── */
.container    { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sr-only      { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-center  { text-align: center; }
.text-orange  { color: var(--orange); }
.hidden       { display: none !important; }
.flex         { display: flex; }
.gap-8        { gap: 8px; }
.gap-16       { gap: 16px; }
.mt-8         { margin-top: 8px; }
.mt-16        { margin-top: 16px; }
.mt-24        { margin-top: 24px; }
.mt-32        { margin-top: 32px; }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius); font-weight: 600; font-size: .95rem;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary   { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--navy); color: var(--white); }
.btn-secondary:hover { background: var(--navy-light); transform: translateY(-1px); }
.btn-outline   { border: 2px solid var(--orange); color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: var(--navy); }
.btn-ghost     { color: var(--gray-700); }
.btn-ghost:hover { background: var(--gray-100); }
.btn-danger    { background: var(--red); color: var(--white); }
.btn-sm        { padding: 8px 18px; font-size: .875rem; }
.btn-lg        { padding: 16px 36px; font-size: 1.05rem; }
.btn-block     { width: 100%; }
.btn-whatsapp  { background: #25d366; color: var(--white); }
.btn-whatsapp:hover { background: #1dbb59; transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ─── Forms ───────────────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .875rem; font-weight: 600; color: var(--gray-700); }
.form-control {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--gray-400); border-radius: var(--radius);
  transition: border-color var(--transition); background: var(--white);
}
.form-control:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,121,29,.15); }
.form-control::placeholder { color: var(--gray-500); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-error { color: var(--red); font-size: .8rem; margin-top: 4px; }
.form-success { color: var(--green); font-size: .9rem; font-weight: 500; text-align: center; padding: 12px; background: rgba(34,197,94,.1); border-radius: var(--radius); }

/* ─── Badge ───────────────────────────────────────────────────────────────── */
.badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.badge-venda    { background: rgba(232,121,29,.15); color: var(--orange); }
.badge-aluguel  { background: rgba(27,158,175,.15); color: var(--teal); }
.badge-sold     { background: rgba(239,68,68,.12); color: var(--red); }
.badge-rented   { background: rgba(239,68,68,.12); color: var(--red); }
.badge-active   { background: rgba(34,197,94,.12); color: #16a34a; }

/* ─── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--navy);
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; max-width: 1200px; margin: 0 auto; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img  { height: 44px; }
.logo-text { font-size: 1.25rem; font-weight: 800; color: var(--white); line-height: 1.2; }
.logo-text span { color: var(--orange); }
.site-nav { display: flex; gap: 4px; }
.site-nav a { color: rgba(255,255,255,.85); padding: 8px 14px; border-radius: 6px; font-size: .9rem; font-weight: 500; transition: var(--transition); }
.site-nav a:hover, .site-nav a.active { color: var(--white); background: rgba(255,255,255,.1); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-phone { color: rgba(255,255,255,.9); font-size: .9rem; font-weight: 600; white-space: nowrap; }
.mobile-menu-btn { display: none; color: var(--white); padding: 8px; }

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 580px; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, #0e2245 55%, #0d2a3a 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: .07;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Ccircle cx='30' cy='30' r='20' fill='none' stroke='%23fff' stroke-width='.5'/%3E%3C/svg%3E");
}
.hero-inner  { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 420px; gap: 60px; align-items: center; max-width: 1200px; margin: 0 auto; padding: 60px 20px; }
.hero-label  { display: inline-block; background: rgba(27,158,175,.25); color: var(--teal-light); padding: 6px 14px; border-radius: 20px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.hero h1     { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--white); line-height: 1.2; margin-bottom: 16px; }
.hero h1 span { color: var(--orange); }
.hero-sub    { color: rgba(255,255,255,.75); font-size: 1.1rem; margin-bottom: 32px; max-width: 500px; }
.hero-stats  { display: flex; gap: 32px; }
.hero-stat   { text-align: center; }
.hero-stat strong { display: block; font-size: 1.75rem; font-weight: 800; color: var(--orange); }
.hero-stat span   { font-size: .8rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .5px; }

/* Lead form card in hero */
.hero-form-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-lg);
}
.hero-form-card h2 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.hero-form-card p  { font-size: .85rem; color: var(--gray-600); margin-bottom: 20px; }
.hero-form-card .form-group + .form-group { margin-top: 12px; }

/* ─── Search Bar ──────────────────────────────────────────────────────────── */
.search-section { background: var(--white); box-shadow: var(--shadow-md); position: relative; z-index: 2; }
.search-bar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
  padding: 24px 20px; max-width: 1200px; margin: 0 auto;
}
.search-bar .form-group { flex: 1; min-width: 140px; }
.search-bar .form-group label { font-size: .8rem; color: var(--gray-600); }
.search-btn { flex-shrink: 0; padding: 11px 24px; }

/* ─── Section Headers ─────────────────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; color: var(--navy); }
.section-header p  { color: var(--gray-600); margin-top: 10px; max-width: 500px; margin-left: auto; margin-right: auto; }
.section-divider   { width: 60px; height: 4px; background: linear-gradient(90deg, var(--orange), var(--teal)); border-radius: 2px; margin: 12px auto 0; }

/* ─── Property Cards ──────────────────────────────────────────────────────── */
.properties-section { padding: 64px 0; background: var(--gray-50); }
.properties-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.property-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition); cursor: pointer;
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.property-card-img { position: relative; height: 220px; overflow: hidden; }
.property-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.property-card:hover .property-card-img img { transform: scale(1.06); }
.property-card-badge { position: absolute; top: 12px; left: 12px; }
.property-card-featured { position: absolute; top: 12px; right: 12px; background: var(--orange); color: var(--white); font-size: .7rem; font-weight: 700; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; letter-spacing: .5px; }
.property-card-body { padding: 20px; }
.property-price { font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.property-price small { font-size: .75rem; font-weight: 500; color: var(--gray-500); }
.property-title { font-size: 1rem; font-weight: 600; color: var(--gray-900); margin: 6px 0 4px; line-height: 1.4; }
.property-location { font-size: .85rem; color: var(--gray-600); display: flex; align-items: center; gap: 4px; margin-bottom: 14px; }
.property-features { display: flex; gap: 16px; padding-top: 14px; border-top: 1px solid var(--gray-200); }
.property-feat { display: flex; align-items: center; gap: 5px; font-size: .82rem; color: var(--gray-700); }
.property-feat svg { color: var(--orange); flex-shrink: 0; }

.load-more-wrap { text-align: center; margin-top: 40px; }

/* ─── Benefits ────────────────────────────────────────────────────────────── */
.benefits-section { padding: 72px 0; background: var(--white); }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.benefit-card { text-align: center; padding: 32px 24px; border-radius: var(--radius-lg); transition: var(--transition); }
.benefit-card:hover { background: var(--gray-50); }
.benefit-icon { width: 64px; height: 64px; background: rgba(27,158,175,.12); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: var(--teal); }
.benefit-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.benefit-card p  { font-size: .9rem; color: var(--gray-600); line-height: 1.6; }

/* ─── Stats ───────────────────────────────────────────────────────────────── */
.stats-section { padding: 56px 0; background: linear-gradient(135deg, var(--navy) 0%, #0e2245 60%, #0d2a3a 100%); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-item strong { display: block; font-size: 2.5rem; font-weight: 800; color: var(--orange); }
.stat-item span   { font-size: .85rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; display: block; }

/* ─── CTA Strip ───────────────────────────────────────────────────────────── */
.cta-section { padding: 56px 0; background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { font-size: 1.75rem; font-weight: 800; color: var(--white); }
.cta-inner p  { color: rgba(255,255,255,.85); margin-top: 6px; }
.btn-cta-white { background: var(--white); color: var(--orange); font-weight: 700; padding: 14px 32px; border-radius: var(--radius); transition: var(--transition); white-space: nowrap; }
.btn-cta-white:hover { background: var(--gray-100); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ─── Contact ─────────────────────────────────────────────────────────────── */
.contact-section { padding: 72px 0; background: var(--gray-50); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info h2 { font-size: 1.75rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.contact-info p  { color: var(--gray-600); margin-bottom: 24px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--gray-200); }
.contact-item:last-child { border-bottom: none; }
.contact-item-icon { width: 44px; height: 44px; background: rgba(27,158,175,.12); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--teal); flex-shrink: 0; }
.contact-item strong { display: block; font-size: .85rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.contact-item span   { color: var(--gray-900); font-weight: 500; }
.contact-form-card { background: var(--white); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); }
.contact-form-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 20px; }
.contact-form-card .form-group + .form-group { margin-top: 14px; }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p    { font-size: .9rem; margin-top: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h4     { color: var(--white); font-weight: 700; margin-bottom: 16px; }
.footer-col ul li  { margin-bottom: 10px; }
.footer-col ul li a { font-size: .9rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--orange); }
.footer-bottom     { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
.footer-bottom a   { color: var(--orange); }

/* ─── WhatsApp Floating ───────────────────────────────────────────────────── */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  background: #25d366; color: var(--white); width: 60px; height: 60px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5); transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); background: #1dbb59; }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ─── Property Detail Page ────────────────────────────────────────────────── */
.breadcrumb { background: var(--gray-50); padding: 12px 0; border-bottom: 1px solid var(--gray-200); }
.breadcrumb-inner { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--gray-600); max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.breadcrumb-inner a:hover { color: var(--orange); }

.detail-section { padding: 40px 0 64px; }
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Gallery */
.gallery-main { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 440px; background: var(--gray-200); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.5); color: var(--white); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); }
.gallery-nav:hover { background: rgba(0,0,0,.8); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-counter { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,.6); color: var(--white); font-size: .8rem; padding: 4px 10px; border-radius: 20px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumb { width: 80px; height: 60px; border-radius: 6px; overflow: hidden; flex-shrink: 0; cursor: pointer; border: 2px solid transparent; transition: var(--transition); }
.gallery-thumb.active { border-color: var(--orange); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Detail info */
.detail-info { margin-top: 28px; }
.detail-price { font-size: 2rem; font-weight: 800; color: var(--navy); }
.detail-price small { font-size: 1rem; font-weight: 500; color: var(--gray-500); }
.detail-title { font-size: 1.4rem; font-weight: 700; color: var(--gray-900); margin: 8px 0 6px; }
.detail-location { color: var(--gray-600); display: flex; align-items: center; gap: 6px; font-size: .95rem; margin-bottom: 20px; }
.detail-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 20px; background: var(--gray-50); border-radius: var(--radius); margin-bottom: 24px; }
.detail-spec { text-align: center; }
.detail-spec strong { display: block; font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.detail-spec span   { font-size: .75rem; color: var(--gray-600); text-transform: uppercase; letter-spacing: .4px; }
.detail-description h3, .detail-features-list h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--gray-200); }
.detail-description p { color: var(--gray-700); line-height: 1.8; }
.features-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.feature-tag { background: var(--gray-100); color: var(--gray-700); padding: 6px 14px; border-radius: 20px; font-size: .85rem; display: flex; align-items: center; gap: 6px; }
.feature-tag::before { content: '✓'; color: var(--green); font-weight: 700; }

/* Sidebar card */
.detail-sidebar { position: sticky; top: 80px; }
.sidebar-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.sidebar-card-header { background: var(--navy); padding: 20px; }
.sidebar-card-header h3 { color: var(--white); font-size: 1rem; font-weight: 700; }
.sidebar-card-header p  { color: rgba(255,255,255,.7); font-size: .85rem; margin-top: 4px; }
.sidebar-card-body { padding: 24px; }
.sidebar-card-body .form-group + .form-group { margin-top: 12px; }
.sidebar-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--gray-200); }

/* ─── Admin Login ─────────────────────────────────────────────────────────── */
.admin-login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy) 0%, #2a4070 100%); padding: 20px; }
.login-card { background: var(--white); border-radius: var(--radius-lg); padding: 48px 40px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.login-card .logo-text { color: var(--navy); margin-bottom: 8px; }
.login-card h1 { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.login-card > p { color: var(--gray-600); margin-bottom: 28px; font-size: .9rem; }
.login-card .form-group + .form-group { margin-top: 16px; }
.login-error { background: rgba(239,68,68,.1); color: var(--red); border-radius: var(--radius); padding: 12px 16px; font-size: .875rem; margin-top: 12px; }

/* ─── Admin Dashboard ─────────────────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; background: var(--gray-100); }

.admin-sidebar {
  width: 260px; flex-shrink: 0; background: var(--navy); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar-header { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-sidebar-header .logo-text { font-size: 1rem; }
.admin-sidebar-header .logo-text span { color: var(--orange); }
.admin-nav { padding: 16px 0; flex: 1; }
.admin-nav-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px;
  color: rgba(255,255,255,.7); font-size: .9rem; font-weight: 500; transition: var(--transition); cursor: pointer;
}
.admin-nav-item:hover, .admin-nav-item.active { color: var(--white); background: rgba(255,255,255,.08); }
.admin-nav-item.active { border-left: 3px solid var(--orange); }
.admin-nav-item svg { flex-shrink: 0; }
.admin-nav-divider { border-top: 1px solid rgba(255,255,255,.1); margin: 8px 0; }
.admin-user { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.1); }
.admin-user span { color: rgba(255,255,255,.7); font-size: .8rem; }
.admin-user strong { color: var(--white); display: block; font-size: .9rem; }

.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-topbar { background: var(--white); box-shadow: var(--shadow-sm); padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.admin-topbar h1 { font-size: 1.2rem; font-weight: 700; color: var(--navy); }
.admin-content { padding: 24px; flex: 1; overflow-y: auto; }

/* Stat cards */
.stats-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--teal); }
.stat-card h4     { font-size: .8rem; color: var(--gray-600); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.stat-card strong { display: block; font-size: 2rem; font-weight: 800; color: var(--navy); margin-top: 6px; }

/* Admin table */
.table-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.table-card-header { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--gray-200); flex-wrap: wrap; gap: 12px; }
.table-card-header h2 { font-size: 1rem; font-weight: 700; color: var(--navy); }
.table-search { display: flex; gap: 10px; flex-wrap: wrap; }
.table-search input, .table-search select { padding: 8px 12px; border: 1.5px solid var(--gray-400); border-radius: var(--radius); font-size: .875rem; min-width: 140px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: var(--gray-50); padding: 12px 16px; text-align: left; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--gray-600); border-bottom: 1px solid var(--gray-200); white-space: nowrap; }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--gray-100); font-size: .875rem; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--gray-50); }
.table-img { width: 56px; height: 44px; object-fit: cover; border-radius: 6px; }
.table-actions { display: flex; gap: 6px; }
.table-actions button { padding: 6px 12px; border-radius: 6px; font-size: .78rem; font-weight: 600; transition: var(--transition); }
.table-pagination { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--gray-200); font-size: .875rem; color: var(--gray-600); }
.table-pagination .flex { gap: 8px; }
.table-pagination button { padding: 6px 14px; border: 1.5px solid var(--gray-400); border-radius: var(--radius); font-size: .8rem; transition: var(--transition); }
.table-pagination button:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); }
.table-pagination button:disabled { opacity: .4; cursor: not-allowed; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(2px); }
.modal { background: var(--white); border-radius: var(--radius-lg); width: 100%; max-width: 720px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--white); z-index: 1; }
.modal-header h2 { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.modal-close { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gray-600); transition: var(--transition); }
.modal-close:hover { background: var(--gray-100); color: var(--gray-900); }
.modal-body { padding: 24px; }
.modal-body .form-group + .form-group { margin-top: 14px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--gray-200); display: flex; justify-content: flex-end; gap: 10px; }

/* Image upload */
.upload-zone {
  border: 2px dashed var(--gray-400); border-radius: var(--radius); padding: 32px;
  text-align: center; cursor: pointer; transition: var(--transition); background: var(--gray-50);
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--orange); background: rgba(232,121,29,.04); }
.upload-zone input { display: none; }
.upload-zone p { color: var(--gray-600); font-size: .875rem; margin-top: 8px; }
.upload-zone strong { color: var(--orange); }
.image-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-top: 12px; }
.image-preview-item { position: relative; border-radius: 8px; overflow: hidden; height: 80px; }
.image-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.image-preview-item .remove-img { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.7); color: var(--white); border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-size: .8rem; cursor: pointer; }
.image-preview-item.cover { border: 2px solid var(--orange); }
.image-preview-item .cover-label { position: absolute; bottom: 0; left: 0; right: 0; background: var(--orange); color: var(--white); font-size: .65rem; text-align: center; padding: 2px; font-weight: 700; }

/* Admin tabs */
.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }

/* Notification badge */
.notif-badge { background: var(--red); color: var(--white); font-size: .7rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; margin-left: auto; }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner  { grid-template-columns: 1fr; max-width: 640px; }
  .hero-stats  { justify-content: center; }
  .hero-form-card { max-width: 480px; width: 100%; }
  .detail-grid   { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .contact-grid  { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 768px) {
  .site-nav, .header-phone { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero { min-height: auto; }
  .hero-inner { padding: 40px 20px; }
  .hero h1 { font-size: 1.8rem; }
  .search-bar .form-group { min-width: 100%; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .detail-specs { grid-template-columns: repeat(2, 1fr); }
  .admin-sidebar { width: 220px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: relative; }
  .admin-nav { display: none; }
  .admin-nav.open { display: block; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-wrap: wrap; }
  .cta-inner { text-align: center; justify-content: center; }
}

/* ─── Animations ──────────────────────────────────────────────────────────── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in-up { animation: fadeInUp .5s ease forwards; }
.skeleton { background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ─── Toast ───────────────────────────────────────────────────────────────── */
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--white); border-radius: var(--radius); padding: 14px 20px; box-shadow: var(--shadow-lg); font-size: .875rem; font-weight: 500; display: flex; align-items: center; gap: 10px; animation: fadeInUp .3s ease; border-left: 4px solid var(--gray-400); min-width: 260px; }
.toast-success { border-color: var(--green); }
.toast-error   { border-color: var(--red); }
.toast-icon-success { color: var(--green); }
.toast-icon-error   { color: var(--red); }
