/* ============================================================
   Aqarna — Styles
   Mobile-first, desktop overrides via media queries
   ============================================================ */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-primary:      #0f172a;
  --color-accent:       #0ea5e9;
  --color-accent-hover: #0284c7;
  --color-bg:           #f5f4f0;
  --color-surface:      #ffffff;
  --color-text:         #0f172a;
  --color-muted:        #64748b;
  --color-border:       #e8e5df;
  --radius:             10px;
  --radius-lg:          14px;
  --shadow-sm:          0 1px 3px rgba(0,0,0,.07), 0 2px 8px rgba(0,0,0,.05);
  --shadow-card:        0 2px 8px rgba(0,0,0,.07), 0 8px 24px rgba(0,0,0,.06);
  --shadow-hover:       0 6px 18px rgba(0,0,0,.11), 0 16px 40px rgba(0,0,0,.09);
  --shadow-modal:       0 24px 80px rgba(0,0,0,.28);
  --nav-height:         60px;
  --sidebar-width:      356px;
  --font-main:          'Space Grotesk', sans-serif;
  --transition-fast:    .15s ease;
  --transition-med:     .25s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
  height: 100%;
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }

/* ---------- Navigation ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 16px;
  animation: navDrop .38s cubic-bezier(0.4,0,0.2,1) both;
  border-bottom: 2px solid #0ea5e9;
}

.navbar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.navbar-brand:hover { text-decoration: none; opacity: .9; }

.navbar-links {
  display: flex;
  gap: 2px;
  list-style: none;
}

.navbar-links a {
  color: rgba(255,255,255,.65);
  font-size: .875rem;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 6px;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.navbar-links a:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.navbar-links a.active { color: #fff; font-weight: 600; }

.btn-nav-cta {
  flex-shrink: 0;
  padding: 8px 18px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 99px;
  font-size: .875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-nav-cta:hover { background: var(--color-accent-hover); text-decoration: none; color: #fff; transform: translateY(-1px); }

/* ── Navbar actions (right side) ────────────────────────── */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.navbar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
  transition: background .15s;
}
.navbar-toggle:hover { background: rgba(255,255,255,.18); }

/* ── Estimation modal form ──────────────────────────────── */
.est-modal-container { max-width: 480px; }

.est-form { display: flex; flex-direction: column; gap: 14px; }

.est-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.est-group { display: flex; flex-direction: column; gap: 6px; }

.est-group label {
  font-size: .875rem;
  font-weight: 600;
  color: #111;
}

.est-field {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: .9rem;
  color: #111;
  background: #fff;
  appearance: none;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.est-field:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14,165,233,.15);
}
.est-field.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}
.est-select {
  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='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.btn-est-submit {
  width: 100%;
  padding: 13px;
  background: #0ea5e9;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.btn-est-submit:hover:not(:disabled) { background: #0284c7; }
.btn-est-submit:disabled { opacity: .6; cursor: not-allowed; }

.est-success {
  display: none;
  text-align: center;
  padding: 20px 0 12px;
}
.est-success.visible { display: block; }
.est-success-icon { font-size: 2rem; margin-bottom: 12px; }
.est-success h3 { font-size: 1rem; font-weight: 700; color: #0369a1; margin-bottom: 6px; }
.est-success p { font-size: .85rem; color: #6b7280; }

/* ---------- Map page layout ---------- */
.map-layout {
  display: flex;
  height: calc(100vh - var(--nav-height));
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
  transform: translateX(-100%);
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 200;
  transition: transform .32s cubic-bezier(0.4,0,0.2,1), box-shadow .32s cubic-bezier(0.4,0,0.2,1);
}
.sidebar.open {
  transform: translateX(0);
  box-shadow: 4px 0 32px rgba(0,0,0,.14);
}

.sidebar-header {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: #fafaf8;
}

.sidebar-header h2 {
  font-size: .82rem;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0;
  text-transform: none;
}

.btn-close-sidebar {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--color-muted);
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background var(--transition-fast);
}
.btn-close-sidebar:hover { background: #f1f5f9; color: var(--color-text); }

/* Filtres */
.filters {
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
  background: #fafaf8;
}

.filter-row { display: flex; gap: 8px; }

.filter-row select,
.filter-row input {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font-size: .84rem;
  font-family: inherit;
  background: #fff;
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
}
.filter-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%2364748b' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.filter-row select:focus,
.filter-row input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}

.btn-search {
  width: 100%;
  padding: 11px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 700;
  font-family: inherit;
  transition: background var(--transition-fast), transform var(--transition-fast);
  letter-spacing: .01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
}
.btn-search:hover { background: var(--color-accent-hover); transform: translateY(-1px); }
.btn-search:active { transform: translateY(0); }

/* Listing toolbar — count + sort */
.listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 6px;
  flex-shrink: 0;
  gap: 8px;
}

.listing-count {
  font-size: .76rem;
  color: var(--color-muted);
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}

.sort-select {
  padding: 5px 26px 5px 10px;
  border: 1.5px solid var(--color-border);
  border-radius: 6px;
  font-size: .76rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--color-text);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%2364748b' d='M5 7L1 3h8z'/%3E%3C/svg%3E") no-repeat right 8px center;
  appearance: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}
.sort-select:focus { outline: none; border-color: var(--color-accent); }

/* Liste */
.listing-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 10px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

/* ---- Listing card ---- */
.listing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow .22s ease, transform .22s ease, border-color .15s ease;
  will-change: transform;
  box-shadow: var(--shadow-card);
}
.listing-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: #d4d0ca;
}
.listing-card.active {
  border-left: 3px solid #0ea5e9;
  box-shadow: 0 4px 20px rgba(14,165,233,.18), var(--shadow-hover);
  transform: translateY(-2px);
}

/* Photo zone */
.card-photo {
  position: relative;
  height: 190px;
  background: #e8e4dc;
  overflow: hidden;
  flex-shrink: 0;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.listing-card:hover .card-photo img { transform: scale(1.05); }

.card-photo-placeholder {
  width: 100%;
  height: 100%;
  background: #f0ede8;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Badge on photo */
.card-photo .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}

/* Card content */
.card-body { padding: 13px 14px 16px; }

.card-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.card-specs {
  font-size: .8rem;
  color: var(--color-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.card-specs .sep { margin: 0 5px; color: var(--color-border); }

.card-location {
  font-size: .78rem;
  color: var(--color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-vente    { background: rgba(15,23,42,.78); color: #fff; }
.badge-location { background: rgba(217,119,6,.85); color: #fff; }

/* Info-window */
.iw-body {
  min-width: 210px;
  max-width: 268px;
  font-family: var(--font-main);
  animation: iwPop .22s cubic-bezier(0.34,1.56,0.64,1);
  padding: 2px;
}
@keyframes iwPop {
  from { opacity:0; transform: scale(.9) translateY(6px); }
  to   { opacity:1; transform: scale(1)  translateY(0); }
}
.iw-badges { display: flex; gap: 5px; margin-bottom: 6px; }
.iw-body h3 { font-size: .92rem; font-weight: 700; line-height: 1.3; margin-bottom: 4px; color: var(--color-primary); }
.iw-body .iw-price { font-weight: 700; color: var(--color-accent); font-size: 1.05rem; margin-bottom: 5px; }
.iw-body .iw-meta { font-size: .78rem; color: var(--color-muted); margin-bottom: 10px; }
.iw-body .btn-iw {
  display: block;
  width: 100%;
  padding: 9px 12px;
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.iw-body .btn-iw:hover { background: #1e293b; }

/* Carte */
#map { flex: 1; height: 100%; min-height: 300px; }

/* Bouton flottant sidebar mobile */
.btn-toggle-sidebar {
  display: flex;
  position: fixed;
  bottom: 22px;
  left: 16px;
  z-index: 300;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-size: .88rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  gap: 7px;
  align-items: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn-toggle-sidebar:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.35); }

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  background: rgba(245,244,240,.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
#loader.hidden { display: none; }

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin .65s linear infinite;
}
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes navDrop { from { transform: translateY(-100%); opacity:0; } to { transform: translateY(0); opacity:1; } }

/* Aucun résultat */
.empty-state {
  text-align: center;
  padding: 40px 16px;
  color: var(--color-muted);
  font-size: .9rem;
}
.empty-state .icon { font-size: 2.8rem; margin-bottom: 10px; }

/* Sidebar footer */
.sidebar-footer {
  flex-shrink: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #fafaf8;
  font-size: .72rem;
  color: var(--color-muted);
  font-weight: 500;
}
.sidebar-footer-links {
  display: flex;
  align-items: center;
  gap: 5px;
}
.sidebar-footer a { color: var(--color-muted); transition: color var(--transition-fast); }
.sidebar-footer a:hover { color: var(--color-accent); text-decoration: none; }
.sidebar-footer span { color: var(--color-border); }

/* ========== Listing Modal ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.6);
  z-index: 3000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-container {
  background: #fff;
  border-radius: 22px 22px 0 0;
  width: 100%;
  max-width: 740px;
  max-height: 94vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 -8px 48px rgba(0,0,0,.2);
  transform: translateY(48px);
  transition: transform .32s cubic-bezier(0.34,1.56,0.64,1);
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}
.modal-overlay.open .modal-container { transform: translateY(0); }

/* Close button */
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  font-size: .95rem;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.modal-close:hover { background: #fff; transform: scale(1.08); }

/* Gallery */
.modal-gallery {
  position: relative;
  height: 250px;
  background: #e8e4dc;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  flex-shrink: 0;
}

#modal-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .2s;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f172a 0%, #164e63 55%, #0ea5e9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Photo counter badge */
.gallery-counter {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,.52);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  letter-spacing: .02em;
  display: none;
}

.gallery-nav {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.gallery-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(6px);
  font-size: 1.3rem;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.gallery-btn:hover { background: #fff; transform: scale(1.08); }

.gallery-dots { display: flex; gap: 6px; align-items: center; }
.gallery-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: background .15s, transform .15s;
}
.gallery-dot.active { background: #fff; transform: scale(1.5); }

/* Modal body */
.modal-body { padding: 22px 22px 36px; }

.modal-badges { display: flex; gap: 6px; margin-bottom: 10px; }

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: 6px;
}

.modal-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 16px;
  letter-spacing: -.02em;
}

.modal-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

.spec-chip {
  padding: 5px 13px;
  background: #f1f5f9;
  border-radius: 99px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--color-primary);
  border: 1px solid #e2e8f0;
}

.modal-location {
  font-size: .875rem;
  color: var(--color-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-voir-carte {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1.5px solid #0f172a;
  border-radius: 99px;
  background: #fff;
  color: #0f172a;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  margin-bottom: 18px;
}
.btn-voir-carte:hover {
  background: #0f172a;
  color: #fff;
}

.modal-description {
  font-size: .9rem;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 24px;
  white-space: pre-line;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

/* Agent card */
.modal-agent {
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 18px;
}
.agent-agency {
  font-size: .95rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 3px;
}
.agent-person {
  font-size: .85rem;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.agent-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.btn-cta {
  padding: 12px 10px;
  border-radius: 10px;
  font-size: .875rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  border: none;
  cursor: pointer;
}
.btn-cta:hover { opacity: .9; transform: translateY(-1px); text-decoration: none; }

.btn-cta-whatsapp { background: #25D366; color: #fff; }
.btn-cta-phone    { background: var(--color-primary); color: #fff; }

.agent-email {
  display: block;
  font-size: .8rem;
  color: var(--color-muted);
  text-align: center;
  margin-top: 6px;
  text-decoration: none;
}
.agent-email:hover { color: var(--color-accent); text-decoration: underline; }

/* ---------- Submit page ---------- */
.page-container { max-width: 680px; margin: 32px auto; padding: 0 16px 40px; }
.page-container h1 { font-size: 1.5rem; margin-bottom: 4px; }
.page-container .subtitle { color: var(--color-muted); margin-bottom: 28px; font-size: .9rem; }

.form-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.form-section legend,
.form-section h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
  width: 100%;
}
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 5px; color: var(--color-text); }
.form-group label .required { color: #dc2626; margin-left: 2px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .9rem;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(14,165,233,.15);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { font-size: .78rem; color: var(--color-muted); margin-top: 4px; }

.btn-submit {
  width: 100%;
  padding: 13px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .3px;
  transition: background var(--transition-fast);
}
.btn-submit:hover { background: var(--color-accent-hover); }

.form-notice { font-size: .8rem; color: var(--color-muted); text-align: center; margin-top: 10px; }

.alert { padding: 14px 16px; border-radius: var(--radius); font-size: .9rem; margin-bottom: 20px; display: none; }
.alert.visible { display: block; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
  .sidebar { position: static; transform: none; height: auto; }
  .btn-toggle-sidebar, .btn-close-sidebar { display: none; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .modal-overlay { align-items: center; padding: 24px; }
  .modal-container { border-radius: 20px; box-shadow: var(--shadow-modal); }
  .modal-gallery { height: 340px; border-radius: 20px 20px 0 0; }
  .modal-close { top: 14px; right: 14px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .navbar { padding: 0 14px; position: relative; }
  .navbar-toggle { display: flex; }
  .navbar-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #0f172a;
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 12px 32px rgba(0,0,0,.25);
    padding: 6px 0 14px;
    z-index: 999;
  }
  .navbar-links.mobile-open { display: flex; }
  .navbar-links li { width: 100%; }
  .navbar-links li a { border-radius: 0; padding: 13px 20px; display: block; }
  .est-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .page-container { margin-top: 16px; }
  .card-photo { height: 210px; }
}
