/* Pähklimetsa Talu — ühine stiil kõigile lehtedele */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Karla:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f7f6f4; color: #23211f; font-family: "Karla", system-ui, sans-serif; }
h1, h2, h3, h4 { font-family: "Newsreader", Georgia, serif; font-weight: 400; letter-spacing: -0.005em; }
a { color: #8f1130; text-decoration: none; }
a:hover { color: #6b0c23; }
::selection { background: rgba(143,17,48,0.14); }
:focus-visible { outline: 2px solid #8f1130; outline-offset: 3px; }
summary::-webkit-details-marker { display: none; }
details summary .pm-plus { transition: transform 0.25s ease; }
details[open] summary .pm-plus { transform: rotate(45deg); }
img { max-width: 100%; }

/* Hover-klassid (asendavad endise style-hover atribuudi) */
.lnk-nav { transition: color 0.2s ease; }
.lnk-nav:hover { color: #8f1130 !important; }
.lnk-nav[aria-current="page"] { color: #8f1130 !important; font-weight: 600; }
.lnk-foot { transition: color 0.2s ease; }
.lnk-foot:hover { color: #fff !important; }
.btn-maroon { transition: background 0.2s ease; }
.btn-maroon:hover { background: #6b0c23 !important; color: #fff !important; }
.btn-cream { transition: background 0.2s ease; }
.btn-cream:hover { background: #fff !important; color: #23211f !important; }
.btn-outline { transition: background 0.2s ease; }
.btn-outline:hover { background: rgba(35,33,31,0.045) !important; color: #23211f !important; }

/* Keelevaheti nupud */
.langbtn { padding: 2px; border: 0; background: none; cursor: pointer; font-family: "Karla", system-ui, sans-serif; font-size: 14.5px; letter-spacing: 0.04em; transition: color 0.2s ease; color: rgba(35,33,31,0.38); font-weight: 400; }
.langbtn.is-active { color: #23211f; font-weight: 600; }

/* Navi "rohkem" dropdown (mobiilis; desktopil peidus). "Avaleht" on nähtav ka desktopil. */
.nav-more-wrap { display: none; }
.nav-more-wrap { position: relative; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; background: transparent; color: rgba(35,33,31,0.72); cursor: pointer; border-radius: 9px; padding: 0; transition: background 0.15s ease, color 0.15s ease; }
.nav-toggle:hover { background: rgba(35,33,31,0.06); color: #8f1130; }
.nav-more-wrap.open .nav-toggle { background: rgba(143,17,48,0.08); color: #8f1130; }
.nav-drop { position: absolute; top: calc(100% + 12px); right: 0; display: none; flex-direction: column; gap: 2px; min-width: 200px; padding: 8px; background: #fff; border: 1px solid rgba(35,33,31,0.1); border-radius: 14px; box-shadow: 0 20px 48px -22px rgba(20,18,17,0.5); z-index: 60; }
.nav-more-wrap.open .nav-drop { display: flex; }
.nav-drop a { padding: 11px 14px; border-radius: 9px; font-size: 15px; white-space: nowrap; }
.nav-drop a:hover { background: rgba(143,17,48,0.06); }

/* Lehe-päise bänd alalehtedel */
.page-head { padding: 44px 44px 8px; max-width: 1240px; margin: 0 auto; }
.page-head .kick { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.page-head .kick span.dot { width: 7px; height: 7px; border-radius: 50%; background: #8f1130; }
.page-head .kick span.txt { font-family: "Newsreader", Georgia, serif; font-style: italic; font-size: 17px; color: rgba(35,33,31,0.6); }
.page-head h1 { margin: 0 0 14px; font-weight: 400; font-size: clamp(34px, 4vw, 52px); line-height: 1.06; }
.page-head p { margin: 0; max-width: 58ch; font-size: 17px; line-height: 1.7; color: rgba(35,33,31,0.72); }

@media (max-width: 900px) {
  header { padding: 14px 20px !important; flex-wrap: wrap; gap: 14px !important; }
  [data-r="nav"] { order: 3; width: 100%; gap: 16px !important; overflow: visible; padding-bottom: 2px; }
  [data-r="nav"] a { white-space: nowrap; font-size: 14.5px !important; }
  .nav-home { display: inline-flex !important; }
  .nav-more { display: none !important; }
  .nav-more-wrap { display: inline-flex !important; margin-left: auto; }
  .nav-drop a { font-size: 15px !important; }
  [data-r="lang"] { padding-left: 0 !important; }
  section { padding-left: 20px !important; padding-right: 20px !important; }
  .page-head { padding-left: 20px !important; padding-right: 20px !important; }
  [data-r="hero"] { min-height: 560px !important; padding: 70px 0 120px !important; background-position: 30% center !important; }
  [data-r="two"] { grid-template-columns: 1fr !important; gap: 36px !important; }
  [data-r="two-rev"] { grid-template-columns: 1fr !important; gap: 32px !important; }
  [data-r="two-rev"] > figure { order: 2; }
  [data-r="facts"] { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  [data-r="cards"] { grid-template-columns: 1fr 1fr !important; }
  [data-r="one"] { grid-template-columns: 1fr !important; }
  [data-r="stats"] { grid-template-columns: 1fr 1fr !important; }
  [data-r="stack"] { flex-direction: column !important; align-items: flex-start !important; gap: 20px !important; }
  [data-r="gal"] { grid-auto-rows: 160px !important; }
  [data-r="gal"] > div { grid-column: span 3 !important; grid-row: span 1 !important; }
  [data-r="gal"] > div:first-child { grid-column: span 6 !important; grid-row: span 2 !important; }
  [data-r="light"] { max-width: 260px !important; }
  [data-r="contact-card"] { padding: 32px 26px !important; }
  [data-r="footbar"] { flex-direction: column; gap: 6px !important; }
  [data-r="foot"], [data-r="footbar"] { padding-left: 20px !important; padding-right: 20px !important; }
}
@media (max-width: 560px) {
  [data-r="cards"] { grid-template-columns: 1fr !important; }
  [data-r="stats"] { grid-template-columns: 1fr !important; }
  [data-r="facts"] { grid-template-columns: 1fr 1fr !important; }
  [data-r="facts"] svg { display: none; }
  [data-r="gal"] > div, [data-r="gal"] > div:first-child { grid-column: span 6 !important; grid-row: span 1 !important; }
  [data-r="foot"] { grid-template-columns: 1fr !important; gap: 30px !important; }
}

/* ── Saare kaart + pin-marker + valge sildikast ── */
.pm-map { position: relative; display: block; width: 100%; }
.pm-pin { position: absolute; pointer-events: none; }
.pm-pin .pin-tail { position: absolute; left: 0; top: 0; width: 46px; height: 2px; background: #7a0f22; transform-origin: 0 50%; transform: rotate(214deg); border-radius: 2px; }
.pm-pin .pin-marker { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); display: block; animation: pin-glow 2.8s ease-in-out infinite; }
@keyframes pin-glow {
  0%, 100% { filter: drop-shadow(0 2px 2px rgba(20,18,17,0.35)); }
  50%      { filter: drop-shadow(0 1px 7px rgba(176,29,56,0.65)); }
}
.pm-pin .pin-callout { position: absolute; left: -38px; top: -25px; transform: translate(-100%, -100%); background: #faf9f5; border: 1.5px solid #7a0f22; border-radius: 11px; padding: 5px 12px; font-family: "Newsreader", Georgia, serif; font-weight: 600; font-size: 14px; line-height: 1.1; color: #7a0f22; white-space: nowrap; box-shadow: 0 3px 9px rgba(20,18,17,0.25); }
@media (prefers-reduced-motion: reduce) { .pm-pin .pin-marker { animation: none; } }

/* ── Päringuvorm ── */
.pm-form { display: flex; flex-direction: column; gap: 16px; }
.pm-field label { display: block; font-size: 13px; color: rgba(35,33,31,0.6); margin-bottom: 6px; }
.pm-input { width: 100%; padding: 12px 14px; font: inherit; font-size: 15px; color: #23211f; background: #fff; border: 1px solid rgba(35,33,31,0.16); border-radius: 12px; }
.pm-input:hover { border-color: rgba(35,33,31,0.4); }
.pm-input:focus { border-color: #8f1130; outline: none; }
textarea.pm-input { min-height: 84px; resize: vertical; }
.pm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* Kõrgekvaliteetne slider (kohandatud, sujuv) */
.pm-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 8px 0; border-radius: 999px; background: linear-gradient(to right, #8f1130 0%, #8f1130 var(--pm-fill, 33%), rgba(35,33,31,0.12) var(--pm-fill, 33%), rgba(35,33,31,0.12) 100%); outline: none; cursor: pointer; }
.pm-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #8f1130; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(143,17,48,0.4); cursor: grab; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.pm-range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.pm-range:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.18); box-shadow: 0 3px 12px rgba(143,17,48,0.55); }
.pm-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #8f1130; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(143,17,48,0.4); cursor: grab; }
.pm-range::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(35,33,31,0.12); }
.pm-range::-moz-range-progress { height: 6px; border-radius: 999px; background: #8f1130; }
.pm-guests-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.pm-guests-num { font-family: "Newsreader", Georgia, serif; font-size: 22px; color: #8f1130; }
.pm-send { display: inline-flex; align-items: center; justify-content: center; padding: 15px 30px; border: 0; border-radius: 999px; background: #8f1130; color: #fff; font-size: 15.5px; font-family: inherit; cursor: pointer; transition: background 0.2s ease; }
.pm-send:hover { background: #6b0c23; }
.pm-form-note { margin: 0; font-size: 13px; line-height: 1.6; color: rgba(35,33,31,0.55); }
@media (max-width: 560px) { .pm-row { grid-template-columns: 1fr; } }

/* ── Majutuse päisepilt (full-bleed) ── */
.stay-hero { position: relative; width: 100%; height: clamp(280px, 42vw, 480px); overflow: hidden; }
.stay-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; display: block; }
.stay-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,18,17,0.28), rgba(20,18,17,0) 42%); }

/* ── Talumaja eripärad (3 kaarti) ── */
.feat-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.feat-card { padding: 26px 26px 24px; background: #fbfaf8; border: 1px solid rgba(35,33,31,0.07); border-radius: 18px; }
.feat-card .ic { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 11px; background: rgba(143,17,48,0.08); margin-bottom: 14px; }
.feat-card h3 { margin: 0 0 6px; font-family: "Newsreader", Georgia, serif; font-weight: 500; font-size: 21px; }
.feat-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(35,33,31,0.62); }

/* ── Sektsiooni väike pealkiri (kicker) korduvkasutatav ── */
.mini-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 18px; }
.mini-head h2 { margin: 0; font-family: "Newsreader", Georgia, serif; font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12; }
.mini-head .hint { font-size: 13.5px; color: rgba(35,33,31,0.5); font-style: italic; font-family: "Newsreader", Georgia, serif; }

/* ── Märksõna-plaadid (mugavused) — telefonis 2 kõrvuti ── */
.amen-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.amen-tile { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #f7f6f4; border-radius: 14px; font-size: 15.5px; line-height: 1.25; color: #23211f; }
.amen-tile svg { flex: 0 0 auto; width: 20px; height: 20px; stroke: #8f1130; }
.amen-grid.is-paid .amen-tile { background: transparent; border: 1px solid rgba(35,33,31,0.12); }

/* ── Sildid (Peredele / Sõpruskondadele) ── */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 0; }
.tag-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(143,17,48,0.07); color: #8f1130; font-size: 14.5px; font-weight: 500; }
.tag-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #8f1130; }

/* ── Broneerimissektsioon (vorm + kõrvalinfo) ── */
.book-section { background: #efedea; }
.book-wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: start; }
.book-aside { align-self: stretch; }
.book-card { background: rgba(247,246,244,0.98); border-radius: 22px; padding: 34px 34px 36px; box-shadow: 0 24px 70px -44px rgba(20,18,17,0.65); }
.trust-row { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.trust-item { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.5; color: rgba(35,33,31,0.78); }
.trust-item svg { flex: 0 0 auto; width: 20px; height: 20px; stroke: #8f1130; margin-top: 1px; }
.urgency { display: inline-flex; align-items: center; gap: 9px; margin-top: 20px; padding: 11px 16px; border-radius: 12px; background: rgba(143,17,48,0.06); font-size: 14px; line-height: 1.45; color: #8f1130; }
.urgency svg { flex: 0 0 auto; width: 17px; height: 17px; stroke: #8f1130; }
@media (max-width: 900px) {
  .feat-row { grid-template-columns: 1fr; }
  .amen-grid { grid-template-columns: 1fr 1fr; }
  .book-wrap { grid-template-columns: 1fr; gap: 26px; }
  .book-aside { order: 2; }
}
@media (max-width: 560px) {
  .amen-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .amen-tile { padding: 13px 12px; font-size: 14px; gap: 9px; }
  .amen-tile svg { width: 18px; height: 18px; }
  .book-card { padding: 26px 20px 28px; }
}

/* ── Kalender (ühe kuu vahemiku-valija) ── */
.pm-cal { background: #fff; border: 1px solid rgba(35,33,31,0.14); border-radius: 16px; padding: 14px 14px 16px; }
.pm-cal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pm-cal-title { font-family: "Newsreader", Georgia, serif; font-size: 18px; color: #23211f; text-transform: capitalize; }
.pm-cal-nav { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: #23211f; cursor: pointer; transition: background 0.15s ease; }
.pm-cal-nav:hover:not(:disabled) { background: rgba(143,17,48,0.08); }
.pm-cal-nav:disabled { opacity: 0.28; cursor: default; }
.pm-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.pm-cal-dow { text-align: center; font-size: 12px; font-weight: 600; color: rgba(35,33,31,0.42); padding: 4px 0 6px; }
.pm-cal-day { position: relative; display: flex; align-items: center; justify-content: center; height: 40px; font-size: 14.5px; color: #23211f; background: transparent; border: 0; cursor: pointer; border-radius: 10px; font-family: inherit; transition: background 0.12s ease, color 0.12s ease; }
.pm-cal-day:hover:not(:disabled):not(.is-empty) { background: rgba(143,17,48,0.1); }
.pm-cal-day:disabled, .pm-cal-day.is-empty { color: rgba(35,33,31,0.26); cursor: default; }
.pm-cal-day.is-today { font-weight: 700; }
.pm-cal-day.is-today::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: #8f1130; }
.pm-cal-day.in-range { background: rgba(143,17,48,0.09); border-radius: 0; }
.pm-cal-day.range-start { background: #8f1130; color: #fff; border-radius: 10px 0 0 10px; }
.pm-cal-day.range-end { background: #8f1130; color: #fff; border-radius: 0 10px 10px 10px; }
.pm-cal-day.range-start.range-end { border-radius: 10px; }
.pm-cal-day.range-start.is-today::after, .pm-cal-day.range-end.is-today::after { background: #fff; }
.pm-cal-summary { display: flex; align-items: center; gap: 9px; margin-top: 12px; padding: 11px 14px; border-radius: 12px; background: rgba(143,17,48,0.06); font-size: 14.5px; color: #8f1130; min-height: 20px; }
.pm-cal-summary svg { flex: 0 0 auto; width: 17px; height: 17px; stroke: #8f1130; }
.pm-cal-summary.is-empty { background: rgba(35,33,31,0.04); color: rgba(35,33,31,0.55); }
.pm-cal-summary.is-empty svg { stroke: rgba(35,33,31,0.4); }
.pm-cal-summary--error { background: rgba(143,17,48,0.14) !important; color: #8f1130 !important; animation: pm-shake 0.4s ease; }
@keyframes pm-shake { 0%,100%{transform:translateX(0);} 20%,60%{transform:translateX(-5px);} 40%,80%{transform:translateX(5px);} }
