/* Wine en Route — visitor site. Mobile first. */
:root {
  --paper: #f7f1e8;
  --paper-2: #efe6d8;
  --card: #fffdf9;
  --ink: #2b2024;
  --muted: #7c6f73;
  --line: #e4d9cb;
  --wine: #7a1f3d;
  --wine-2: #5e1530;
  --gold: #b8892b;
  --leaf: #4f7a5b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(60, 30, 40, .06), 0 6px 20px rgba(60, 30, 40, .06);
  --serif: Fraunces, Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: var(--wine); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: 1.45rem; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }

/* ---------- top bar ---------- */
.sitebar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; max-width: 1080px; margin: 0 auto; }
.logo { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.mark { color: var(--wine); font-size: .9em; }
.navlink { font-size: .9rem; text-decoration: none; font-weight: 500; }
.farmpage .sitebar { position: absolute; left: 0; right: 0; z-index: 5; }
.farmpage .sitebar .logo, .farmpage .sitebar .navlink { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.farmpage .sitebar .mark { color: #fff; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 600 1rem var(--sans); padding: .75em 1.2em;
  border-radius: 999px; border: 1.5px solid var(--wine); background: transparent; color: var(--wine); text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--wine); color: #fff; }
.btn.primary:hover { background: var(--wine-2); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn.big { width: 100%; padding: .95em 1.2em; font-size: 1.05rem; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- home hero ---------- */
.hero { padding: 28px 0 34px; text-align: center; background:
  radial-gradient(ellipse at 50% -20%, rgba(122,31,61,.10), transparent 60%),
  var(--paper); }
.eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold); font-weight: 600; margin: 8px 0 14px; }
.hero h1 { font-size: clamp(2.4rem, 11vw, 4.2rem); font-weight: 600; margin-bottom: .3em; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--wine); }
.hero .sub { max-width: 520px; margin: 0 auto 26px; color: var(--muted); font-size: 1.05rem; }

.locbtn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; width: 100%; max-width: 420px;
  font: 600 1.1rem var(--sans); padding: 1.05em 1.4em; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--wine); color: #fff; box-shadow: 0 8px 24px rgba(122,31,61,.28); transition: transform .15s, background .15s; }
.locbtn:hover { background: var(--wine-2); }
.locbtn:active { transform: scale(.98); }
.locbtn svg { width: 22px; height: 22px; fill: currentColor; }
.locbtn.busy svg { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.placesearch { display: flex; max-width: 420px; margin: 14px auto 0; background: var(--card); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.placesearch input { flex: 1; border: 0; background: transparent; font: inherit; padding: .8em 1.1em; min-width: 0; outline: none; }
.placesearch button { border: 0; background: transparent; padding: 0 1.1em; font-size: 1.2rem; color: var(--wine); cursor: pointer; }
.placesearch:focus-within { border-color: var(--wine); }

.radius { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin-top: 18px; font-size: .9rem; color: var(--muted); }
.radius > span { margin-right: 4px; }
.chip { font: 500 .88rem var(--sans); padding: .42em .85em; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- results ---------- */
.results { padding-top: 6px; padding-bottom: 30px; scroll-margin-top: 10px; }
.reshead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.reshead h2 { margin: 0; }
.reshead p { margin: 2px 0 0; font-size: .9rem; }
.viewtoggle { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 3px; flex-shrink: 0; }
.viewtoggle button { border: 0; background: transparent; font: 500 .88rem var(--sans); padding: .45em .95em; border-radius: 999px; cursor: pointer; color: var(--muted); }
.viewtoggle button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.resmap { height: 62vh; min-height: 340px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }

.cards { display: grid; gap: 14px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,.03); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(60,30,40,.06), 0 14px 30px rgba(60,30,40,.10); }
.cimg { aspect-ratio: 16 / 9; background: var(--paper-2) center / cover no-repeat; }
.cimg.noimg { display: grid; place-items: center; color: var(--wine); font-size: 2rem; opacity: .5;
  background: linear-gradient(135deg, var(--paper-2), #e7d8c6); }
.cbody { padding: 14px 16px 16px; position: relative; }
.cbody h3 { font-size: 1.22rem; margin: 0 0 2px; }
.cmeta { margin: 0; color: var(--muted); font-size: .9rem; }
.km { color: var(--wine); font-weight: 600; }
.cmeta .km::before { content: " · "; color: var(--muted); font-weight: 400; }
.ctag { margin: 8px 0 0; font-size: .95rem; }
.featured { display: inline-block; font: 600 .7rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold);
  border: 1px solid currentColor; border-radius: 4px; padding: 2px 6px; margin-bottom: 6px; }
.tags { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .8rem; padding: 3px 9px; border-radius: 999px; background: #f0e7dc; color: #5a4a50; }
.tags.sm { margin-top: 10px; }
.empty, .loading { grid-column: 1 / -1; padding: 18px; text-align: center; color: var(--muted); background: var(--card); border-radius: var(--radius); }
.loading { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.msg { text-align: center; padding-bottom: 10px; }
.msg p { background: var(--card); border-radius: var(--radius); padding: 14px 16px; margin: 0 auto; max-width: 520px; }

/* map pins */
.pin span { display: block; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; background: var(--ink); transform: rotate(-45deg);
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); margin: 1px 2px; }
.pin.feat span { background: var(--wine); }
.popcard { color: var(--ink); text-decoration: none; }
.popcard em { color: var(--wine); font-style: normal; font-weight: 600; }

/* intro */
.intro { padding: 10px 18px 40px; }
.intro h2 { font-size: 1.2rem; text-align: center; }
.regions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 34px; }
.region { font: 500 .95rem var(--sans); padding: .55em 1em; border-radius: 999px; border: 1px solid var(--line); background: var(--card); cursor: pointer; color: var(--ink); }
.region span { color: var(--muted); font-size: .85em; margin-left: 4px; }
.region:hover { border-color: var(--wine); }
.how { display: grid; gap: 14px; max-width: 860px; margin: 0 auto; }
@media (min-width: 720px) { .how { grid-template-columns: repeat(3, 1fr); } }
.how div { display: flex; gap: 12px; align-items: flex-start; }
.how strong { font-family: var(--serif); font-size: 1.6rem; color: var(--gold); line-height: 1; }
.how p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- farm page ---------- */
.previewbar { background: #fff3cd; color: #6b4e00; text-align: center; padding: 8px; font-size: .9rem; position: relative; z-index: 6; }
.fhero { position: relative; min-height: 52vh; background: var(--wine) center / cover no-repeat; display: flex; align-items: flex-end; color: #fff; }
.fhero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,8,12,.45) 0%, rgba(20,8,12,0) 30%, rgba(20,8,12,.15) 55%, rgba(20,8,12,.78) 100%); }
.fhero.noimg { min-height: 34vh; background: linear-gradient(135deg, var(--wine), #3d0f20); }
.fhero.noimg::before { display: none; }
.fhero-in { position: relative; padding-top: 70px; padding-bottom: 24px; }
.back { color: #fff; opacity: .9; text-decoration: none; font-size: .9rem; display: inline-block; margin-bottom: 16px; }
.ftitle { display: flex; align-items: flex-end; gap: 14px; }
.flogo { width: 68px; height: 68px; object-fit: contain; background: #fff; border-radius: 12px; padding: 6px; flex-shrink: 0; }
.ftitle h1 { font-size: clamp(2rem, 8vw, 3.3rem); margin: 0; }
.ftitle .featured { color: #f3d9a0; }
.fmeta { margin: 4px 0 0; opacity: .92; }

.fbody { display: grid; gap: 24px; padding-top: 22px; padding-bottom: 100px; }
@media (min-width: 900px) { .fbody { grid-template-columns: 1fr 340px; gap: 40px; padding-bottom: 40px; } }
.tagline { font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.35; margin: 0 0 10px; }
.fmain section { margin-top: 28px; }
.prose { font-size: 1.02rem; }
.wines { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.wines li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.fgallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .fgallery { grid-template-columns: repeat(3, 1fr); } }
.fgallery figure { margin: 0; }
.fgallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.fgallery figcaption { font-size: .8rem; color: var(--muted); margin-top: 4px; }

.fside { order: -1; }
@media (min-width: 900px) { .fside { order: 0; } .infocard { position: sticky; top: 20px; } }
.infocard { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: grid; gap: 10px; }
.irow { font-size: .95rem; border-top: 1px solid var(--line); padding-top: 10px; }
.irow span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
.contacts { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.contacts a { font-size: .92rem; font-weight: 500; text-decoration: none; padding: .45em .9em; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.fmap { height: 180px; border-radius: 10px; overflow: hidden; margin-top: 4px; }

.stickycta { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(247,241,232,0), var(--paper) 40%); z-index: 1000; }
@media (min-width: 900px) { .stickycta { display: none; } }

.msgpage { padding-top: 40px; padding-bottom: 60px; max-width: 720px; }

/* ---------- footer ---------- */
.sitefoot { background: var(--ink); color: #d9cfd2; padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); font-size: .9rem; }
.sitefoot .logo { color: #fff; margin-bottom: 8px; }
.sitefoot .mark { color: #e2a3b8; }
.sitefoot a { color: #fff; }
.farmpage .sitefoot { padding-bottom: 110px; }
@media (min-width: 900px) { .farmpage .sitefoot { padding-bottom: 30px; } }

.leaflet-container { font-family: var(--sans); }
