@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  /* Jednotná šířka obsahu – nav, sekce i patička jsou vycentrované na stejnou osu */
  --content-w:    1200px;
  --gutter:       max(6%, calc((100% - var(--content-w)) / 2));
  --green:        #1e3a1e;
  --green-mid:    #2d5a2d;
  --green-light:  #4a7c59;
  --green-pale:   #eaf2ea;
  --gold:         #c9a84c;
  --gold-light:   #e8d49a;
  --cream:        #faf7f2;
  --warm-white:   #ffffff;
  --beige:        #f0e8d8;
  --beige-dark:   #d4c4a0;
  --text:         #1a1a1a;
  --text-mid:     #3d3d3d;
  --muted:        #6b6b6b;
  --border:       #e0d5c0;
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.09);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.13);
  --radius:       12px;
  --radius-lg:    20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.25; }

a { color: var(--green-mid); text-decoration: none; }
a:hover { color: var(--green-light); }

/* ─── NAVIGATION ─── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(30, 58, 30, 0.97);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter); height: 68px; gap: 28px;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  color: var(--warm-white);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 28px; list-style: none; margin-left: auto; }
.nav-links a {
  color: rgba(255,255,255,0.78);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold-light); }
.btn-nav {
  background: var(--gold);
  color: var(--green) !important;
  padding: 9px 22px;
  border-radius: 6px;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s !important;
  border: none; cursor: pointer;
}
.btn-nav:hover { background: var(--gold-light) !important; transform: translateY(-1px); color: var(--green) !important; }

/* ─── HERO ─── */
.hero {
  min-height: 620px;
  background: 
    linear-gradient(160deg, rgba(20,45,20,0.85) 0%, rgba(35,75,45,0.7) 60%, rgba(50,90,60,0.6) 100%),
    url('/img/hero-bg.png');
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--cream));
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  color: var(--warm-white);
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto; margin-right: auto;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--green) !important;
  padding: 16px 38px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
  border: none; cursor: pointer;
}
.btn-hero-primary:hover { background: #d4b560; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,168,76,0.45); }
.btn-hero-secondary {
  display: inline-block;
  background: transparent;
  color: rgba(255,255,255,0.85) !important;
  padding: 15px 38px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.2s, color 0.2s;
}
.btn-hero-secondary:hover { border-color: rgba(255,255,255,0.7); color: #fff !important; }

/* ─── TRUST BAR ─── */
.trust-bar {
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  padding: 18px 6%;
  display: flex; align-items: center; justify-content: center; gap: 40px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.trust-item .icon { font-size: 1.1rem; }

/* ─── SECTIONS ─── */
section { padding: 88px var(--gutter); }

.section-label {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--green);
  margin-bottom: 14px;
}
.section-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 540px;
  margin-bottom: 52px;
  font-weight: 300;
}
.section-header { margin-bottom: 52px; }

/* ─── ROOMS ─── */
#rooms { background: var(--cream); }
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 28px;
}
/* Rezervovatelné nabídky z DB – vycentrované karty pevné šířky */
.offers-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.offers-grid .room-card { flex: 0 1 380px; }
.rooms-subtitle { font-size: 1.6rem; color: var(--green); text-align: center; margin: 72px 0 28px; }
.room-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex; flex-direction: column;
}
.room-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.room-card-visual {
  height: 200px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.room-card-visual .bg {
  position: absolute; inset: 0;
  transition: transform 0.4s ease;
}
.room-card:hover .bg { transform: scale(1.04); }
.room-bg-1 { background: linear-gradient(135deg, #2d5a2d 0%, #4a7c59 50%, #6aaa80 100%); }
.room-bg-2 { background: linear-gradient(135deg, #1e3a1e 0%, #2d5a3d 50%, #4a7c5a 100%); }
.room-bg-3 { background: linear-gradient(135deg, #3d5a2d 0%, #5a7c3d 50%, #7aaa5a 100%); }
.room-bg-4 { background: linear-gradient(135deg, #2d3a5a 0%, #3d5a7c 50%, #5a7caa 100%); }
.room-bg-5 { background: linear-gradient(135deg, #5a2d2d 0%, #7c4a3d 50%, #aa6a5a 100%); }
.room-emoji { font-size: 3.5rem; position: relative; z-index: 1; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3)); }
.room-badge {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: rgba(201,168,76,0.9);
  color: #1a1a1a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.room-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.room-card-body h3 {
  font-size: 1.2rem;
  color: var(--green);
  margin-bottom: 8px;
}
.room-card-body p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 16px;
  flex: 1;
  line-height: 1.6;
}
.room-meta {
  display: flex; gap: 16px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.room-meta span { display: flex; align-items: center; gap: 4px; }
.room-footer { display: flex; align-items: center; justify-content: space-between; }
.room-price { font-size: 1.35rem; font-weight: 700; color: var(--green); font-family: 'Playfair Display', serif; }
.room-price small { font-size: 0.78rem; font-weight: 400; color: var(--muted); font-family: 'Inter', sans-serif; }
.btn-book {
  background: var(--green);
  color: var(--warm-white);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
  border: none; cursor: pointer;
  display: inline-block;
}
.btn-book:hover { background: var(--green-light); transform: translateY(-1px); color: var(--warm-white); text-decoration: none; }

/* ─── AMENITIES ─── */
#amenities { background: var(--green); }
#amenities .section-title { color: var(--warm-white); }
#amenities .section-sub { color: rgba(255,255,255,0.6); }
#amenities .section-label { color: var(--gold); }
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 9 položek = čistá mřížka 3×3 */
  gap: 2px;
}
.amenity-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 28px 24px;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.amenity-item:hover { background: rgba(255,255,255,0.09); }
.amenity-icon { font-size: 2rem; margin-bottom: 12px; }
.amenity-item h4 { color: var(--warm-white); font-size: 1rem; margin-bottom: 6px; font-family: 'Inter', sans-serif; font-weight: 600; }
.amenity-item p { color: rgba(255,255,255,0.5); font-size: 0.83rem; }

/* Praktické informace – stejná mřížka jako vybavení, ale na světlém pozadí */
#info { background: var(--cream); }
#info .amenity-item { background: var(--warm-white); border-color: var(--border); }
#info .amenity-item:hover { background: var(--warm-white); }
#info .amenity-item h4 { color: var(--green); }
#info .amenity-item p { color: var(--text-mid); }

/* ─── GALLERY / INFO ─── */
#about { background: var(--warm-white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-visual {
  height: 420px;
  background: linear-gradient(145deg, var(--green) 0%, var(--green-light) 100%);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.about-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.03) 20px, rgba(255,255,255,0.03) 40px);
}
.about-text h2 { margin-bottom: 18px; }
.about-text p { color: var(--muted); margin-bottom: 16px; font-size: 0.95rem; }
.about-highlights { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.highlight-item { display: flex; align-items: flex-start; gap: 12px; }
.highlight-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-top: 7px; flex-shrink: 0; }
.highlight-item p { color: var(--text-mid); font-size: 0.9rem; margin: 0; }

/* ─── CONTACT ─── */
#contact { background: var(--beige); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 {
  color: var(--green);
  font-size: 1.3rem;
  margin-bottom: 24px;
}
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.contact-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.9rem; color: var(--text-mid);
}
.contact-list .ci {
  width: 34px; height: 34px;
  background: var(--green-pale);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.contact-list .cl { line-height: 1.4; }
.contact-list .cl small { color: var(--muted); font-size: 0.78rem; display: block; }
.contact-cta { display: flex; flex-direction: column; justify-content: center; }
.contact-cta h3 { color: var(--green); font-size: 1.5rem; margin-bottom: 12px; }
.contact-cta p { color: var(--muted); margin-bottom: 28px; font-size: 0.95rem; }

/* ─── FOOTER ─── */
footer {
  background: var(--green);
  color: rgba(255,255,255,0.5);
  padding: 32px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem;
}
footer strong { color: rgba(255,255,255,0.9); }
footer a { color: var(--gold-light); }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block;
  background: var(--green);
  color: var(--warm-white);
  padding: 13px 30px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--green-light); transform: translateY(-1px); color: var(--warm-white); text-decoration: none; }

/* ─── BOOKING FORM ─── */
.page-header {
  background: var(--green);
  padding: 56px 6% 52px;
  text-align: center;
}
.page-header h1 { color: var(--warm-white); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,0.65); font-size: 0.95rem; }

.form-wrapper { max-width: 700px; margin: -28px auto 60px; padding: 0 20px; }

.form-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.form-section-title {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 18px; margin-top: 28px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.form-section-title:first-child { margin-top: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--text-mid); margin-bottom: 6px; letter-spacing: 0.02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.93rem; font-family: 'Inter', sans-serif;
  background: var(--warm-white); color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45,90,45,0.1);
}
.form-group textarea { height: 88px; resize: vertical; }

.price-summary {
  background: linear-gradient(135deg, var(--green-pale), #f0f6f0);
  border: 1.5px solid #b8d4b8;
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 20px 0 24px;
  display: none;
}
.price-summary-title {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green-mid);
  margin-bottom: 14px;
}
.price-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 0.88rem; color: var(--text-mid); }
.price-row.divider { border-top: 1px solid #c8ddc8; margin-top: 6px; padding-top: 10px; }
.price-row.total { font-weight: 700; color: var(--green); font-size: 0.95rem; }
.price-unavail { color: #b94040; font-size: 0.83rem; font-weight: 600; margin-top: 8px; display: none; }

.btn-submit {
  width: 100%; padding: 15px;
  background: var(--green);
  color: var(--warm-white);
  border: none; border-radius: 8px;
  font-size: 1rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(30,58,30,0.25);
}
.btn-submit:hover:not(:disabled) { background: var(--green-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(30,58,30,0.3); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

/* ─── ALERTS ─── */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 0.88rem; display: flex; gap: 10px; align-items: flex-start; }
.alert-error { background: #fdf0f0; color: #b94040; border: 1px solid #f5c6c6; }
.alert-success { background: #f0faf0; color: #2d6e2d; border: 1px solid #b8d4b8; }
.alert-info { background: #f0f4fa; color: #2d4a7a; border: 1px solid #b8cce8; }

/* ─── SUCCESS PAGE ─── */
.success-wrapper { max-width: 540px; margin: 60px auto; padding: 0 20px; }
.success-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.success-icon-wrap {
  width: 80px; height: 80px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
  margin: 0 auto 24px;
}
.success-card h1 { color: var(--green); font-size: 1.7rem; margin-bottom: 10px; }
.success-card > p { color: var(--muted); font-size: 0.93rem; margin-bottom: 24px; }
.res-id-box {
  background: var(--beige);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 18px;
  font-family: 'Courier New', monospace;
  font-size: 0.88rem;
  color: var(--text-mid);
  display: inline-block;
  margin: 0 auto 20px;
}
.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--green);
  color: var(--warm-white);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.btn-secondary:hover { background: var(--green-light); color: var(--warm-white); text-decoration: none; }
.btn-ghost {
  display: inline-block;
  padding: 11px 24px;
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.88rem;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--green-mid); color: var(--green-mid); text-decoration: none; }

/* ─── PAYREST ─── */
.payrest-wrapper { max-width: 560px; margin: 60px auto; padding: 0 20px; }
.payrest-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.payrest-card h1 { color: var(--green); font-size: 1.6rem; margin-bottom: 6px; }
.payrest-card > p { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }
.res-summary {
  background: var(--beige);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 28px;
}
.res-summary .row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 0.88rem; color: var(--text-mid); }
.res-summary .row:last-child { border-top: 1px solid var(--beige-dark); margin-top: 8px; padding-top: 10px; font-weight: 700; color: var(--green); font-size: 1rem; }
.pay-options { display: flex; flex-direction: column; gap: 14px; }
.pay-option-btn {
  padding: 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--warm-white);
  cursor: pointer; text-align: left;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  display: flex; align-items: flex-start; gap: 14px;
}
.pay-option-btn:hover { border-color: var(--green-mid); background: var(--green-pale); box-shadow: var(--shadow-sm); }
.pay-option-btn.selected { border-color: var(--green); background: var(--green-pale); }
.pay-opt-icon { font-size: 1.8rem; flex-shrink: 0; }
.pay-opt-text h4 { color: var(--green); margin-bottom: 3px; font-size: 1rem; font-family: 'Inter', sans-serif; font-weight: 600; }
.pay-opt-text p { color: var(--muted); font-size: 0.82rem; margin: 0; }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  section { padding: 60px 5%; }
  .form-row { grid-template-columns: 1fr; }
  .about-grid, .contact-grid, .amenities-grid { grid-template-columns: 1fr; }
  .about-visual { height: 260px; font-size: 4rem; }
  nav .nav-links { display: none; }
  nav { gap: 10px; padding: 0 5%; }
  nav .btn-nav { margin-left: auto; padding: 8px 14px; }
  .nav-logo { font-size: 1.1rem; white-space: nowrap; }
  .nav-admin-label { display: none; }
  .trust-bar { gap: 20px; }
  .hero { min-height: 500px; }
  .form-card { padding: 24px 20px; }
  .success-card { padding: 32px 24px; }
  footer { flex-direction: column; text-align: center; }
}

/* ─── Fotogalerie ─── */
#gallery { background: var(--warm-white); }
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.gallery-filters button {
  border: 1px solid var(--border); background: var(--cream); color: var(--text-mid);
  padding: 8px 16px; border-radius: 999px; font: inherit; font-size: 0.85rem; cursor: pointer; transition: all 0.2s;
}
.gallery-filters button:hover { border-color: var(--green-light); color: var(--green); }
.gallery-filters button.active { background: var(--green); border-color: var(--green); color: var(--warm-white); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 8px;
}
.gallery-item {
  position: relative; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; background: var(--beige);
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(10, 14, 10, 0.95);
  display: flex; align-items: center; justify-content: center; padding: 24px 72px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; border-radius: 4px; }
.lightbox figcaption {
  color: rgba(255,255,255,0.85); font-size: 0.95rem; margin-top: 14px; display: flex; gap: 16px; align-items: baseline;
}
#lb-count { color: rgba(255,255,255,0.45); font-size: 0.8rem; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; opacity: 0.75; transition: opacity 0.2s; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 12px; right: 20px; font-size: 2.6rem; line-height: 1; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 3.6rem; padding: 12px; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 6px; }
  .gallery-filters { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; }
  .gallery-filters button { flex-shrink: 0; }
  .lightbox { padding: 16px; }
  .lb-prev, .lb-next { display: none; }
}
.gallery-more { text-align: center; margin-top: 24px; }
.gallery-more button {
  border: 1px solid var(--green); background: none; color: var(--green); padding: 12px 28px;
  border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.gallery-more button:hover { background: var(--green); color: var(--warm-white); }
.gallery-more button[hidden] { display: none; }
