/* =========================================================================
   LARES — Sistema visual
   Hoteles de lujo · Argentina
   Estética: minimalista editorial, cálida. Todo en sans.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600;700&family=Hanken+Grotesk:wght@300;400;500;600&display=swap');

:root {
  /* Neutrales cálidos */
  --cream:     #faf8f4;
  --cream-2:   #f3efe7;
  --paper:     #ffffff;
  --ink:       #19160f;
  --ink-soft:  #3c372e;
  --taupe:     #8a8378;
  --taupe-2:   #aaa194;
  --line:      #e8e2d6;
  --line-soft: #f0ebe1;
  --field:     #ffffff;
  /* Acento muy restringido — ladrillo porteño */
  --accent:    #8a4332;
  --gold:      #9a7b43;

  --shadow-sm: 0 1px 2px rgba(25,22,15,.05), 0 1px 3px rgba(25,22,15,.04);
  --shadow-md: 0 4px 14px rgba(25,22,15,.07), 0 2px 5px rgba(25,22,15,.05);
  --shadow-lg: 0 18px 48px rgba(25,22,15,.16), 0 6px 16px rgba(25,22,15,.08);

  --font-display: 'Schibsted Grotesk', system-ui, sans-serif;
  --font-text:    'Hanken Grotesk', system-ui, sans-serif;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;
}

/* ---- Base ---------------------------------------------------------------- */
.lares {
  font-family: var(--font-text);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  letter-spacing: 0;
}
.lares *, .lares *::before, .lares *::after { box-sizing: border-box; }
.lares img { display: block; max-width: 100%; }

/* ---- Tipografía ---------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.02;
  color: var(--ink);
}
.eyebrow {
  font-family: var(--font-text);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--taupe);
}
.h-sub { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
.muted { color: var(--taupe); }
.serifnum { font-family: var(--font-display); font-variant-numeric: tabular-nums; }

/* ---- Placeholder de imagen (elegante) ----------------------------------- */
.ph {
  position: relative;
  overflow: hidden;
  background-color: #ece6db;
  background-image:
    repeating-linear-gradient(135deg,
      rgba(25,22,15,0.022) 0 2px,
      rgba(25,22,15,0) 2px 11px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph::after {
  content: attr(data-label);
  font-family: 'Schibsted Grotesk', monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(25,22,15,0.34);
  padding: 5px 11px;
  border: 1px solid rgba(25,22,15,0.14);
  border-radius: var(--r-pill);
  background: rgba(250,248,244,0.5);
  backdrop-filter: blur(1px);
  white-space: nowrap;
  max-width: 80%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.ph.tint-2 { background-color: #e4ddd0; }
.ph.tint-3 { background-color: #dcd3c4; }
.ph.dark   { background-color: #2a2620; }
.ph.dark::after { color: rgba(250,248,244,.5); border-color: rgba(250,248,244,.18); background: rgba(25,22,15,.25); }

/* ---- Botones ------------------------------------------------------------- */
.btn {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: none;
  text-decoration: none;
  border-radius: var(--r-pill);
  padding: 13px 26px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: all .18s ease;
  white-space: nowrap;
}
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: #000; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-md); }
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ---- Link refinado ------------------------------------------------------- */
.link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  transition: opacity .15s;
}
.link:hover { opacity: .55; }

/* ---- Navbar -------------------------------------------------------------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 80px;
  gap: 24px;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-link {
  font-size: 14px; color: inherit; text-decoration: none;
  letter-spacing: .005em; transition: opacity .15s; opacity: .82;
}
.nav-link:hover { opacity: 1; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-acct {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 6px 7px 6px 16px; background: var(--paper);
  font-size: 13.5px; color: var(--ink); cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.nav-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; font-family: var(--font-display);
}
.nav.on-dark { color: var(--cream); }
.nav.on-dark .nav-acct { background: rgba(250,248,244,.12); border-color: rgba(250,248,244,.3); color: var(--cream); backdrop-filter: blur(6px); }
.nav.on-dark .nav-avatar { background: var(--cream); color: var(--ink); }

/* ---- Logo ---------------------------------------------------------------- */
.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 23px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: inherit;
}
.logo .dot { color: var(--accent); }
.logo-wide { letter-spacing: 0.34em; font-weight: 500; font-size: 19px; text-transform: uppercase; }

/* ---- Search bar (pill, estilo Airbnb editorial) ------------------------- */
.searchbar {
  display: flex;
  align-items: stretch;
  background: var(--paper);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(25,22,15,.05);
}
.search-field {
  display: flex; flex-direction: column; gap: 3px;
  padding: 15px 26px; justify-content: center;
  cursor: pointer; position: relative; min-width: 0;
  transition: background .15s; border-radius: var(--r-pill);
}
.search-field:hover { background: var(--cream); }
.search-field + .search-field::before {
  content: ''; position: absolute; left: 0; top: 16px; bottom: 16px;
  width: 1px; background: var(--line);
}
.search-field:hover + .search-field::before,
.search-field:hover::before { opacity: 0; }
.search-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink);
}
.search-value { font-size: 14.5px; color: var(--taupe); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-value.filled { color: var(--ink); }
.search-go {
  margin: 7px; border: none; background: var(--ink); color: var(--cream);
  border-radius: var(--r-pill); padding: 0 24px; display: flex; align-items: center;
  gap: 9px; cursor: pointer; font-family: var(--font-text); font-weight: 500;
  font-size: 14px; transition: background .15s;
}
.search-go:hover { background: var(--accent); }

/* ---- Cards de hotel ------------------------------------------------------ */
.hcard { cursor: pointer; }
.hcard-media {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  aspect-ratio: 4 / 3.4; box-shadow: var(--shadow-sm);
}
.hcard-fav {
  position: absolute; top: 12px; right: 12px; width: 33px; height: 33px;
  border-radius: 50%; background: rgba(255,255,255,.92); backdrop-filter: blur(4px);
  border: none; padding: 0; margin: 0; font: inherit; -webkit-appearance: none; appearance: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--ink); transition: transform .15s, background .15s;
  box-shadow: 0 2px 6px rgba(25,22,15,.14);
}
.hcard-fav:hover { transform: scale(1.09); background: #fff; }
.hcard-fav:active { transform: scale(.96); }
.hcard-tag {
  position: absolute; top: 12px; left: 12px;
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 600; color: var(--ink); background: rgba(255,255,255,.9);
  padding: 5px 11px; border-radius: var(--r-pill); backdrop-filter: blur(4px);
}
.hcard-body { padding: 14px 2px 0; }
.hcard-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hcard-name { font-family: var(--font-display); font-weight: 500; font-size: 16.5px; letter-spacing: -.01em; color: var(--ink); }
.hcard-loc { font-size: 13.5px; color: var(--taupe); margin-top: 2px; }
.hcard-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--ink); white-space: nowrap; }
.hcard-price { margin-top: 9px; font-size: 14px; color: var(--ink); }
.hcard-price b { font-family: var(--font-display); font-weight: 600; }

/* ---- Star ---------------------------------------------------------------- */
.star { width: 13px; height: 13px; fill: var(--ink); flex: none; }

/* ---- Chips / filtros ----------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 9px 16px; font-size: 13.5px; color: var(--ink);
  background: var(--paper); cursor: pointer; white-space: nowrap;
  transition: border-color .15s, background .15s;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chip svg { width: 15px; height: 15px; }

/* ---- Divisores / secciones ---------------------------------------------- */
.rule { height: 1px; background: var(--line); border: none; margin: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }

/* ---- Pieza editorial reutilizable --------------------------------------- */
.kicker-line { display: inline-flex; align-items: center; gap: 12px; }
.kicker-line::before { content:''; width: 28px; height: 1px; background: var(--taupe); }

/* ---- Footer -------------------------------------------------------------- */
.foot { background: var(--ink); color: var(--cream); }
.foot a { color: rgba(250,248,244,.7); text-decoration: none; font-size: 14px; transition: color .15s; }
.foot a:hover { color: var(--cream); }
.foot-col-title { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(250,248,244,.45); margin-bottom: 18px; }

/* ---- Interacciones: menús, popovers, checks ----------------------------- */
.menu-row {
  display: block; padding: 9px 12px; border-radius: 9px; font-size: 14.5px;
  color: var(--ink); text-decoration: none; background: none; border: none;
  width: 100%; text-align: left; cursor: pointer; font-family: var(--font-text);
}
.menu-row:hover { background: var(--cream-2); }
.pop-title { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe); margin-bottom: 12px; }
.check-row {
  display: flex; align-items: center; gap: 12px; padding: 9px 4px; cursor: pointer;
  font-size: 14.5px; color: var(--ink); user-select: none;
}
.check-box {
  width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--taupe);
  display: flex; align-items: center; justify-content: center; color: transparent; flex: none;
  transition: all .12s;
}
.check-row:hover .check-box { border-color: var(--ink); }
.check-row.on .check-box { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.check-row.radio .check-box { border-radius: 50%; }

/* Range slider */
input[type=range].lares-range { -webkit-appearance: none; appearance: none; width: 100%; height: 3px; background: var(--line); border-radius: 999px; outline: none; }
input[type=range].lares-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); cursor: pointer; border: 3px solid var(--paper); box-shadow: var(--shadow-sm); }
input[type=range].lares-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); cursor: pointer; border: 3px solid var(--paper); }

/* Animación de aparición de popovers */
.lares-pop { animation: pop-in .14s ease; transform-origin: top center; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Formularios (checkout) --------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select {
  font-family: var(--font-text); font-size: 15px; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink);
  outline: none; transition: border-color .15s, box-shadow .15s; width: 100%;
}
.field input:focus, .field select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(25,22,15,.06); }
.field input::placeholder { color: var(--taupe); }
.field.err input { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(138,67,50,.08); }
.field .err-msg { font-size: 12px; color: var(--accent); }
.co-step-num {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
  font-size: 14px; font-weight: 600; color: var(--ink); flex: none;
}

/* ---- Mapa Leaflet ------------------------------------------------------- */
.leaflet-container { background: #eae4d8; font-family: var(--font-text); }
/* Velo cálido muy leve, conservando agua celeste y parques verdes */
.leaflet-tile-pane { filter: saturate(0.94) brightness(1.01); }

/* ---- Búsqueda: lista con scroll propio (desktop) ------------------------ */
/* La página no scrollea; la lista scrollea dentro de su columna y el mapa
   queda fijo. Así la rueda sobre el mapa hace zoom sin trabar la página. */
@media (min-width: 721px) {
  .s-body { height: calc(100vh - var(--s-head-h, 136px)); overflow: hidden; }
  .s-list { overflow-y: auto; }
  .s-map { height: 100%; }
}
.leaflet-div-icon { background: transparent; border: none; }
.pin-wrap { background: transparent !important; border: none !important; }
.price-pin {
  position: absolute; transform: translate(-50%, -50%); white-space: nowrap; cursor: pointer;
  background: var(--paper); color: var(--ink); font-family: var(--font-display); font-weight: 600;
  font-size: 13px; padding: 5px 11px; border-radius: 999px; box-shadow: var(--shadow-md);
  border: 1px solid rgba(25,22,15,.08); transition: background .12s, color .12s, transform .12s;
}
.price-pin:hover { transform: translate(-50%, -50%) scale(1.06); z-index: 600; }
.price-pin.active { background: var(--ink); color: var(--cream); transform: translate(-50%, -50%) scale(1.08); z-index: 700; }
.leaflet-bar a { color: var(--ink); }
