/* ============================================================
   PART 3: MAIN STYLESHEET
   File: public/css/style.css
   Mobile-first, modern real-estate UI
   ============================================================ */

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  --primary:    #2563EB;
  --primary-dk: #1D4ED8;
  --primary-lt: #EFF6FF;
  --secondary:  #10B981;
  --sec-dk:     #059669;
  --bg:         #F8FAFC;
  --white:      #FFFFFF;
  --text:       #1E293B;
  --muted:      #64748B;
  --border:     #E2E8F0;
  --shadow:     0 2px 16px rgba(37,99,235,.10);
  --shadow-lg:  0 8px 40px rgba(37,99,235,.15);
  --radius:     14px;
  --radius-sm:  8px;
  --transition: .22s cubic-bezier(.4,0,.2,1);
  --header-h:   64px;
  --bnav-h:     64px;
  --font-head:  'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body:  'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-top: var(--header-h);
  padding-bottom: var(--bnav-h);
  min-height: 100vh;
}
img { max-width: 100%; display: block; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; font-size: 1rem; }

/* ── Typography ──────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(1.6rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 4vw, 2rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); }
p  { color: var(--muted); }

/* ── Container ───────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: var(--header-h);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--primary);
}
.logo-icon { font-size: 1.5rem; }
.main-nav { display: none; align-items: center; gap: 24px; }
.main-nav a {
  font-weight: 500; font-size: .93rem; color: var(--text);
  transition: color var(--transition);
}
.main-nav a:hover { color: var(--primary); }
.nav-btn {
  background: var(--primary); color: #fff !important; padding: 8px 20px;
  border-radius: 50px; font-weight: 600; font-size: .88rem;
  transition: background var(--transition), transform var(--transition);
}
.nav-btn:hover { background: var(--primary-dk); transform: translateY(-1px); }
.nav-btn.outline {
  background: transparent; border: 2px solid var(--primary); color: var(--primary) !important;
}
.hamburger {
  display: flex; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 8px; border-radius: var(--radius-sm);
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--text);
  border-radius: 2px; transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav dropdown */
.main-nav.open {
  display: flex; flex-direction: column; position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: var(--white); padding: 24px 20px;
  border-bottom: 1px solid var(--border); z-index: 998;
  box-shadow: var(--shadow-lg);
}
.main-nav.open a { font-size: 1.05rem; padding: 10px 0; border-bottom: 1px solid var(--border); }

/* ── Bottom Nav ──────────────────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 997;
  height: var(--bnav-h);
  display: flex; background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
.bnav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; font-size: .68rem; font-weight: 600;
  color: var(--muted); transition: color var(--transition);
}
.bnav-item.active, .bnav-item:hover { color: var(--primary); }
.bnav-icon { font-size: 1.3rem; line-height: 1; }
.bnav-cta {
  background: var(--primary); color: #fff !important; margin: 6px 4px;
  border-radius: var(--radius); flex: 0 0 60px;
}
.bnav-cta .bnav-icon { font-size: 1.5rem; }

/* ── Alert / Flash ───────────────────────────────────────── */
.alert {
  padding: 14px 20px; border-radius: var(--radius-sm); margin: 12px 16px;
  font-weight: 500; font-size: .92rem; border-left: 4px solid;
}
.alert-success { background: #ECFDF5; border-color: var(--secondary); color: #065F46; }
.alert-error   { background: #FEF2F2; border-color: #EF4444; color: #991B1B; }
.alert-warning { background: #FFFBEB; border-color: #F59E0B; color: #92400E; }
.alert-info    { background: #EFF6FF; border-color: var(--primary); color: #1E40AF; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 50px; font-weight: 600; font-size: .93rem;
  border: none; cursor: pointer; transition: all var(--transition); line-height: 1;
}
.btn-primary   { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dk); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--sec-dk); transform: translateY(-2px); }
.btn-outline   { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-danger    { background: #EF4444; color: #fff; }
.btn-danger:hover { background: #DC2626; }
.btn-sm        { padding: 8px 16px; font-size: .83rem; }
.btn-lg        { padding: 16px 36px; font-size: 1.05rem; }
.btn-full      { width: 100%; border-radius: var(--radius-sm); }
.btn-whatsapp  { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #128C7E; }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--text); }
.form-control {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); background: var(--white); color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none; -webkit-appearance: none;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.form-control::placeholder { color: #CBD5E1; }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.form-error { font-size: .78rem; color: #EF4444; margin-top: 4px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 600px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .form-row-3 { grid-template-columns: 1fr 1fr 1fr; } }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body  { padding: 16px; }

/* ── Property Card ───────────────────────────────────────── */
.property-card { cursor: pointer; }
.property-img-wrap { position: relative; height: 200px; overflow: hidden; background: var(--border); }
.property-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.property-card:hover .property-img-wrap img { transform: scale(1.06); }
.prop-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--primary); color: #fff;
  padding: 4px 12px; border-radius: 50px; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
}
.prop-badge.featured { background: #F59E0B; }
.prop-price {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(30,41,59,.85); color: #fff; backdrop-filter: blur(4px);
  padding: 6px 14px; border-radius: 50px; font-weight: 700; font-size: 1rem;
}
.prop-title { font-size: 1rem; font-weight: 700; margin: 0 0 4px; color: var(--text); line-height: 1.35; }
.prop-location { font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.prop-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.prop-meta-item { display: flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--muted); background: var(--bg); padding: 4px 10px; border-radius: 50px; }
.prop-desc { font-size: .83rem; color: var(--muted); margin-bottom: 14px; }

/* ── Grid layouts ────────────────────────────────────────── */
.properties-grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px)  { .properties-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1000px) { .properties-grid { grid-template-columns: repeat(3,1fr); } }

/* ── Hero Section ────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1E293B 0%, #1D4ED8 60%, #0EA5E9 100%);
  position: relative; overflow: hidden;
  padding: 60px 16px 40px;
  min-height: 380px; display: flex; align-items: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; text-align: center; color: #fff; width: 100%; max-width: 700px; margin: 0 auto; }
.hero h1 { color: #fff; font-size: clamp(1.6rem, 5vw, 3rem); margin-bottom: 12px; }
.hero p  { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: 28px; }

/* Search Box */
.search-box {
  background: var(--white); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-lg);
  display: grid; gap: 12px;
}
@media (min-width: 768px) {
  .search-box { grid-template-columns: 1fr 1fr 1fr auto; align-items: end; }
}
.search-box .btn { white-space: nowrap; }

/* ── Section ─────────────────────────────────────────────── */
.section { padding: 48px 0; }
.section-header { text-align: center; margin-bottom: 32px; }
.section-header h2 { margin-bottom: 8px; }
.section-badge {
  display: inline-block; background: var(--primary-lt); color: var(--primary);
  font-size: .78rem; font-weight: 700; padding: 4px 14px; border-radius: 50px;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px;
}

/* ── Stats Bar ───────────────────────────────────────────── */
.stats-bar { background: var(--primary); padding: 20px 0; }
.stats-bar .container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 16px; }
.stat-item { text-align: center; color: #fff; }
.stat-num  { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; }
.stat-lbl  { font-size: .78rem; opacity: .8; }

/* ── How It Works ────────────────────────────────────────── */
.steps-grid { display: grid; gap: 24px; }
@media (min-width: 600px) { .steps-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 900px) { .steps-grid { grid-template-columns: repeat(4,1fr); } }
.step-card { text-align: center; padding: 28px 20px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.step-num  { width: 48px; height: 48px; background: var(--primary-lt); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; margin: 0 auto 14px; }
.step-icon { font-size: 2rem; margin-bottom: 12px; }
.step-card h4 { margin-bottom: 6px; font-size: .95rem; }
.step-card p  { font-size: .82rem; }

/* ── Location Cards ──────────────────────────────────────── */
.locations-grid { display: grid; gap: 16px; grid-template-columns: repeat(2,1fr); }
@media (min-width: 600px) { .locations-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 900px) { .locations-grid { grid-template-columns: repeat(4,1fr); } }
.location-card {
  background: var(--white); border-radius: var(--radius); padding: 20px 16px;
  text-align: center; box-shadow: var(--shadow); cursor: pointer;
  transition: all var(--transition); border: 2px solid transparent;
}
.location-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.loc-icon { font-size: 2rem; margin-bottom: 8px; }
.loc-name { font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.loc-count { font-size: .78rem; color: var(--muted); }

/* ── Property Detail ─────────────────────────────────────── */
.property-detail { max-width: 960px; margin: 0 auto; padding: 24px 16px; }
.gallery-main { border-radius: var(--radius); overflow: hidden; height: 280px; margin-bottom: 10px; background: var(--border); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs img { width: 80px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; cursor: pointer; border: 2px solid transparent; flex-shrink: 0; }
.gallery-thumbs img.active, .gallery-thumbs img:hover { border-color: var(--primary); }
.detail-grid { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 768px) { .detail-grid { grid-template-columns: 1fr 340px; } }
.detail-info { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.detail-sidebar > * + * { margin-top: 16px; }
.detail-price { font-size: 1.8rem; font-weight: 800; color: var(--primary); font-family: var(--font-head); }
.detail-price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.detail-meta { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin: 20px 0; }
@media (min-width: 400px) { .detail-meta { grid-template-columns: repeat(3,1fr); } }
.meta-box { background: var(--bg); border-radius: var(--radius-sm); padding: 14px 12px; text-align: center; }
.meta-box .meta-val { font-weight: 700; font-size: 1rem; color: var(--text); font-family: var(--font-head); }
.meta-box .meta-key { font-size: .73rem; color: var(--muted); margin-top: 2px; }
.amenities-list { display: flex; flex-wrap: wrap; gap: 8px; }
.amenity-tag { background: var(--primary-lt); color: var(--primary); padding: 6px 14px; border-radius: 50px; font-size: .8rem; font-weight: 600; }

/* Contact Card */
.contact-card { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.contact-card h3 { margin-bottom: 16px; font-size: 1rem; }
.map-embed { border-radius: var(--radius-sm); overflow: hidden; margin-top: 16px; }
.map-embed iframe { width: 100%; height: 200px; border: none; }

/* ── Filters Bar ─────────────────────────────────────────── */
.filters-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 16px; position: sticky; top: var(--header-h); z-index: 10; }
.filters-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.filter-chip {
  white-space: nowrap; padding: 8px 16px; border-radius: 50px;
  border: 1.5px solid var(--border); background: var(--white);
  font-size: .83rem; font-weight: 500; cursor: pointer;
  transition: all var(--transition); flex-shrink: 0;
}
.filter-chip.active, .filter-chip:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Sidebar Filters ─────────────────────────────────────── */
.listings-layout { display: grid; gap: 24px; max-width: 1200px; margin: 0 auto; padding: 24px 16px; }
@media (min-width: 900px) { .listings-layout { grid-template-columns: 280px 1fr; } }
.filter-panel { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); height: fit-content; position: sticky; top: calc(var(--header-h) + 10px); }
.filter-panel h3 { margin-bottom: 16px; font-size: 1rem; }
.filter-section { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 16px; }
.filter-section h4 { font-size: .85rem; font-weight: 700; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }

/* ── Auth Pages ──────────────────────────────────────────── */
.auth-page { min-height: calc(100vh - var(--header-h) - var(--bnav-h)); display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card { background: var(--white); border-radius: var(--radius); padding: 32px 28px; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); }
.auth-logo  { text-align: center; margin-bottom: 24px; }
.auth-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; text-align: center; }
.auth-sub   { text-align: center; color: var(--muted); font-size: .88rem; margin-bottom: 24px; }
.auth-divider { text-align: center; position: relative; margin: 18px 0; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.auth-divider span { position: relative; background: var(--white); padding: 0 12px; font-size: .82rem; color: var(--muted); }
.auth-switch { text-align: center; margin-top: 20px; font-size: .88rem; color: var(--muted); }
.auth-switch a { color: var(--primary); font-weight: 600; }

/* ── Dashboard ───────────────────────────────────────────── */
.dashboard { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }
.dash-header { margin-bottom: 24px; }
.dash-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-bottom: 24px; }
@media (min-width: 600px) { .dash-stats { grid-template-columns: repeat(4,1fr); } }
.dash-stat-card { background: var(--white); border-radius: var(--radius); padding: 20px 16px; box-shadow: var(--shadow); text-align: center; }
.dash-stat-num  { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--primary); }
.dash-stat-lbl  { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.dash-icon      { font-size: 1.5rem; margin-bottom: 6px; }

/* ── Pending Banner ──────────────────────────────────────── */
.pending-banner {
  background: linear-gradient(135deg,#FEF3C7,#FDE68A);
  border: 2px solid #F59E0B; border-radius: var(--radius);
  padding: 24px; margin-bottom: 24px;
}
.pending-banner h3 { color: #92400E; margin-bottom: 8px; }
.pending-banner p  { color: #78350F; }
.upi-box { background: var(--white); border-radius: var(--radius-sm); padding: 16px; margin-top: 14px; border: 2px dashed #F59E0B; }
.upi-id { font-family: monospace; font-size: 1.2rem; font-weight: 700; color: var(--primary); margin: 6px 0; }

/* ── Admin ───────────────────────────────────────────────── */
.admin-layout { display: grid; min-height: calc(100vh - var(--header-h)); }
@media (min-width: 900px) { .admin-layout { grid-template-columns: 240px 1fr; } }
.admin-sidebar {
  background: #1E293B; color: #fff; padding: 24px 0;
  display: none; /* shown via JS on desktop */
}
@media (min-width: 900px) { .admin-sidebar { display: block; } }
.admin-sidebar .logo { padding: 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 12px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; color: rgba(255,255,255,.7); font-size: .9rem;
  transition: all var(--transition);
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(255,255,255,.08); color: #fff; border-left: 3px solid var(--primary); }
.admin-content { padding: 24px 16px; background: var(--bg); }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }

/* Data Table */
.data-table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.data-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.data-table th { background: var(--bg); padding: 14px 16px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); text-align: left; border-bottom: 1px solid var(--border); }
.data-table td { padding: 14px 16px; font-size: .88rem; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg); }
.badge { display: inline-flex; padding: 4px 10px; border-radius: 50px; font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.badge-active   { background: #ECFDF5; color: #065F46; }
.badge-pending  { background: #FFFBEB; color: #92400E; }
.badge-inactive { background: #F1F5F9; color: #64748B; }

/* ── Pagination ──────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 6px; margin: 24px 0; flex-wrap: wrap; }
.page-btn {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--white); font-weight: 600; font-size: .88rem; cursor: pointer;
  transition: all var(--transition);
}
.page-btn.active, .page-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Page Header ─────────────────────────────────────────── */
.page-hero { background: linear-gradient(135deg,#1E293B,#2563EB); color: #fff; padding: 40px 16px; text-align: center; }
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p  { color: rgba(255,255,255,.75); }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: rgba(255,255,255,.6); justify-content: center; margin-bottom: 8px; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: #fff; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: #1E293B; color: rgba(255,255,255,.8); padding: 48px 16px 24px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; gap: 32px; grid-template-columns: 1fr;
}
@media (min-width: 600px)  { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px)  { .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand p   { font-size: .85rem; line-height: 1.7; color: rgba(255,255,255,.6); }
.footer-links h4  { color: #fff; font-size: .9rem; margin-bottom: 14px; }
.footer-links a   { display: block; font-size: .83rem; color: rgba(255,255,255,.6); margin-bottom: 8px; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.social-links { display: flex; gap: 12px; margin-top: 14px; }
.social-links a { font-size: .83rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.social-links a:hover { color: var(--secondary); }
.footer-bottom { max-width: 1200px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: .8rem; color: rgba(255,255,255,.4); }

/* ── Image Upload Preview ────────────────────────────────── */
.upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius-sm);
  padding: 28px; text-align: center; cursor: pointer; transition: all var(--transition);
}
.upload-area:hover, .upload-area.dragover { border-color: var(--primary); background: var(--primary-lt); }
.upload-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.preview-img { position: relative; width: 90px; height: 70px; border-radius: var(--radius-sm); overflow: hidden; }
.preview-img img { width: 100%; height: 100%; object-fit: cover; }
.preview-img .remove-img { position: absolute; top: 2px; right: 2px; background: rgba(239,68,68,.9); color: #fff; border: none; border-radius: 50%; width: 20px; height: 20px; font-size: .7rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ── Utility ─────────────────────────────────────────────── */
.text-center   { text-align: center; }
.text-muted    { color: var(--muted); }
.text-primary  { color: var(--primary); }
.text-success  { color: var(--secondary); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ── Loading Spinner ─────────────────────────────────────── */
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── No Results ──────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 16px; }
.empty-state h3 { margin-bottom: 8px; }

/* ── Responsive desktop tweaks ───────────────────────────── */
@media (min-width: 768px) {
  .gallery-main { height: 420px; }
  .bottom-nav { display: none; }
  body { padding-bottom: 0; }
  .main-nav { display: flex; }
  .hamburger { display: none; }
  .hero { padding: 80px 16px 60px; min-height: 500px; }
  .search-box { gap: 14px; }
}