/* Todo en Gracia — Guest Guide
   Matches todoengracia.com palette: teal-blue accent on warm neutrals. */

:root {
  --teal: #3f88a5;
  --teal-dark: #2f6b84;
  --sand: #c9a875;
  --ink: #2b2b2b;
  --ink-soft: #55534f;
  --paper: #faf7f2;
  --card: #ffffff;
  --line: #e6e0d6;
  --radius: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--teal-dark); }

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 18px 48px;
}

/* Header */
header.site {
  background: var(--teal);
  color: #fff;
  padding: 20px 18px 18px;
  text-align: center;
}

header.site .logo {
  width: 72px;
  height: 72px;
  display: block;
  margin: 0 auto 8px;
}

header.site .brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
}

header.site .tagline {
  margin: 4px 0 0;
  font-size: 0.95rem;
  opacity: 0.92;
}

header.site .address {
  margin: 10px 0 0;
  font-size: 0.85rem;
  opacity: 0.85;
}

nav.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 18px 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--teal-dark);
}

/* Home grid of section tiles */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-decoration: none;
  color: var(--ink);
  min-height: 96px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.tile .icon { font-size: 1.6rem; line-height: 1; }
.tile .label { font-weight: 700; font-size: 1.02rem; }

.tile.ready:active { background: #f3f0ea; }

.tile.soon {
  opacity: 0.55;
  pointer-events: none;
}

.tile.soon .badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: var(--line);
  padding: 2px 8px;
  border-radius: 999px;
}

/* Content sections (dining page etc.) */
h1.page-title {
  font-size: 1.4rem;
  margin: 18px 0 4px;
  color: var(--teal-dark);
}

p.lede {
  color: var(--ink-soft);
  margin: 0 0 20px;
  line-height: 1.5;
}

h2.section {
  font-size: 1.05rem;
  color: var(--teal-dark);
  border-bottom: 2px solid var(--sand);
  padding-bottom: 6px;
  margin: 30px 0 14px;
}

.note {
  background: #fbf3e3;
  border: 1px solid #ecd9ad;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: #6b5a2c;
  margin: 0 0 18px;
}

.note.draft {
  background: #fdeeee;
  border-color: #f0c6c6;
  color: #7a3131;
}

.note.draft strong { color: #7a3131; }

.place {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.place .photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 0 10px;
  display: block;
  background: var(--line);
}

.place .name {
  font-weight: 700;
  font-size: 1.02rem;
  margin: 0 0 2px;
}

.place .cuisine {
  color: var(--teal-dark);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.place .desc {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.place .meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.place .meta a { font-weight: 600; }

.place .rating {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 6px;
}
.place .rating .stars { color: #c9862b; font-weight: 700; }
.place .fav {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #fff;
  background: var(--teal);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}

.host-note {
  background: #eef4f2;
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.5;
}
.host-note .tag {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 3px;
}

/* Content cards (instructions pages) */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px 16px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.card p { margin: 0 0 8px; line-height: 1.5; color: var(--ink); }
.card p:last-child { margin-bottom: 0; }
.card ul, .card ol { margin: 6px 0 0; padding-left: 22px; }
.card li { margin: 7px 0; line-height: 1.5; color: var(--ink); }
.card .lead { font-weight: 700; color: var(--teal-dark); margin-bottom: 6px; }

/* WiFi card */
.wifi-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 18px 20px;
  margin: 0 0 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.wifi-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.wifi-k {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--ink-soft);
}
.wifi-v {
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  word-break: break-all;
  text-align: right;
}
.wifi-qr {
  text-align: center;
  padding-top: 20px;
}
.wifi-qr img {
  width: 220px;
  max-width: 70%;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}
.wifi-scan {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--teal-dark);
}
.wifi-help {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 6px 0 0;
}

/* Footer */
footer.site {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.6;
}

footer.site a { color: var(--teal-dark); font-weight: 600; }

/* Print (guest book) */
@media print {
  html, body { background: #fff; color: #000; }
  header.site { background: #fff !important; color: #000 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  nav.back { display: none; }
  .tile.soon { display: none; }
  .wifi-card, .place, .note, .grid, .wifi-qr, footer.site { break-inside: avoid; page-break-inside: avoid; }
  .wifi-qr img { width: 240px; }
  a { color: #000; text-decoration: none; }
  .wrap { max-width: 100%; }
}
