/* ===================== laurbe.pe — design tokens ===================== */
:root {
  --teal-deep:   #0E6E5B;
  --teal-mid:    #17A589;
  --gold:        #E8B923;
  --gold-dark:   #C89A12;
  --clay:        #E2643B;
  --clay-dark:   #C14E29;
  --paper:       #FDFBF6;
  --paper-warm:  #F5EAD4;
  --ink:         #1A2421;
  --ink-soft:    #46524C;
  --line:        #E0D5B8;
  --white:       #FFFFFF;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --radius: 4px;
  --shadow-card: 0 2px 14px rgba(14, 110, 91, 0.1);
  --shadow-lift: 0 10px 32px rgba(14, 110, 91, 0.2);
}

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0 0 .5em; color: var(--teal-deep); }
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--teal-mid);
  outline-offset: 2px;
}

/* Topographic parcel-grid texture — signature motif */
.parcel-texture {
  background-image:
    linear-gradient(rgba(15,61,62,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,61,62,.05) 1px, transparent 1px);
  background-size: 42px 42px;
}

/* ===================== Header ===================== */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 46px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--teal-deep);
}

.main-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.main-nav > a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.main-nav > a:hover, .main-nav > a.active {
  color: var(--teal-deep);
  border-bottom-color: var(--gold);
}

.lang-switch { display: flex; gap: 4px; border-left: 1px solid var(--line); padding-left: 16px; margin-left: 4px; }
.lang-switch a {
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 7px;
  border-radius: var(--radius);
  color: var(--ink-soft);
  letter-spacing: .04em;
}
.lang-switch a.lang-active { background: var(--teal-deep); color: var(--white); }
.lang-switch a:hover:not(.lang-active) { background: var(--paper-warm); }

.btn-nav {
  font-size: .9rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--teal-deep);
  color: var(--teal-deep);
}
.btn-nav-primary { background: var(--teal-deep); color: var(--white); }
.btn-nav-primary:hover { background: var(--teal-mid); }
.admin-link { border-color: var(--gold-dark); color: var(--gold-dark); }

/* ===================== Buttons / Forms ===================== */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, background .15s;
}
.btn-primary { background: var(--clay); color: var(--white); }
.btn-primary:hover { background: var(--clay-dark); box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.btn-outline { border-color: var(--teal-deep); color: var(--teal-deep); background: transparent; }
.btn-outline:hover { background: var(--teal-deep); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-sm { padding: 7px 14px; font-size: .82rem; }
.btn-danger { background: #B8442C; color: white; }

label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--teal-deep); }
input, textarea, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: .95rem;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  margin-bottom: 16px;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--teal-mid);
  box-shadow: 0 0 0 3px rgba(27,107,90,.15);
}
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { width: auto; margin: 0; }
.checkbox-row label { margin: 0; font-weight: 500; }

/* ===================== Flash messages ===================== */
.flash-container { margin-top: 16px; }
.flash { padding: 12px 18px; border-radius: var(--radius); margin-bottom: 10px; font-size: .92rem; font-weight: 500; }
.flash-success { background: #E3F0E5; color: #245C32; border: 1px solid #BFE0C5; }
.flash-danger { background: #F8E2DC; color: #8C3420; border: 1px solid #EFC2B5; }
.flash-info { background: #E4EFEE; color: #1B4A48; border: 1px solid #C5DEDB; }

/* ===================== Hero ===================== */
.hero {
  background: linear-gradient(150deg, var(--teal-deep) 0%, var(--teal-mid) 100%);
  color: var(--white);
  padding: 70px 0 50px;
  min-height: 340px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; width: 100%; }
.hero-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(212,175,55,.5);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.hero h1 { color: var(--white); margin-bottom: .35em; }
.hero p.lead { color: rgba(255,255,255,.82); font-size: 1.1rem; max-width: 560px; }

/* ===================== Hero carousel (banners) ===================== */
.hero-carousel { position: relative; overflow: hidden; }
.hero-carousel-track { position: relative; min-height: 440px; }
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  background-size: cover; background-position: center;
  color: var(--white);
  padding: 70px 0;
  opacity: 0;
  z-index: 0;
  transition: opacity .7s ease;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.4);
  color: var(--white); font-size: 1.6rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2; transition: background .15s;
}
.hero-carousel-arrow:hover { background: rgba(255,255,255,.32); }
.hero-carousel-arrow.prev { left: 18px; }
.hero-carousel-arrow.next { right: 18px; }
.hero-carousel-dots {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 2;
}
.hero-carousel-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.4); border: none; cursor: pointer;
  padding: 0; transition: background .15s, transform .15s;
}
.hero-carousel-dot.active { background: var(--white); transform: scale(1.2); }
@media (max-width: 640px) {
  .hero-carousel-track, .hero-slide { min-height: 320px; }
  .hero-carousel-arrow { width: 36px; height: 36px; font-size: 1.3rem; }
}

/* Search card below hero, no overlap */
.search-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-lift);
  padding: 26px;
  margin-top: 24px;
  position: relative;
  z-index: 5;
}
.search-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}
.search-grid label { margin-bottom: 5px; }
.search-grid input, .search-grid select { margin-bottom: 0; }
@media (max-width: 860px) {
  .search-grid { grid-template-columns: 1fr; }
}

/* ===================== Section headers ===================== */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 30px; flex-wrap: wrap; gap: 12px; }
.section-head .eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--clay); display: block; margin-bottom: 6px; }
.section-bg-warm { background: var(--paper-warm); }

/* ===================== Land cards ===================== */
.land-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }
.land-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .18s, box-shadow .18s;
  border: 1px solid var(--line);
}
.land-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.land-card:hover .land-card-title { color: var(--teal-mid); }
.land-card-photo { height: 180px; background: var(--paper-warm) center/cover no-repeat; position: relative; overflow: hidden; }
.land-card-photo::before {
  content: "";
  position: absolute; inset: 0;
  background: inherit;
  background-size: cover;
  transform: scale(1);
  transition: transform .35s ease;
}
.land-card:hover .land-card-photo::before { transform: scale(1.08); }
.land-card-status {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  background: var(--teal-deep); color: var(--white);
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
}
.land-card-status.reserved { background: var(--gold-dark); }
.land-card-status.sold { background: var(--clay); }
.land-card-body { padding: 16px 18px 20px; }
.land-card-price { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--teal-deep); }
.land-card-title { font-size: 1rem; font-weight: 600; margin: 4px 0 8px; color: var(--ink); transition: color .15s; }
.land-card-meta { font-size: .82rem; color: var(--ink-soft); display: flex; gap: 14px; }
.land-card-meta span::before { content: "•"; margin-right: 6px; color: var(--gold-dark); }
.land-card-meta span:first-child::before { content: ""; margin: 0; }

/* ===================== Filter bar (lands list page) ===================== */
.filter-bar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}
.filter-bar label { margin-bottom: 5px; }
.filter-bar input, .filter-bar select { margin-bottom: 0; }
@media (max-width: 900px) { .filter-bar { grid-template-columns: 1fr 1fr; } }

/* ===================== Land detail page ===================== */
.land-detail-hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0; background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--line); }
.land-detail-photo { height: 100%; min-height: 360px; background: var(--paper-warm) center/cover no-repeat; }
.land-detail-info { padding: 30px; }
.land-detail-info .price { font-family: var(--font-display); font-size: 2.2rem; color: var(--teal-deep); font-weight: 700; }
.land-detail-tags { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 20px; }
.tag { background: var(--paper-warm); border: 1px solid var(--line); padding: 6px 12px; border-radius: 20px; font-size: .8rem; font-weight: 600; color: var(--teal-deep); }

.gallery-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 26px 0; }
.gallery-strip img { height: 90px; width: 100%; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }

.map-embed { width: 100%; height: 360px; border: 0; border-radius: 8px; }
.map-embed-wide { width: 100%; height: 420px; border: 0; border-radius: 8px; }

/* ===================== Articles ===================== */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.article-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-card); display: block; transition: transform .18s, box-shadow .18s; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.article-card:hover .article-card-body h3 { color: var(--teal-mid); }
.article-card-img { height: 160px; background: var(--paper-warm) center/cover no-repeat; position: relative; overflow: hidden; }
.article-card-img::before {
  content: "";
  position: absolute; inset: 0;
  background: inherit;
  background-size: cover;
  transform: scale(1);
  transition: transform .35s ease;
}
.article-card:hover .article-card-img::before { transform: scale(1.08); }
.article-card-body { padding: 18px 20px; }
.article-card-body h3 { font-size: 1.1rem; transition: color .15s; }
.article-content { max-width: 720px; margin: 0 auto; font-size: 1.05rem; }
.article-content img { border-radius: 8px; margin: 20px 0; }

/* ===================== Contact ===================== */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; }
.contact-info-card { background: var(--teal-deep); color: var(--white); border-radius: 10px; padding: 32px; }
.contact-info-card h3 { color: var(--gold); }
.contact-info-card p { color: rgba(255,255,255,.85); }
.contact-method { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.contact-method:last-child { border-bottom: none; }
.contact-method .icon { font-size: 1.3rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ===================== Auth pages ===================== */
.auth-wrap { max-width: 440px; margin: 60px auto; padding: 0 24px; }
.auth-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 36px; box-shadow: var(--shadow-card); }
.auth-card h1 { font-size: 1.7rem; text-align: center; }
.auth-switch { text-align: center; margin-top: 18px; font-size: .9rem; color: var(--ink-soft); }
.auth-switch a { color: var(--clay); font-weight: 600; }

/* ===================== Footer ===================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 50px 0 24px; margin-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer-logo { height: 42px; width: auto; margin-bottom: 10px; }
.footer-col h4 { color: var(--gold); font-size: .95rem; }
.footer-col p { color: rgba(255,255,255,.65); font-size: .88rem; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* ===================== WhatsApp floating button ===================== */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  z-index: 200;
  transition: transform .15s;
}
.whatsapp-float::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: whatsapp-pulse 2.4s ease-out infinite;
  z-index: -1;
}
.whatsapp-float:hover { transform: scale(1.08); }
@keyframes whatsapp-pulse {
  0% { transform: scale(1); opacity: .5; }
  100% { transform: scale(1.7); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float::before { animation: none; }
}

/* ===================== Admin panel ===================== */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 64px); }
.admin-sidebar { background: var(--teal-deep); color: var(--white); padding: 28px 0; }
.admin-sidebar a {
  display: block; padding: 12px 28px; font-size: .92rem; font-weight: 500;
  color: rgba(255,255,255,.78); border-left: 3px solid transparent;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,.06); color: var(--white); border-left-color: var(--gold); }
.admin-sidebar h4 { color: var(--gold); padding: 0 28px; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 18px; }
.admin-main { padding: 36px; background: var(--paper-warm); }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 34px; }
.stat-card { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--teal-mid); border-radius: 8px; padding: 20px; transition: transform .15s, box-shadow .15s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.stat-card:nth-child(2) { border-left-color: var(--gold-dark); }
.stat-card:nth-child(3) { border-left-color: var(--clay); }
.stat-card:nth-child(4) { border-left-color: var(--teal-deep); }
.stat-card:nth-child(5) { border-left-color: #B8442C; }
.stat-card .num { font-family: var(--font-display); font-size: 2rem; color: var(--teal-deep); font-weight: 700; }
.stat-card .label { font-size: .85rem; color: var(--ink-soft); }

.table-responsive { overflow-x: auto; border-radius: 8px; }
.admin-table { width: 100%; min-width: 640px; border-collapse: collapse; background: var(--white); border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.admin-table th, .admin-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .9rem; }
.admin-table th { background: var(--paper-warm); color: var(--teal-deep); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table-actions { display: flex; gap: 8px; }

.admin-form-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 30px; max-width: 760px; }
.admin-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-form-row-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 18px; }
.admin-form-section-title { font-family: var(--font-display); color: var(--teal-deep); font-size: 1.1rem; margin: 28px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.admin-form-section-title:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.lang-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.lang-tab-btn { padding: 6px 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); font-size: .8rem; font-weight: 600; cursor: pointer; }
.lang-tab-btn.active { background: var(--teal-deep); color: var(--white); border-color: var(--teal-deep); }
.lang-tab-content { display: none; }
.lang-tab-content.active { display: block; }

.empty-state { text-align: center; padding: 70px 20px; color: var(--ink-soft); }
.empty-state .icon { font-size: 2.6rem; margin-bottom: 14px; }
.empty-state .btn { margin-top: 12px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 16px 0;
    gap: 14px;
  }
  .main-nav.open { display: flex; }
  .lang-switch { border-left: none; padding-left: 0; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { display: flex; overflow-x: auto; padding: 12px; }
  .admin-sidebar h4 { display: none; }
  .land-detail-hero { grid-template-columns: 1fr; }
  .admin-main { padding: 20px; }
}

@media (max-width: 640px) {
  .admin-form-row, .admin-form-row-4 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) and (min-width: 641px) {
  .admin-form-row-4 { grid-template-columns: 1fr 1fr; }
}
