:root {
  --navy: #13233d;
  --navy-soft: #315c7d;
  --gold: #d4a657;
  --sand: #eef5f7;
  --border: rgba(255, 255, 255, 0.45);
  --bg: linear-gradient(180deg, #f4fbfd, #eef3f8 55%, #f8f4ee);
  --text: #2d4057;
  --success: #166534;
  --error: #b91c1c;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.admin-layout img, .property-grid img, .card-grid img { image-rendering: auto; }
.shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.site-header { background: rgba(255,255,255,0.55); border-bottom: 1px solid rgba(255, 255, 255, 0.35); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(20px); box-shadow: 0 16px 40px rgba(27, 52, 76, 0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.85rem; color: var(--navy); }
.brand-mark { width: 2.75rem; height: 2.75rem; border-radius: 999px; background: linear-gradient(145deg, var(--navy), #1e355d); color: white; display: grid; place-items: center; font-weight: 700; box-shadow: 0 12px 30px rgba(15, 35, 66, 0.18); }
.brand small { display: block; color: #64748b; }
.site-nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.site-nav a { padding: 0.6rem 0.9rem; border-radius: 999px; font-weight: 600; }
.site-nav a.active, .site-nav a:hover { background: var(--navy); color: white; }
.hero { padding: 4rem 0 3rem; background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.16), transparent 28%), radial-gradient(circle at top right, rgba(212, 166, 87, 0.14), transparent 22%); }
.hero-grid { display: grid; gap: 2rem; grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.78rem; font-weight: 700; }
.hero h1, h1, h2, h3 { color: var(--navy); margin: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.08; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1.05; margin-top: 1rem; }
.hero p { font-size: 1.05rem; line-height: 1.8; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.button, button, input[type=submit] {
  appearance: none; border: 0; cursor: pointer; border-radius: 999px;
  background: linear-gradient(145deg, var(--navy), #17325b); color: white; padding: 0.9rem 1.4rem; font-weight: 700;
  box-shadow: 0 18px 35px rgba(15, 35, 66, 0.16);
}
.button.secondary { background: rgba(255,255,255,0.64); color: var(--navy); border: 1px solid rgba(255,255,255,0.55); backdrop-filter: blur(14px); }
.button:hover, button:hover, input[type=submit]:hover { transform: translateY(-1px); }
.card-grid, .property-grid, .admin-grid { display: grid; gap: 1.5rem; }
.card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.property-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .panel {
  background: rgba(255,255,255,0.46);
  border: 1px solid rgba(255,255,255,0.58);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(21, 43, 64, 0.08);
  backdrop-filter: blur(18px);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 55px rgba(15, 35, 66, 0.1); }
.card-body, .panel-body { padding: 1.4rem; }
.hero-card { border-radius: 2rem; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(240,247,251,0.62)); }
.hero-copy { max-width: 44rem; }
.hero-feature { display: grid; gap: 0; }
.section-header { max-width: 46rem; margin-bottom: 1.5rem; }
.section-header p:last-child { line-height: 1.8; color: #64748b; }
.image-frame { background: rgba(255,255,255,0.66); padding: 0.85rem; min-height: 188px; display: flex; align-items: center; justify-content: center; }
.image-frame img { width: 100%; height: 168px; object-fit: contain; }
.section { padding: 2rem 0 3rem; }
.section-soft { padding: 2.5rem 0 3.25rem; }
.section-sand .shell > .panel { background: linear-gradient(180deg, #f9f3ea, #fff); }
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.5rem; }
.stat { background: rgba(255,255,255,0.86); border: 1px solid var(--border); border-radius: 1.25rem; padding: 1rem; backdrop-filter: blur(10px); }
.stat strong { display: block; font-size: 1.8rem; color: var(--navy); }
.filter-bar, .admin-tabs { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0; }
.filter-panel {
  margin: 1.75rem 0 1.5rem;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.52);
  border-radius: 1.5rem;
  padding: 1.1rem;
  box-shadow: 0 18px 40px rgba(15, 35, 66, 0.06);
  backdrop-filter: blur(18px);
}
.filter-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.chip { padding: 0.7rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.62); background: rgba(255,255,255,0.5); font-weight: 600; backdrop-filter: blur(12px); }
.active-chip { background: var(--navy); color: white; border-color: var(--navy); box-shadow: 0 15px 30px rgba(15, 35, 66, 0.18); }
.gallery-main { background: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.56); border-radius: 1.5rem; padding: 1rem; backdrop-filter: blur(14px); }
.gallery-main img { width: 100%; height: 460px; object-fit: contain; }
.gallery-controls { display: flex; justify-content: space-between; gap: 0.75rem; margin-top: 0.85rem; }
.thumbnail-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0.75rem; margin-top: 0.9rem; }
.thumbnail { border: 1px solid rgba(255,255,255,0.56); border-radius: 1rem; overflow: hidden; background: rgba(255,255,255,0.7); padding: 0.45rem; box-shadow: none; }
.thumbnail img { width: 100%; height: 100px; object-fit: contain; }
.detail-grid { display: grid; gap: 2rem; grid-template-columns: 1fr 0.9fr; }
.meta-list { display: grid; gap: 0.75rem; }
.meta-item, .badge { display: inline-flex; align-items: center; gap: 0.5rem; }
.badge { background: var(--sand); color: var(--navy); padding: 0.45rem 0.75rem; border-radius: 999px; font-weight: 700; }
.price-chip { color: var(--gold); font-weight: 700; font-size: 1.05rem; }
.contact-info-stack { display: grid; gap: 0.9rem; margin-top: 1.6rem; }
.contact-info-stack p { margin: 0; }
.contact-cta-row { margin-top: 2rem; display: flex; flex-wrap: wrap; }
.flash { margin: 1rem 0; padding: 0.95rem 1rem; border-radius: 1rem; font-weight: 600; }
.flash-success { background: #ecfdf5; color: var(--success); border: 1px solid #bbf7d0; }
.flash-error { background: #fef2f2; color: var(--error); border: 1px solid #fecaca; }
.forms-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-form-grid { align-items: start; }
label { display: block; font-size: 0.92rem; font-weight: 700; color: var(--navy); margin-bottom: 0.45rem; }
input[type=text], input[type=email], input[type=password], textarea, select {
  width: 100%; padding: 0.85rem 1rem; border: 1px solid rgba(255,255,255,0.58); border-radius: 1rem; background: rgba(255,255,255,0.72); backdrop-filter: blur(10px);
}
input[type=file] { width: 100%; padding: 0.75rem 0; }
textarea { min-height: 120px; resize: vertical; }
.form-group { margin-bottom: 1rem; }
.admin-layout { padding: 2rem 0 3rem; }
.admin-grid { grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr); align-items: start; }
.admin-header { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.admin-header h1 { margin-top: 0.55rem; margin-bottom: 0.6rem; }
.admin-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; margin: 1rem 0 1.5rem; }
.admin-kpi { background: linear-gradient(145deg, rgba(255,255,255,0.74), rgba(242,248,251,0.54)); border: 1px solid rgba(255,255,255,0.55); border-radius: 1.35rem; padding: 1rem; }
.admin-kpi strong { font-size: 2rem; color: var(--navy); display: block; }
.editor-section { border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 1rem; }
.editor-note { color: #64748b; font-size: 0.92rem; margin-top: 0; line-height: 1.65; }
.panel-body > .eyebrow + h2,
.panel-body > .eyebrow + h1 { margin-top: 0.55rem; }
.panel-body > h2 + .editor-note,
.panel-body > h1 + .editor-note { margin-top: 0.45rem; }
.preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0.75rem; }
.preview-card { border: 1px solid rgba(255,255,255,0.58); border-radius: 1rem; padding: 0.6rem; background: rgba(255,255,255,0.54); }
.preview-card img { width: 100%; height: 110px; object-fit: contain; background: white; border-radius: 0.75rem; }
.status-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 0.35rem 0.7rem; font-size: 0.78rem; font-weight: 700; }
.status-published { background: #ecfdf5; color: #166534; }
.status-draft { background: #fff7ed; color: #c2410c; }
.table-wrap { overflow-x: auto; border-radius: 1rem; }
.list-table { width: 100%; border-collapse: collapse; }
.list-table th, .list-table td { padding: 0.85rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.muted { color: #64748b; }
.stack { display: grid; gap: 1rem; }
.site-footer { border-top: 1px solid rgba(255,255,255,0.48); background: rgba(255,255,255,0.46); padding: 2rem 0; margin-top: 3rem; backdrop-filter: blur(18px); }
.footer-grid { display: grid; gap: 1rem; grid-template-columns: 1.2fr 1fr 1fr; }
.footer-link { color: var(--navy-soft); font-weight: 600; }
.footer-link:hover { color: var(--navy); }
.inline-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.small-button { padding: 0.55rem 0.9rem; font-size: 0.85rem; }
.danger { background: #b91c1c; }
.empty-state { text-align: center; padding: 2rem; color: #64748b; }
.results-note { align-self: center; color: #64748b; font-weight: 600; }
@media (max-width: 960px) {
  .hero-grid, .detail-grid, .admin-grid, .footer-grid, .card-grid, .property-grid, .forms-grid, .stats, .admin-kpis, .preview-grid, .filter-grid { grid-template-columns: 1fr; }
  .site-nav { justify-content: flex-start; }
  .thumbnail-row { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .admin-header { align-items: start; flex-direction: column; }
  .panel-body { padding: 1.15rem; }
}
