/* ════════════════════════════════════════════════════════════
   Eteläpää Resort — Karavaanipaikat
   Designtokenit: syvä metsänvihreä + lämmin kulta + kerma
   ════════════════════════════════════════════════════════════ */

:root {
  --forest-deep:  #1c2e1c;
  --forest:       #2d4b2e;
  --forest-light: #3c5f3d;
  --gold:         #dca744;
  --gold-soft:    #f0d49b;
  --gold-deep:    #ce871b;
  --cream:        #faf5ea;
  --card:         #fffdf9;
  --secondary:    #ebe4d6;
  --muted:        #ece7dd;
  --border:       #dfd7c5;
  --text-dark:    #121e12;
  --text-mid:     #4b5a4b;
  --white:        #ffffff;

  --available:       #355837;
  --available-light: #4a7a4d;
  --occupied:        #90302e;
  --occupied-light:  #a64340;
  --paid:            #8f6a1c;
  --paid-light:      #b08428;

  --radius:     0.75rem;
  --radius-lg:  1.1rem;
  --radius-sm:  0.5rem;

  --shadow-card:    0 2px 8px -2px rgba(28, 46, 28, 0.08), 0 12px 32px -12px rgba(28, 46, 28, 0.12);
  --shadow-elegant: 0 20px 60px -20px rgba(28, 46, 28, 0.35);
  --shadow-gold:    0 10px 30px -10px rgba(220, 167, 68, 0.5);
  --shadow-sm:      0 1px 3px rgba(28, 46, 28, 0.08), 0 1px 2px rgba(28, 46, 28, 0.05);

  /* Yläreuna tummempi, jotta läpinäkyvän headerin linkit erottuvat kuvasta */
  --gradient-hero:   linear-gradient(180deg, rgba(14, 31, 15, 0.7) 0%, rgba(28, 46, 28, 0.35) 35%, rgba(14, 31, 15, 0.85) 100%);
  --gradient-gold:   linear-gradient(135deg, #e8be62 0%, #ce871b 100%);
  --gradient-forest: linear-gradient(135deg, #2d4b2e 0%, #172918 100%);

  --ring: 0 0 0 3px rgba(220, 167, 68, 0.4);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--gold-soft);
  color: var(--forest-deep);
}

/* ── Saavutettavuus: näkyvä fokustila näppäimistölle ── */
:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-sm);
}

/* ── Header ─────────────────────────────────── */
/* Läpinäkyvä hero-kuvan päällä; saa tumman taustan vieritettäessä (.scrolled, ks. shared.js) */
header {
  background: transparent;
  color: var(--white);
  padding: 0 1.5rem;
  border-bottom: 1px solid transparent;
  height: 72px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease;
}

header.scrolled {
  background: rgba(28, 46, 28, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: rgba(220, 167, 68, 0.25);
}

.header-inner {
  max-width: 1100px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  height: 100%;
  padding: 10px 0;
}

.logo-img {
  height: 100%;
  width: auto;
  max-width: 52px;
  object-fit: contain;
  transition: opacity 0.2s;
}

.logo-text-img {
  height: 55%;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  transition: opacity 0.2s;
}

.logo:hover .logo-img,
.logo:hover .logo-text-img {
  opacity: 0.85;
}

nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  color: rgba(250, 245, 234, 0.85);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

nav a:hover {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
}

nav a.admin-link {
  background: rgba(220, 167, 68, 0.12);
  border: 1px solid rgba(220, 167, 68, 0.6);
  color: var(--gold-soft);
  padding: 0.45rem 1.15rem;
  border-radius: 100px;
  font-size: 0.84rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

nav a.admin-link:hover {
  background: var(--gradient-gold);
  color: var(--forest-deep);
  border-bottom-color: transparent;
  box-shadow: var(--shadow-gold);
}

/* ── Hero ─────────────────────────────────── */
.hero {
  background:
    var(--gradient-hero),
    url('../img/hero-forest.jpg') center 40% / cover no-repeat;
  color: var(--white);
  text-align: center;
  /* Ylätäyte sisältää fixed-headerin korkeuden (72px) */
  padding: calc(72px + 4.5rem) 2rem 5rem;
  position: relative;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 600;
  color: var(--gold-soft);
  letter-spacing: 0.04em;
  margin-bottom: 0.7rem;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}

.hero p {
  color: rgba(250, 245, 234, 0.88);
  font-size: 1.08rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* ── Pääsisältö ───────────────────────────── */
main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 2.2rem 1.5rem 3.5rem;
}

/* ── Esittelyteksti ───────────────────────── */
.intro {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.5rem 1.8rem;
  margin-bottom: 1.8rem;
}

.intro-lead {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--forest);
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
}

.intro p:not(.intro-lead) {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0.6rem;
}

.intro p:last-child { margin-bottom: 0; }

.intro a,
.info-section a {
  color: var(--forest);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.intro a:hover,
.info-section a:hover {
  color: var(--gold-deep);
}

/* ── Päivämääräpalkki ─────────────────────── */
.date-bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}

/* Admin-työkalupalkin sisällä oleva "paljas" versio */
.date-bar--bare {
  flex: 1;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

.date-bar label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--forest);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.date-bar input[type="date"] {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.9rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.date-bar input[type="date"]:hover {
  border-color: var(--gold);
}

.date-bar input[type="date"]:focus {
  border-color: var(--gold);
  box-shadow: var(--ring);
}

.day-nav-btn {
  background: var(--gradient-forest);
  color: var(--cream);
  border: none;
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.2s, transform 0.1s, box-shadow 0.2s;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.day-nav-btn:hover {
  filter: brightness(1.2);
  box-shadow: var(--shadow-card);
}

.day-nav-btn:active { transform: scale(0.92); }

.availability-summary {
  margin-left: auto;
  font-size: 0.88rem;
  color: var(--text-mid);
  display: flex;
  gap: 0.7rem;
}

.summary-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.summary-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.summary-dot.available { background: var(--available-light); box-shadow: 0 0 0 3px rgba(74, 122, 77, 0.2); }
.summary-dot.reserved  { background: var(--occupied);        box-shadow: 0 0 0 3px rgba(144, 48, 46, 0.16); }

/* ── Selite ───────────────────────────────── */
.legend {
  display: flex;
  gap: 1.4rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-mid);
  font-weight: 500;
}

.legend-swatch {
  width: 26px;
  height: 17px;
  border-radius: 5px;
  box-shadow: var(--shadow-sm);
}

.legend-swatch.available { background: linear-gradient(150deg, var(--available-light), var(--available)); }
.legend-swatch.reserved  { background: linear-gradient(150deg, var(--occupied-light), var(--occupied)); }
.legend-swatch.paid      { background: linear-gradient(150deg, var(--paid-light), var(--paid)); border: 2px solid var(--gold); }

/* ── Osion otsikot ────────────────────────── */
.spots-section h2,
.pricing-title {
  font-family: var(--font-display);
  color: var(--forest);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

/* ── Paikkaruudukko ───────────────────────── */
.row-group {
  margin-bottom: 1.8rem;
  animation: fadeUp 0.4s ease both;
}

.row-group:nth-child(2) { animation-delay: 0.07s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.row-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-mid);
  margin-bottom: 0.7rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.row-label::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: var(--border);
}

.spots-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.spot-card {
  width: 82px;
  height: 82px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 2px 8px rgba(28, 46, 28, 0.22);
  position: relative;
  user-select: none;
}

.spot-card.available {
  background: linear-gradient(160deg, var(--available-light) 0%, var(--available) 100%);
  border: 1px solid rgba(250, 245, 234, 0.25);
}

.spot-card.reserved {
  background: linear-gradient(160deg, var(--occupied-light) 0%, var(--occupied) 100%);
  border: 1px solid rgba(250, 245, 234, 0.14);
}

.spot-card.paid {
  background: linear-gradient(160deg, var(--paid-light) 0%, var(--paid) 100%);
  border: 2px solid var(--gold);
}

.spot-card:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 24px rgba(28, 46, 28, 0.3);
}

.spot-number {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.spot-status {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(250, 245, 234, 0.78);
  margin-top: 5px;
  text-transform: uppercase;
}

.spot-card.paid .spot-status {
  color: var(--gold-soft);
}

/* Admin: klikattavat paikat */
.spot-card.clickable {
  cursor: pointer;
}

.spot-card.clickable:hover {
  filter: brightness(1.12);
  transform: translateY(-3px);
}

.spot-card.clickable:active {
  transform: translateY(-1px) scale(0.97);
}

.spot-card.clickable:focus-visible {
  box-shadow: var(--ring), 0 4px 12px rgba(28, 46, 28, 0.25);
}

/* ── Lataus- ja virhetilat ────────────────── */
.loading-state, .empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--text-mid);
  font-size: 0.95rem;
}

.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Admin: kirjautumislomake ─────────────── */
.login-container {
  max-width: 410px;
  margin: 3.5rem auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elegant);
  padding: 2.8rem 2.4rem;
  text-align: center;
  animation: fadeUp 0.4s ease both;
}

.login-container h2 {
  font-family: var(--font-display);
  color: var(--forest);
  margin-bottom: 0.3rem;
  font-size: 2rem;
  font-weight: 600;
}

.login-container p {
  color: var(--text-mid);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.2rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.form-group input {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  background: var(--cream);
}

.form-group input:hover {
  border-color: var(--gold);
}

.form-group input:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: var(--ring);
}

.form-group input::placeholder {
  color: #aaa496;
}

/* ── Painikkeet ───────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: filter 0.2s, transform 0.1s, box-shadow 0.2s;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-sm);
}

.btn:hover { box-shadow: var(--shadow-card); }
.btn:active { transform: scale(0.97); }

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--gradient-forest);
  color: var(--cream);
}

.btn-primary:hover {
  filter: brightness(1.18);
}

.login-container .btn-primary {
  width: 100%;
  padding: 0.8rem;
}

.btn-gold {
  background: var(--gradient-gold);
  color: var(--forest-deep);
}

.btn-gold:hover {
  filter: brightness(1.08);
  box-shadow: var(--shadow-gold);
}

.btn-danger {
  background: linear-gradient(135deg, var(--occupied-light) 0%, var(--occupied) 100%);
  color: var(--cream);
}

.btn-danger:hover {
  filter: brightness(1.15);
}

.btn-ghost {
  background: rgba(45, 75, 46, 0.08);
  color: var(--forest);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(45, 75, 46, 0.16);
  box-shadow: none;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
}

.error-msg {
  color: var(--occupied);
  font-size: 0.85rem;
  margin-top: 0.9rem;
  padding: 0.65rem 0.85rem;
  background: #f9eceb;
  border-radius: var(--radius-sm);
  border: 1px solid #ecc8c6;
  display: none;
}

.error-msg.visible { display: block; }

/* ── Admin-työkalupalkki ──────────────────── */
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-user-info {
  font-size: 0.85rem;
  color: var(--text-mid);
  white-space: nowrap;
}

.admin-user-info strong {
  color: var(--forest);
}

/* ── Modaali ──────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 30, 18, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s, visibility 0.22s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elegant);
  padding: 2rem;
  width: 100%;
  max-width: 460px;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gold);
}

.modal-header h3 {
  font-family: var(--font-display);
  color: var(--forest);
  font-size: 1.65rem;
  font-weight: 600;
}

.modal-close {
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-mid);
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--secondary);
  color: var(--text-dark);
}

.modal-status-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1.3rem;
}

.modal-status-badge.available {
  background: #dcead8;
  color: var(--available);
}

.modal-status-badge.reserved {
  background: #f2dcdb;
  color: var(--occupied);
}

.modal-status-badge.paid {
  background: var(--gold-soft);
  color: var(--paid);
  border: 1px solid var(--gold);
}

.modal-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

/* ── Vahvistusmodaali (päällekkäinen varaus) ─ */
.modal--confirm .modal-header {
  border-bottom-color: var(--occupied);
}

.modal--confirm .modal-header h3 {
  color: var(--occupied);
}

.confirm-lead {
  color: var(--text-dark);
  font-size: 0.98rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.conflict-list {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
}

.conflict-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.95rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.conflict-list li:last-child { border-bottom: none; }

.conflict-date {
  font-weight: 600;
  color: var(--forest);
  white-space: nowrap;
}

.conflict-guest {
  color: var(--text-mid);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.confirm-warning {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  background: #f9eceb;
  border: 1px solid #ecc8c6;
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  color: var(--occupied);
  font-size: 0.88rem;
  line-height: 1.5;
}

.confirm-warning-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--occupied);
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ── Massavaraus ──────────────────────────── */
.mass-section {
  margin-bottom: 1.6rem;
}

.mass-toggle {
  background: var(--card);
  border: 1.5px dashed var(--gold);
  color: var(--forest);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.2s, box-shadow 0.2s;
}

.mass-toggle:hover {
  background: var(--gold-soft);
  box-shadow: var(--shadow-sm);
}

.mass-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 0.75rem;
  box-shadow: var(--shadow-card);
  animation: fadeUp 0.3s ease both;
}

.mass-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.mass-form-row .form-group {
  flex: 1;
  min-width: 160px;
  margin-bottom: 0;
}

.mass-form-row select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--cream);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mass-form-row select:hover { border-color: var(--gold); }

.mass-form-row select:focus {
  border-color: var(--gold);
  box-shadow: var(--ring);
}

.mass-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.3rem;
  flex-wrap: wrap;
}

.mass-feedback {
  margin-top: 0.9rem;
  font-size: 0.87rem;
  font-weight: 500;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  display: none;
}

.mass-feedback:not(:empty) { display: block; }

.mass-feedback--success {
  background: #dcead8;
  color: #2c4a2e;
  border: 1px solid #bdd5b8;
}

.mass-feedback--error {
  background: #f9eceb;
  color: var(--occupied);
  border: 1px solid #ecc8c6;
}

.mass-feedback--info {
  background: var(--gold-soft);
  color: var(--paid);
  border: 1px solid #e3c98e;
}

/* ── Hinnasto ─────────────────────────────── */
.pricing-section {
  margin-top: 3rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--border);
}

.pricing-cards {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.7rem 2rem;
  flex: 1;
  min-width: 210px;
  max-width: 290px;
  position: relative;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elegant);
}

.pricing-card--highlight {
  border: 1.5px solid var(--gold);
  background: linear-gradient(150deg, #fffdf5 0%, #faf1da 100%);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 1.4rem;
  background: var(--gradient-gold);
  color: var(--forest-deep);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
  border-radius: 100px;
  box-shadow: var(--shadow-gold);
}

.pricing-icon {
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.pricing-name {
  font-size: 0.9rem;
  color: var(--text-mid);
  font-weight: 500;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--forest);
  line-height: 1;
  margin-top: 0.4rem;
}

.pricing-price span {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-mid);
}

.pricing-note {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--forest);
}

/* ── Info-osio (SEO-sisältöteksti) ────────── */
.info-section {
  margin-top: 3rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--border);
  max-width: 720px;
}

.info-title {
  font-family: var(--font-display);
  color: var(--forest);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.info-section p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.9rem;
}

/* ── Footer ───────────────────────────────── */
footer {
  background: var(--gradient-forest);
  color: rgba(250, 245, 234, 0.65);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border-top: 2px solid rgba(220, 167, 68, 0.5);
}

footer p { margin: 0.25rem 0; }

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold-soft);
  letter-spacing: 0.06em;
}

.footer-contact a {
  color: rgba(250, 245, 234, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--gold-soft);
}

.footer-copy {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: rgba(250, 245, 234, 0.45);
}

/* ── Responsiivisuus ──────────────────────── */
@media (max-width: 720px) {
  .availability-summary {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .hero { padding: calc(72px + 2rem) 1.5rem 3rem; }

  main { padding: 1.4rem 1rem 2.5rem; }

  .spot-card { width: 66px; height: 66px; border-radius: 10px; }
  .spot-number { font-size: 1.15rem; }
  .spot-status { font-size: 0.52rem; }
  .spots-row { gap: 0.5rem; }

  .header-inner { flex-wrap: nowrap; gap: 0.5rem; padding: 0.6rem 0; }
  .logo-img { height: 36px; }
  .logo-text-img { height: 22px; }
  .logo { gap: 0.4rem; }
  nav { gap: 0.8rem; }
  nav a { font-size: 0.8rem; }
  nav a.admin-link { padding: 0.3rem 0.8rem; }

  .date-bar { padding: 0.9rem 1rem; gap: 0.6rem; }

  .pricing-cards { flex-direction: column; }
  .pricing-card { max-width: 100%; }

  .login-container { padding: 2.2rem 1.5rem; margin: 2rem auto; }

  .modal { padding: 1.5rem; }
}

/* Vähennetty liike käyttäjän asetusten mukaan */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
