/* ==========================================================================
   Zjazd Rodziny Dzienisz — styles.css
   Mobile-first, forest palette
   ========================================================================== */

:root {
  --color-green-dark: #1e3d2f;
  --color-green-mid: #2d5a42;
  --color-cream: #f5f0e6;
  --color-cream-dark: #ebe4d6;
  --color-brown: #5c4033;
  --color-brown-light: #7a5c44;
  --color-gold: #9a7b3c;
  --color-gold-dark: #6f5424;
  --color-gold-light: #c4a55a;
  --color-text: #2a241c;
  --color-text-muted: #4a4238;
  --color-white: #ffffff;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;

  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 2px 12px rgba(30, 61, 47, 0.12);
  --shadow-lg: 0 8px 32px rgba(30, 61, 47, 0.18);

  --header-height: 60px;
  --mobile-bar-height: 64px;
  --section-padding: clamp(2.5rem, 6vw, 4rem);
  --content-max: 720px;
  --content-wide: 960px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-cream);
  padding-bottom: calc(var(--mobile-bar-height) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-green-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-brown);
}

:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

/* -------------------------------------------------------------------------- */
/* Site header                                                                */
/* -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-green-dark);
  color: var(--color-cream);
  box-shadow: var(--shadow);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  min-height: var(--header-height);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 2px solid rgba(245, 240, 230, 0.35);
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-cream);
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}

.nav-toggle:hover {
  border-color: var(--color-gold);
}

.nav-toggle__icon {
  position: relative;
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: background 0.2s ease;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle__icon::before {
  top: -7px;
}

.nav-toggle__icon::after {
  top: 7px;
}

.site-header.is-nav-open .nav-toggle__icon {
  background: transparent;
}

.site-header.is-nav-open .nav-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header.is-nav-open .nav-toggle__icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  align-items: center;
}

.site-nav--main {
  flex: 1;
  min-width: 0;
}

.lang-switch-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}

.lang-switch__label {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(245, 240, 230, 0.9);
  white-space: nowrap;
}

.lang-switch {
  display: flex;
  gap: 0.35rem;
}

.site-nav a {
  color: var(--color-cream);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.25rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover {
  color: var(--color-gold);
}

.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.35rem;
  border: 2px solid rgba(245, 240, 230, 0.35);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.lang-switch__btn[aria-pressed="true"] {
  background: var(--color-cream);
  border-color: var(--color-cream);
  box-shadow: 0 0 0 2px var(--color-green-dark);
}

.lang-switch__btn:hover {
  border-color: var(--color-gold);
}

.lang-flag {
  display: block;
  width: 1.75rem;
  height: 1.15rem;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.lang-flag--pl {
  background: linear-gradient(to bottom, #fff 50%, #dc143c 50%);
}

.lang-flag--en {
  background:
    linear-gradient(to bottom, transparent 42%, #fff 42%, #fff 58%, transparent 58%),
    linear-gradient(to right, transparent 42%, #fff 42%, #fff 58%, transparent 58%),
    linear-gradient(33deg, transparent 46%, #fff 46%, #fff 54%, transparent 54%),
    linear-gradient(-33deg, transparent 46%, #fff 46%, #fff 54%, transparent 54%),
    #012169;
  position: relative;
}

.lang-flag--en::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 46%, #c8102e 46%, #c8102e 54%, transparent 54%),
    linear-gradient(to right, transparent 46%, #c8102e 46%, #c8102e 54%, transparent 54%);
}

.lang-flag--csb {
  background: linear-gradient(to bottom, #111 50%, #f5d000 50%);
}

.lang-flag--de {
  background: linear-gradient(to bottom, #000 33.33%, #dd0000 33.33%, #dd0000 66.66%, #ffce00 66.66%);
}

@media (max-width: 768px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0 0.5rem;
    padding: 0.5rem 0.75rem;
  }

  .nav-toggle {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
  }

  .lang-switch-wrap {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
    gap: 0.25rem;
  }

  .lang-switch__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .lang-switch {
    gap: 0.12rem;
  }

  .lang-switch__btn {
    min-width: 44px;
    min-height: 44px;
    padding: 0.2rem;
  }

  .lang-flag {
    width: 1.45rem;
    height: 0.95rem;
  }

  .site-nav--main {
    grid-column: 1 / -1;
    grid-row: 2;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding-top: 0.5rem;
    margin-top: 0.35rem;
    border-top: 1px solid rgba(245, 240, 230, 0.2);
  }

  .site-header.is-nav-open .site-nav--main {
    display: flex;
  }

  .site-nav--main a {
    padding: 0.65rem 0.25rem;
    min-height: 44px;
    border-bottom: 1px solid rgba(245, 240, 230, 0.1);
  }

  .site-nav--main a:last-child {
    border-bottom: none;
  }
}

@media (min-width: 769px) {
  .site-nav--main {
    display: flex !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Sections                                                                   */
/* -------------------------------------------------------------------------- */

main section {
  scroll-margin-top: calc(var(--header-height) + 12px);
  padding: var(--section-padding) 1.25rem;
}

main section:nth-child(even) {
  background: var(--color-cream-dark);
}

.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.section-inner--wide {
  max-width: var(--content-wide);
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--color-green-dark);
  line-height: 1.25;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2rem);
  margin: 0 0 1.5rem;
  padding-bottom: 0;
  border-bottom: none;
}

h2::after {
  content: "";
  display: block;
  width: min(10rem, 68%);
  height: 5px;
  margin-top: 0.6rem;
  border-top: 1px solid var(--color-gold-dark);
  border-bottom: 1px solid var(--color-gold);
}

p {
  margin: 0 0 1rem;
}

.note-box {
  background: var(--color-white);
  border-left: 4px solid var(--color-gold-dark);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  box-shadow: var(--shadow);
}

.warning-box {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--color-white);
  border: 2px solid var(--color-brown-light);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.warning-box__icon {
  flex-shrink: 0;
  font-size: 1.4rem;
  line-height: 1;
}

.placeholder-text {
  color: var(--color-text-muted);
  font-style: italic;
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  border: 2px dashed var(--color-brown-light);
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                    */
/* -------------------------------------------------------------------------- */

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  min-width: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: var(--shadow);
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow);
}

.btn__icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.btn:hover .btn__icon {
  transform: translateX(2px);
}

.btn--with-icon .btn__label {
  text-align: left;
}

.btn--primary {
  background: var(--color-green-dark);
  color: var(--color-cream);
  border-color: var(--color-green-dark);
}

.btn--primary:hover {
  background: var(--color-green-mid);
  border-color: var(--color-green-mid);
  color: var(--color-cream);
}

.btn--secondary {
  background: transparent;
  color: var(--color-green-dark);
  border-color: var(--color-green-dark);
}

.btn--secondary:hover {
  background: var(--color-green-dark);
  color: var(--color-cream);
}

.btn--copy .btn__icon--success {
  display: none;
}

.btn--copy.is-copied {
  background: var(--color-green-mid);
  border-color: var(--color-green-mid);
  color: var(--color-cream);
}

.btn--copy.is-copied .btn__icon--state:not(.btn__icon--success) {
  display: none;
}

.btn--copy.is-copied .btn__icon--success {
  display: block;
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: transparent;
  box-shadow: none;
  font-weight: 600;
}

.btn--ghost:hover {
  background: rgba(30, 61, 47, 0.06);
  color: var(--color-green-dark);
  box-shadow: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-row--fill .btn {
  flex: 1 1 100%;
  justify-content: center;
}

@media (min-width: 640px) {
  .btn-row--fill .btn {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: clamp(420px, 72vh, 620px);
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + 2rem) 1.25rem 3rem;
  overflow: hidden;
  background:
    linear-gradient(165deg, rgba(30, 61, 47, 0.88) 0%, rgba(45, 90, 66, 0.82) 45%, rgba(92, 64, 51, 0.75) 100%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 40px,
      rgba(255, 255, 255, 0.02) 40px,
      rgba(255, 255, 255, 0.02) 41px
    ),
    radial-gradient(ellipse at 20% 80%, #1a3328 0%, #0f1f18 100%);
  color: var(--color-cream);
  scroll-margin-top: 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero--has-photo .hero__overlay {
  background: linear-gradient(165deg, rgba(30, 61, 47, 0.82) 0%, rgba(45, 90, 66, 0.7) 100%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--content-max);
}

.hero h1 {
  font-size: clamp(2.15rem, 7vw, 3.35rem);
  color: var(--color-cream);
  margin: 0 0 0.5rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero__slogan {
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  margin: 0 auto 1.75rem;
  max-width: 28rem;
  color: var(--color-gold-light);
  font-style: italic;
  line-height: 1.5;
}

.hero__slogan::after {
  content: "";
  display: block;
  width: min(6rem, 40%);
  height: 3px;
  margin: 1rem auto 0;
  border-top: 1px solid var(--color-gold-dark);
  border-bottom: 1px solid var(--color-gold-light);
}

.hero__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 2rem;
}

.hero__meta-item {
  margin: 0;
}

.hero__meta-item--date {
  margin-bottom: 0.35rem;
}

.hero__weekday {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.75);
  margin-bottom: 0.25rem;
}

.hero__date {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 4.2vw, 1.95rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-gold-light);
  letter-spacing: 0.03em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero__meta-item--time,
.hero__meta-item--venue {
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(245, 240, 230, 0.82);
}

.hero__meta-item--time .hero__meta-label {
  font-weight: 600;
  margin-right: 0.25rem;
}

.hero__meta-label {
  font-weight: 600;
  margin-right: 0.35rem;
}

.hero__btn-row {
  justify-content: center;
}

.hero .btn--primary {
  background: var(--color-cream);
  color: var(--color-green-dark);
  border-color: var(--color-cream);
}

.hero .btn--primary:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-text);
}

.hero .btn--secondary {
  color: var(--color-cream);
  border-color: rgba(245, 240, 230, 0.7);
  box-shadow: 0 0 0 1px rgba(196, 165, 90, 0.25), var(--shadow);
}

.hero .btn--secondary:hover {
  background: rgba(245, 240, 230, 0.15);
  color: var(--color-cream);
  box-shadow: 0 0 0 1px rgba(196, 165, 90, 0.4), var(--shadow-lg);
}

/* -------------------------------------------------------------------------- */
/* Program timeline                                                           */
/* -------------------------------------------------------------------------- */

.timeline {
  --timeline-dot: 14px;
  --timeline-line: 2px;
  --timeline-col: 1.75rem;

  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: calc(var(--timeline-col) / 2 - var(--timeline-line) / 2);
  top: calc(var(--timeline-dot) / 2 + 0.35rem);
  bottom: calc(var(--timeline-dot) / 2 + 0.35rem);
  width: var(--timeline-line);
  background: linear-gradient(
    to bottom,
    var(--color-gold-dark),
    var(--color-gold) 20%,
    var(--color-gold) 80%,
    var(--color-gold-dark)
  );
  border-radius: 1px;
}

.timeline__item {
  display: grid;
  grid-template-columns: var(--timeline-col) 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  padding-bottom: 1.75rem;
  position: relative;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  justify-self: center;
  width: var(--timeline-dot);
  height: var(--timeline-dot);
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--color-green-dark);
  border: 2px solid var(--color-gold);
  box-shadow: 0 0 0 2px var(--color-cream);
  z-index: 1;
}

main section:nth-child(even) .timeline__item::before {
  box-shadow: 0 0 0 2px var(--color-cream-dark);
}

.timeline__time {
  grid-column: 2;
  grid-row: 1;
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-gold-dark);
  margin-bottom: 0.25rem;
}

.timeline__desc {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: var(--color-text);
}

/* -------------------------------------------------------------------------- */
/* Bring list                                                                 */
/* -------------------------------------------------------------------------- */

.bring-list {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.bring-list li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.bring-list li::marker {
  color: var(--color-green-dark);
}

/* -------------------------------------------------------------------------- */
/* Gallery                                                                    */
/* -------------------------------------------------------------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}

.gallery-item--missing {
  display: none !important;
}

.gallery-item button {
  all: unset;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.gallery-item button:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-item button:hover img {
  transform: scale(1.03);
}

/* -------------------------------------------------------------------------- */
/* Lightbox                                                                   */
/* -------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 30, 24, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox[hidden] {
  display: none !important;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox__img {
  max-width: min(960px, 100%);
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  min-width: 48px;
  min-height: 48px;
  padding: 0.5rem 1rem;
  background: var(--color-cream);
  color: var(--color-green-dark);
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 2;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  background: var(--color-cream);
  color: var(--color-green-dark);
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 2rem;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  z-index: 2;
}

.lightbox__nav--prev {
  left: 1rem;
}

.lightbox__nav--next {
  right: 1rem;
}

.lightbox__nav[hidden] {
  display: none !important;
}

/* -------------------------------------------------------------------------- */
/* Map section                                                                */
/* -------------------------------------------------------------------------- */

.map-details {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.map-details dl {
  margin: 0;
}

.map-details dt {
  font-weight: 700;
  color: var(--color-green-dark);
  margin-top: 1rem;
}

.map-details dt:first-child {
  margin-top: 0;
}

.map-details dd {
  margin: 0.25rem 0 0;
  color: var(--color-text);
}

.map-gps-line {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.map-gps-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -8px 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-green-dark);
  border-radius: var(--radius);
  cursor: pointer;
}

.map-gps-copy[hidden] {
  display: none !important;
}

.map-gps-copy .btn__icon {
  width: 1.2rem;
  height: 1.2rem;
  transform: none;
}

.map-gps-copy:hover {
  background: rgba(30, 61, 47, 0.08);
}

.map-gps-copy:hover .btn__icon {
  transform: none;
}

.map-gps-copy.btn--copy.is-copied {
  background: transparent;
  border-color: transparent;
  color: var(--color-green-mid);
}

.map-drive-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 1rem;
}

.map-drive-img--zoomable {
  cursor: pointer;
}

.map-copy-feedback {
  color: var(--color-green-mid);
  font-weight: 600;
  margin-top: 0.75rem;
}

.map-copy-manual {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: var(--color-cream);
  border-radius: var(--radius);
}

.map-copy-manual code {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.05rem;
  word-break: break-all;
}

/* -------------------------------------------------------------------------- */
/* Map action sheet                                                           */
/* -------------------------------------------------------------------------- */

.map-sheet {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.map-sheet[hidden] {
  display: none !important;
}

body.map-sheet-open {
  overflow: hidden;
}

.map-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 30, 24, 0.55);
}

.map-sheet__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 28rem;
  margin: 0;
  padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  background: var(--color-cream);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-top: 2px solid var(--color-gold-dark);
  box-shadow: var(--shadow-lg);
}

.map-sheet__panel h3 {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-green-dark);
  text-align: center;
}

.map-sheet__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.map-sheet__actions .btn {
  width: 100%;
  justify-content: center;
}

.map-sheet__actions + .map-sheet__actions {
  margin-top: 0.65rem;
}

.map-sheet .btn--ghost {
  justify-content: center;
  margin-top: 0.25rem;
}

@media (min-width: 640px) {
  .map-sheet {
    align-items: center;
    padding: 1.5rem;
  }

  .map-sheet__panel {
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-gold-dark);
  }
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */

.site-footer {
  background: var(--color-green-dark);
  color: var(--color-cream);
  padding: var(--section-padding) 1.25rem;
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: center;
}

.site-footer h2 {
  color: var(--color-cream);
}

.site-footer h2::after {
  margin-left: auto;
  margin-right: auto;
  border-top-color: var(--color-gold-light);
  border-bottom-color: rgba(245, 240, 230, 0.55);
}

.site-footer__year {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

.site-footer__contact {
  margin: 1rem 0;
}

.site-footer__contact a {
  color: var(--color-cream);
}

.site-footer .btn--primary {
  background: var(--color-cream);
  color: var(--color-green-dark);
}

.site-footer .btn--secondary {
  color: var(--color-cream);
  border-color: rgba(245, 240, 230, 0.6);
}

.site-footer .btn--secondary:hover {
  background: rgba(245, 240, 230, 0.12);
  color: var(--color-cream);
}

.site-footer__btn-row {
  justify-content: center;
}

/* -------------------------------------------------------------------------- */
/* Mobile bottom bar                                                          */
/* -------------------------------------------------------------------------- */

.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  background: var(--color-green-dark);
  border-top: 2px solid var(--color-gold-dark);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 769px) {
  .mobile-bar {
    display: none;
  }
}

.mobile-bar a,
.mobile-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: var(--mobile-bar-height);
  color: var(--color-cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-bar__btn {
  margin: 0;
  padding: 0 0.25rem;
  background: transparent;
  border-top: none;
  border-bottom: none;
  border-left: none;
  font-family: inherit;
  cursor: pointer;
}

.mobile-bar > :last-child {
  border-right: none;
}

.mobile-bar a:hover,
.mobile-bar a:focus-visible,
.mobile-bar__btn:hover,
.mobile-bar__btn:focus-visible {
  background: var(--color-green-mid);
  color: var(--color-cream);
}

.mobile-bar > * + * {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-bar__icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.mobile-bar__label {
  line-height: 1.2;
}

.mobile-bar__btn.is-shared {
  background: var(--color-green-mid);
  color: var(--color-gold-light);
}
