:root{
  --bg:#0b0f14;
  --panel:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --brand:#111827;
  --brand-2:#0ea5e9;
  --ring:#0ea5e933;
  --border:#e5e7eb;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin:0;background:linear-gradient(180deg,#f8fafc, #eef2ff);
  color:var(--text);
}

/* Header */
header{
  background: radial-gradient(1200px 500px at 20% -20%, #38bdf8 0%, #0ea5e9 20%, #111827 65%);
  color:#fff; padding:20px 0; position:sticky; top:0; z-index:20; box-shadow:0 6px 24px rgba(2,6,23,.3);
}
header .container,main .container,footer .container{max-width:1100px;margin:0 auto;padding:0 16px}
h1{margin:0;font-size:28px;letter-spacing:.3px}
nav a{color:#cbd5e1;margin-right:14px;text-decoration:none;font-weight:600}
nav a:hover,nav a.active{color:#fff;text-decoration:underline;text-underline-offset:3px}

/* Layout */
main{padding:18px 0 32px}
.card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:16px;
  padding:16px;
  margin:16px 0;
  box-shadow:0 6px 18px rgba(15,23,42,.06);
  transition:transform .12s ease, box-shadow .12s ease;
}
.card:hover{ transform:translateY(-2px); box-shadow:0 10px 24px rgba(15,23,42,.12) }

.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}

/* FIX: only grid cards get fixed-height images (prevents shrinking on single listing) */
.grid .card img{width:100%;height:190px;object-fit:cover;border-radius:12px}

.badge{display:inline-block;padding:6px 10px;border-radius:999px;background:#eff6ff;border:1px solid #dbeafe;color:#1e40af;font-size:12px}

/* Forms */
form label{font-size:13px;color:var(--muted);font-weight:600}
input,select,textarea{
  width:100%;padding:12px 12px;border:1px solid var(--border);border-radius:12px;margin:8px 0 14px;
  background:#fff; outline:none; transition:border-color .15s, box-shadow .15s;
}
input:focus,select:focus,textarea:focus{ border-color:var(--brand-2); box-shadow: 0 0 0 4px var(--ring) }

/* Buttons */
button,.btn{
  padding:10px 14px;border:none;border-radius:12px;background:linear-gradient(135deg,#0ea5e9,#2563eb);
  color:#fff;cursor:pointer;text-decoration:none;display:inline-block;font-weight:700;
  box-shadow:0 8px 20px rgba(14,165,233,.25); transition: transform .1s ease, box-shadow .1s ease;
}
button:hover,.btn:hover{ transform: translateY(-1px); box-shadow:0 10px 22px rgba(14,165,233,.35) }
button:active,.btn:active{ transform: translateY(0) }

/* Tiny utilities */
small{color:#6b7280}
h2,h3{margin:.4rem 0}
footer{padding:24px 0;color:#555}
footer p{margin:0}

/* Pills in listing */
.card h3{display:flex;align-items:center;justify-content:space-between;gap:8px}
a.card{color:inherit;text-decoration:none;border:1px solid #e5e7eb}
a.card:hover{text-decoration:none;border-color:#c7d2fe}

/* Filter row responsiveness */
@media (max-width: 720px){
  form.card>div[style*="grid"]{grid-template-columns:1fr !important}
}

/* Video styling */
video{background:#000;border:1px solid #0f172a20}

/* --- Single listing gallery helpers (optional classes) --- */
.single-listing .gallery-main img{
  width:100%;
  height:auto;         /* no forced height on the big image */
  max-height:70vh;     /* keep huge photos sensible */
  object-fit:cover;
  border-radius:12px;
}

.single-listing .gallery-thumbs img{
  width:88px;
  height:66px;
  object-fit:cover;
  border-radius:10px;
}
