/* Destinos Argentinos - tema claro, editorial. Sin modo oscuro. */
:root {
  --bg: #ffffff;
  --bg-warm: #f7f4ef;
  --bg-warm-2: #efe9e0;
  --ink: #221f1d;
  --ink-soft: #6c655e;
  --line: #e8e2d8;
  --accent: #1f6b5c;
  --accent-dark: #164b40;
  --accent-wash: #e9f1ee;
  --star: #d99a2b;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(30, 25, 20, .05), 0 4px 14px rgba(30, 25, 20, .06);
  --shadow-lg: 0 10px 40px rgba(30, 25, 20, .16);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
a { color: var(--accent-dark); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 600;
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 1.4rem;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.wordmark { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.15rem; }
.wordmark .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--star), #b9781a);
  box-shadow: 0 0 0 4px var(--accent-wash);
}
.site-header .header-meta { font-size: .82rem; color: var(--ink-soft); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 460px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 3rem 1.4rem 2.4rem;
  color: #fff;
  background: #2b2b2b;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.03);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(18,14,10,.18) 0%, rgba(18,14,10,.42) 52%, rgba(18,14,10,.78) 100%);
}
.hero-bg { z-index: 0; }
.hero-inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; width: 100%; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero p { margin: .7rem 0 1.4rem; font-size: 1.05rem; color: #fff; max-width: 44ch; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.hero-search {
  display: flex; background: #fff; border-radius: 999px; padding: .35rem .35rem .35rem 1.1rem;
  box-shadow: var(--shadow-lg); max-width: 520px;
}
.hero-search input {
  flex: 1; border: 0; outline: none; background: transparent; color: var(--ink);
  font-size: 1rem; padding: .6rem 0;
}
.hero-search button {
  border: 0; border-radius: 999px; background: var(--accent); color: #fff;
  padding: .6rem 1.3rem; font-weight: 600; cursor: pointer;
}
.hero-search button:hover { background: var(--accent-dark); }

/* ---------- boton Wondar (diseño unico, reusable) ---------- */
.wondar-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  width: max-content;
  padding: .34rem .95rem .34rem .38rem;
  border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  font-size: .8rem; font-weight: 600; text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color .12s ease, transform .12s ease;
}
.wondar-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.wondar-btn img { width: 22px; height: 22px; border-radius: 7px; display: block; flex: none; }
.wondar-btn--hero { margin: .2rem 0 1.3rem; font-size: .84rem; padding: .42rem 1.1rem .42rem .42rem; }
.wondar-btn--hero img { width: 26px; height: 26px; border-radius: 8px; }
.wondar-btn--sm { font-size: .72rem; padding: .26rem .7rem .26rem .3rem; }
.wondar-btn--sm img { width: 17px; height: 17px; border-radius: 5px; }
.card .wondar-btn { margin-top: .15rem; }
.d-body > .wondar-btn { margin: 0 0 1.3rem; }
.d-atr .wondar-btn { margin-top: .4rem; }

/* ---------- filtros ---------- */
.filters {
  position: sticky; top: 57px; z-index: 500;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line);
  padding: .85rem 1.4rem;
}
.filters-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; max-width: 1180px; margin: 0 auto; }
.filters-row + .filters-row { margin-top: .6rem; }

.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: .42rem .9rem; font-size: .86rem; cursor: pointer;
  white-space: nowrap; transition: all .12s ease;
}
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.filters select {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: .42rem 2rem .42rem .9rem; font-size: .86rem; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%236c655e' stroke-width='1.6'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
}
.filters .sep { flex: 1; }
.btn-more {
  border: 1px solid var(--accent); background: #fff; color: var(--accent-dark);
  border-radius: 999px; padding: .42rem 1rem; font-size: .86rem; cursor: pointer; font-weight: 600;
}
.btn-more[aria-expanded="true"] { background: var(--accent-wash); }

.tag-panel { max-width: 1180px; margin: .7rem auto 0; gap: .9rem; }
.tag-panel:not([hidden]) { display: grid; }
.tag-group { display: flex; flex-wrap: wrap; gap: .4rem; align-items: baseline; }
.tag-group > span.label {
  font-family: var(--serif); font-size: .9rem; color: var(--ink-soft);
  width: 96px; flex: none;
}
.tag-group .chip { padding: .32rem .75rem; font-size: .8rem; }

/* ---------- resultados ---------- */
.results { max-width: 1180px; margin: 0 auto; padding: 1.4rem; display: grid; grid-template-columns: 1fr 380px; gap: 1.6rem; align-items: start; }
.results-main { min-width: 0; }
.results-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.results-head h2 { font-size: 1.2rem; }
.results-head .muted { color: var(--ink-soft); font-size: .85rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.3rem 1.1rem; }
.card { text-align: left; background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; gap: .55rem; }
.card-media {
  position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-warm-2); box-shadow: var(--shadow-sm);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #b9ad9c; }
.card-media .rating {
  position: absolute; left: 10px; top: 10px;
  background: rgba(255,255,255,.96); border-radius: 999px; padding: .16rem .5rem;
  font-size: .78rem; font-weight: 600; display: flex; align-items: center; gap: .2rem;
  box-shadow: 0 1px 6px rgba(20,16,12,.28);
}
.card-media .rating svg { fill: var(--star); }
.card-media .badge {
  position: absolute; right: 10px; top: 10px;
  background: var(--accent); color: #fff; border-radius: 999px; padding: .16rem .55rem; font-size: .72rem; font-weight: 600;
}
.card h3 { font-size: 1.06rem; }
.card .loc { font-size: .82rem; color: var(--ink-soft); }
.card .tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.card .tags span {
  font-size: .72rem; color: var(--accent-dark); background: var(--accent-wash);
  border-radius: 999px; padding: .1rem .5rem;
}
.card .blurb { font-size: .84rem; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.map-col { position: sticky; top: 130px; height: calc(100dvh - 160px); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
#map { width: 100%; height: 100%; background: var(--bg-warm); }

.empty { padding: 3rem 1rem; text-align: center; color: var(--ink-soft); }

/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 900; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(20,16,12,.4); }
.drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(560px, 100%);
  background: #fff; overflow-y: auto; box-shadow: var(--shadow-lg);
  animation: slide .18s ease;
}
@keyframes slide { from { transform: translateX(28px); opacity: .5; } to { transform: none; opacity: 1; } }
.d-hero { position: relative; height: 260px; background: var(--bg-warm-2); }
.d-hero-img { width: 100%; height: 100%; object-fit: cover; }
.d-hero .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #b9ad9c; }
.d-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); cursor: pointer; font-size: 1.2rem; box-shadow: var(--shadow-sm); }
.d-body { padding: 1.4rem 1.5rem 3rem; }
.d-body h1 { font-size: 1.7rem; }
.d-loc { color: var(--ink-soft); margin: .3rem 0 1rem; }
.d-metrics { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.1rem; }
.d-metrics span { font-size: .78rem; border: 1px solid var(--line); border-radius: 999px; padding: .18rem .6rem; color: var(--ink-soft); }
.d-metrics span.rating { color: var(--accent-dark); border-color: var(--accent); background: var(--accent-wash); }
.d-tags { display: grid; gap: .5rem; margin-bottom: 1.2rem; }
.d-tags .row { display: flex; flex-wrap: wrap; gap: .35rem; align-items: baseline; }
.d-tags .row b { font-family: var(--serif); font-weight: 500; font-size: .84rem; color: var(--ink-soft); width: 92px; flex: none; }
.d-tags .row span { font-size: .76rem; background: var(--accent-wash); color: var(--accent-dark); border-radius: 999px; padding: .1rem .55rem; }
.d-desc { line-height: 1.7; white-space: pre-wrap; }
.d-sec-title { margin: 1.8rem 0 .8rem; font-size: 1.1rem; }
.d-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-top: .9rem; }
.d-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.d-atr { display: grid; grid-template-columns: 68px 1fr; gap: .8rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.d-atr-img { width: 68px; height: 68px; border-radius: 10px; object-fit: cover; background: var(--bg-warm-2); flex: none; }
.d-atr .ph { width: 68px; height: 68px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #b9ad9c; background: var(--bg-warm-2); }
.d-atr h4 { margin: 0 0 .2rem; font-family: var(--sans); font-size: .92rem; font-weight: 650; }
.d-atr p { margin: 0; font-size: .8rem; color: var(--ink-soft); line-height: 1.45; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-warm); padding: 2rem 1.4rem; text-align: center; color: var(--ink-soft); font-size: .84rem; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .results { grid-template-columns: 1fr; }
  .map-col { position: relative; top: 0; height: 320px; order: -1; }
  .filters { top: 55px; }
}
@media (max-width: 560px) {
  .hero { min-height: 420px; }
  .tag-group > span.label { width: 100%; }
}
