/* World Winery Map — light, cheerful: vineyard greens, grapes, sunshine */
:root {
  --paper: #fbf9f2;
  --paper-warm: #f4f0e2;
  --card: #ffffff;
  --ink: #2d3527;
  --ink-soft: #5d6852;
  --leaf: #5e8c3a;
  --leaf-deep: #40662a;
  --leaf-soft: #eaf2df;
  --grape: #7b5ea7;
  --grape-deep: #5c4483;
  --sun: #e9b949;
  --line: rgba(94, 140, 58, .22);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
}
h1, h2, h3 { font-family: Fraunces, Georgia, serif; color: var(--ink); }
a { color: var(--leaf-deep); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
  background: rgba(251,249,242,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-family: Fraunces, serif; font-weight: 700; font-size: 1.08rem;
  color: var(--ink); text-decoration: none; letter-spacing: .01em;
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: .9rem; font-weight: 500; }
.nav-links a:hover { color: var(--leaf-deep); }
.nav-cta {
  background: var(--leaf); border-radius: 999px; padding: 7px 16px;
  color: #fff !important; font-weight: 600;
}
.nav-cta:hover { background: var(--leaf-deep); }

/* ---------- intro strip ---------- */
.intro {
  text-align: center;
  padding: 30px clamp(18px, 6vw, 90px) 20px;
  background:
    radial-gradient(90% 120% at 50% -20%, rgba(233,185,73,.18), transparent 60%),
    linear-gradient(to bottom, #fdfbf4, var(--paper));
}
.eyebrow {
  color: var(--leaf-deep); font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; margin-bottom: 8px;
}
.intro h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.08;
  font-weight: 700; letter-spacing: -.01em; margin-bottom: 16px;
}
.search-wrap { position: relative; max-width: 460px; margin: 0 auto; }
#search {
  width: 100%; padding: 12px 18px;
  font: 500 1rem Inter, sans-serif; color: var(--ink); text-align: center;
  background: var(--card);
  border: 1.5px solid var(--line); border-radius: 999px; outline: none;
  box-shadow: 0 3px 14px rgba(64,102,42,.08);
}
#search:focus { border-color: var(--leaf); }
#search::placeholder { color: #a8ab9c; }
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 1200;
  background: var(--card);
  border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; max-height: 260px; overflow-y: auto; text-align: left;
  box-shadow: 0 12px 34px rgba(45,53,39,.14);
}
.search-results button {
  display: flex; justify-content: space-between; gap: 12px;
  width: 100%; padding: 10px 16px;
  background: none; border: 0; cursor: pointer; text-align: left;
  color: var(--ink); font: 500 .9rem Inter, sans-serif;
}
.search-results button:hover { background: var(--leaf-soft); }
.search-results .cc { color: var(--leaf-deep); font-size: .78rem; white-space: nowrap; }

/* ---------- map ---------- */
.hero {
  position: relative; height: 50vh; min-height: 300px; max-height: 560px;
  border-block: 1px solid var(--line);
}
#map { position: absolute; inset: 0; background: #dfe8d2; }
#map .leaflet-tile-pane { filter: saturate(1.08); }
#map .leaflet-control-attribution {
  background: rgba(251,249,242,.8); color: var(--ink-soft); font-size: 10px;
}
#map .leaflet-control-attribution a { color: var(--leaf-deep); }
.map-loading {
  position: absolute; z-index: 900; right: 16px; top: 14px;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(255,255,255,.92); border: 1px solid var(--line);
  color: var(--leaf-deep); font-size: .78rem; font-weight: 600; letter-spacing: .03em;
  box-shadow: 0 2px 10px rgba(45,53,39,.1);
}

/* clusters = grozdovi */
.wwm-cluster {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background: radial-gradient(circle at 35% 30%, #8fbc5e, var(--leaf) 65%, var(--leaf-deep));
  color: #fff; font: 700 12px Inter, sans-serif; border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(94,140,58,.25), 0 4px 12px rgba(45,53,39,.25);
}
.wwm-cluster.big { font-size: 13px; }
.wwm-dot {
  width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #9d80c9, var(--grape));
  box-shadow: 0 0 0 3px rgba(123,94,167,.28), 0 2px 6px rgba(45,53,39,.3);
}
.leaflet-popup-content-wrapper {
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px;
}
.leaflet-popup-tip { background: var(--card); }
.leaflet-popup-content { font: 500 .9rem Inter, sans-serif; margin: 12px 16px; min-width: 180px; }
.leaflet-popup-content .p-country {
  color: var(--leaf-deep); font-size: .68rem; font-weight: 700; letter-spacing: .09em;
}
.leaflet-popup-content .p-name {
  font-family: Fraunces, serif; font-weight: 600; font-size: 1.02rem;
  line-height: 1.25; margin: 3px 0 6px;
}
.leaflet-popup-content .p-rate { color: var(--sun); font-size: .88rem; letter-spacing: .5px; }
.leaflet-popup-content .p-rate b { color: var(--ink); font-size: .84rem; }
.leaflet-popup-content .p-dim { color: #c9c6b8; font-weight: 400; }
.leaflet-popup-content .p-rate .p-dim { font-size: .78rem; }
.leaflet-popup-content .p-web {
  display: block; margin-top: 7px; font-size: .8rem; color: var(--grape-deep);
  text-decoration: none; word-break: break-all;
}
.leaflet-popup-content .p-web:hover { text-decoration: underline; }
.leaflet-popup-content .p-dir {
  display: inline-block; margin-top: 9px; padding: 5px 12px;
  background: var(--leaf); color: #fff; border-radius: 999px;
  font-size: .76rem; font-weight: 600; text-decoration: none;
}
.leaflet-popup-content .p-dir:hover { background: var(--leaf-deep); }

/* ---------- latest articles ---------- */
.latest {
  padding: 22px clamp(16px, 5vw, 90px) 30px;
  background: var(--paper);
}
.latest-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.latest-head h2 { font-size: 1.15rem; }
.see-all { font-size: .85rem; text-decoration: none; white-space: nowrap; font-weight: 600; }
.article-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.acard {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 13px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 13px; text-decoration: none; color: var(--ink);
  box-shadow: 0 2px 10px rgba(45,53,39,.05);
  transition: box-shadow .2s, transform .2s;
}
.acard:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(45,53,39,.12); }
.ac-ico {
  flex: none; width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
  background: var(--leaf-soft);
}
.ac-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ac-cat { color: var(--leaf-deep); font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.ac-title {
  font-size: .82rem; line-height: 1.28; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- sections ---------- */
.explore, .journal, .claim { padding: 60px clamp(20px, 7vw, 110px); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 8px; }
.section-sub { color: var(--ink-soft); margin-bottom: 26px; }

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px; padding: 30px clamp(20px, 7vw, 110px);
  background: var(--paper-warm); border-block: 1px solid var(--line);
}
.stat { text-align: center; }
.stat b { display: block; font-family: Fraunces, serif; font-size: 1.8rem; color: var(--leaf-deep); }
.stat span { font-size: .78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }

.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 11px; }
.country-card {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  padding: 15px 17px; background: var(--card);
  border: 1px solid var(--line); border-radius: 13px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem;
  box-shadow: 0 2px 8px rgba(45,53,39,.04);
  transition: box-shadow .2s, transform .2s; cursor: pointer;
}
.country-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(45,53,39,.12); }
.country-card .n { color: var(--grape-deep); font-family: Fraunces, serif; }
.more-note { margin-top: 20px; color: var(--ink-soft); font-size: .88rem; font-style: italic; }

.journal { background: var(--paper-warm); border-block: 1px solid var(--line); }
.journal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; }
.journal-grid article {
  padding: 22px; background: var(--card);
  border: 1px solid var(--line); border-radius: 13px;
  box-shadow: 0 2px 10px rgba(45,53,39,.05);
}
.journal-grid h3 { color: var(--leaf-deep); margin-bottom: 7px; font-size: 1.1rem; }
.journal-grid p { color: var(--ink-soft); font-size: .9rem; }
.newsletter { display: flex; gap: 10px; margin-top: 26px; max-width: 440px; }
.newsletter input {
  flex: 1; padding: 12px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--card);
  color: var(--ink); font: 500 .92rem Inter, sans-serif; outline: none;
}
.newsletter input:focus { border-color: var(--leaf); }
.newsletter button, .btn-gold {
  padding: 12px 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--leaf); color: #fff;
  font: 600 .92rem Inter, sans-serif; text-decoration: none; display: inline-block;
}
.newsletter button:hover, .btn-gold:hover { background: var(--leaf-deep); }

.claim-inner { max-width: 640px; }
.claim p { color: var(--ink-soft); margin-bottom: 22px; }
.claim-actions { display: flex; gap: 13px; flex-wrap: wrap; }
.btn-ghost {
  padding: 12px 24px; border-radius: 999px; border: 1.5px solid var(--leaf);
  color: var(--leaf-deep); text-decoration: none; font: 600 .92rem Inter, sans-serif;
}
.btn-ghost:hover { background: var(--leaf-soft); }

.foot {
  padding: 26px clamp(20px, 7vw, 110px);
  border-top: 1px solid var(--line);
  color: var(--ink-soft); font-size: .82rem;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--paper-warm);
}
.foot-small { font-size: .76rem; opacity: .85; }

/* ---------- tablet ---------- */
@media (max-width: 900px) {
  .article-row { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- mobile ---------- */
@media (max-width: 620px) {
  .nav { padding: 10px 15px; }
  .nav-links { gap: 12px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .intro { padding: 20px 16px 14px; }
  .intro h1 { font-size: 1.6rem; margin-bottom: 13px; }
  .hero { height: 42vh; min-height: 240px; }
  .article-row { grid-template-columns: 1fr 1fr; gap: 9px; }
  .acard { flex-direction: column; align-items: flex-start; gap: 8px; padding: 11px; }
  .ac-title { font-size: .78rem; }
  .newsletter { flex-direction: column; }
  .explore, .journal, .claim { padding: 44px 18px; }
}
