/* ===== Casa Mirador - estilos (paleta y tipografía de marca Llave) ===== */

:root {
  --pine: #1f3a2e;
  --sand: #efe6d8;
  --card: #faf7f1;
  --brass: #b98a3d;
  --clay: #a85c42;
  --ink: #2b2620;

  --font-display: "Fraunces", serif;
  --font-body: "Work Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(31, 58, 46, 0.12);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: var(--pine); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--pine);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-block;
  margin-bottom: 0.5em;
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--pine);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--pine), #16281f);
}

.hero-placeholder svg { width: 92px; height: 92px; opacity: 0.85; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 35, 27, 0.85) 10%, rgba(20, 35, 27, 0.15) 60%, rgba(20, 35, 27, 0.35));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 20px 40px;
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
}

.hero-content .eyebrow { color: var(--brass); }

.hero-content h1 {
  color: #fff;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  margin-bottom: 0.25em;
}

.hero-content p {
  font-size: 1.05rem;
  max-width: 56ch;
  color: var(--sand);
}

/* ===== Tabs nav ===== */
.tabs-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--pine);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.tabs-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0 12px;
  overflow-x: auto;
  max-width: 1080px;
  margin: 0 auto;
}

.tabs-nav a {
  display: block;
  padding: 16px 16px;
  color: var(--sand);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.tabs-nav a:hover,
.tabs-nav a:focus-visible {
  color: #fff;
  border-bottom-color: var(--brass);
}

/* ===== Sections ===== */
.section {
  padding: 64px 0;
  scroll-margin-top: 70px;
}

.section-intro {
  max-width: 60ch;
  margin-bottom: 2.5rem;
}

.section:nth-of-type(even) { background: var(--card); }

/* ===== Cards / grid ===== */
.card {
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

/* ===== WiFi key-fob card ===== */
.keyfob {
  position: relative;
  background: var(--pine);
  color: var(--sand);
  border-radius: var(--radius-md);
  padding: 28px 28px 28px 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.keyfob::before {
  /* perforated edge, keyring-tag style */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 18px;
  background-image: radial-gradient(circle, var(--sand) 3px, transparent 3.5px);
  background-size: 18px 18px;
  background-position: center;
  background-repeat: repeat-y;
  border-right: 2px dashed rgba(239, 230, 216, 0.35);
}

.keyfob-hole {
  position: absolute;
  left: 9px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sand);
  box-shadow: inset 0 0 0 2px var(--pine);
}

.keyfob-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  color: var(--brass);
}

.keyfob-body .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass);
  display: block;
  margin-top: 10px;
}

.keyfob-body .label:first-child { margin-top: 0; }

.keyfob-body .value {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: #fff;
  word-break: break-all;
}

/* ===== Accordions ===== */
details.accordion {
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}

details.accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--pine);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

details.accordion summary::-webkit-details-marker { display: none; }

details.accordion summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--brass);
  transition: transform 0.2s;
}

details.accordion[open] summary::after { transform: rotate(45deg); }

details.accordion .accordion-body {
  padding: 0 22px 22px;
  color: var(--ink);
}

details.accordion .accordion-body ul { padding-left: 1.2em; }
details.accordion .accordion-body li { margin-bottom: 0.4em; }

.placeholder-tag {
  font-family: var(--font-mono);
  background: rgba(184, 138, 61, 0.15);
  color: var(--clay);
  border: 1px dashed var(--brass);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--pine);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--pine), #16281f);
}

.gallery-placeholder svg { width: 40px; height: 40px; opacity: 0.85; color: var(--sand); }

/* ===== Recommendation cards ===== */
.rec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .rec-grid { grid-template-columns: 1fr 1fr; }
}

.rec-card {
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 20px;
}

.rec-card .cat {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass);
}

.rec-card h3 { margin: 0.3em 0; font-size: 1.15rem; }

.rec-card p { margin: 0 0 0.8em; }

.rec-card .map-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--clay);
}

.rec-card .map-link:hover { text-decoration: underline; }

/* ===== Map ===== */
#map {
  height: 380px;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
}

.leaflet-popup-content-wrapper {
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
}

.popup-cat {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--brass);
  display: block;
}

.popup-title { font-family: var(--font-display); font-weight: 600; margin: 2px 0 4px; }

.popup-link {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--clay);
}

/* ===== Getting here ===== */
.transport-list {
  display: grid;
  gap: 16px;
}

.transport-item {
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 18px 22px;
}

.transport-item h4 {
  font-size: 1rem;
  margin-bottom: 0.3em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.transport-note {
  font-size: 0.85rem;
  color: #6b6255;
  margin-top: 1rem;
}

/* ===== Emergencies ===== */
.emergency-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .emergency-grid { grid-template-columns: repeat(3, 1fr); }
}

.emergency-card {
  background: var(--pine);
  color: var(--sand);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
}

.emergency-card .num {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  color: var(--brass);
  display: block;
  margin: 6px 0;
}

/* ===== CTA ===== */
.cta-strip {
  background: var(--pine);
  color: var(--sand);
  text-align: center;
  padding: 44px 20px;
}

.cta-strip a {
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--brass);
  padding-bottom: 2px;
}

.cta-strip a:hover { color: var(--brass); }

/* ===== Footer ===== */
footer {
  background: #16281f;
  color: var(--sand);
  padding: 32px 20px;
  text-align: center;
}

footer img { height: 28px; margin: 0 auto 10px; }

footer p { font-size: 0.85rem; opacity: 0.75; margin: 0; }
