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

html, body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  /* Each face is loaded at the weights it ships, so a weight in between
     resolves to the nearest real one instead of a smeared synthetic bold. */
  font-synthesis-weight: none;
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6,
.title, .subtitle {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  color: var(--color-heading);
}

h1, .title {
  font-size: var(--text-h1);
  line-height: var(--leading-h1);
}

h2 {
  font-size: var(--text-h2);
  font-weight: var(--weight-heading-strong);
  line-height: var(--leading-h2);
}

h3 {
  font-size: var(--text-h3);
  font-weight: var(--weight-heading-strong);
  line-height: var(--leading-h2);
}

h4, h5, h6 {
  font-size: var(--text-h4);
  font-weight: var(--weight-heading-strong);
}

strong, b {
  font-weight: var(--weight-body-strong);
}

a {
  color: var(--color-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--color-link-hover);
  text-decoration-color: var(--color-link-underline-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

blockquote {
  font-style: italic;
  font-size: var(--text-quote);
  line-height: var(--leading-quote);
}

/* Short caps labels, echoing FOUNDATION in the logo */
.label-caps {
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: var(--weight-ui-strong);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-gutter);
  box-sizing: border-box;
}

/* Navbar */
.navbar {
  background-color: var(--color-surface);
  box-shadow: var(--shadow-md);
  /* At least the logo's clear space: the cap height of DAVID LOMAN. */
  padding: 1.25rem 0;
  margin-bottom: var(--space-4);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;

}

.navbar-brand a {
  text-decoration: none;
  color: var(--color-text);
}

/* The brand guidelines set a minimum artwork width per lockup (266px for the
   horizontal logo, 44px for the mark) and ask for a smaller lockup below it,
   rather than shrinking one past the point its thin sun ring disappears. */
.navbar-logo {
  display: block;
  line-height: 0;
}

.navbar-logo img {
  height: auto;
}

.navbar-logo-full {
  display: block;
  width: 280px;
}

.navbar-logo-mark {
  display: none;
  width: 56px;
}

/* The links share FOUNDATION's baseline so they read as part of the lockup's
   bottom line, rather than floating level with the gap between its two lines. */
@media screen and (min-width: 769px) {
  /* The logo has no text baseline, so flexbox uses its bottom edge, which is
     where FOUNDATION sits. */
  .navbar .container {
    align-items: baseline;
  }
}

@media screen and (max-width: 359px) {
  .navbar-logo-full {
    display: none;
  }

  .navbar-logo-mark {
    display: block;
  }
}

.navbar-burger {
  display: none;
  cursor: pointer;
  height: 3.25rem;
  width: 3.25rem;
  position: relative;
  /* It is a <button> so it is keyboard operable; these strip the UA styling. */
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
}

.navbar-burger:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.navbar-burger span {
  background-color: var(--color-text);
  display: block;
  height: 2px;
  width: 24px;
  position: absolute;
  left: calc(50% - 12px);
  border-radius: 1px;
  transition: all 0.3s ease-out;
}

.navbar-burger span:nth-child(1) {
  top: calc(50% - 8px);
}

.navbar-burger span:nth-child(2) {
  top: calc(50% - 1px);
}

.navbar-burger span:nth-child(3) {
  top: calc(50% + 6px);
}

.navbar-burger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-burger.is-active span:nth-child(2) {
  opacity: 0;
}

.navbar-burger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar-menu {
  display: flex;
  justify-content: flex-end;
}

.navbar-end {
  display: flex;
  align-items: center;
}

.navbar-item {
  margin-left: var(--space-4);
  font-family: var(--font-ui);
  text-decoration: none;
  color: var(--color-text);
}

.navbar-item:hover,
.navbar-link:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
  text-decoration-color: var(--color-link-underline-hover);
  text-underline-offset: 0.3em;
}

/* Navbar Dropdown */
.navbar-item.has-dropdown {
  position: relative;
  margin-left: var(--space-4);
}

.navbar-link {
  text-decoration: none;
  color: var(--color-text);
  cursor: pointer;
}

.navbar-link:hover {
  color: var(--color-link-hover);
}

.navbar-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  min-width: 180px;
  z-index: 20;
  padding: var(--space-2) 0;
}

.navbar-item.has-dropdown:hover .navbar-dropdown {
  display: block;
}

.navbar-dropdown .navbar-item {
  display: block;
  padding: var(--space-2) var(--space-4);
  margin: 0;
}

.navbar-dropdown .navbar-item:hover {
  background-color: var(--color-surface-muted);
}

@media screen and (max-width: 768px) {
  .navbar .container {
    flex-wrap: wrap;
  }

  .navbar-brand {
    width: 100%;
    justify-content: space-between;
  }

  .navbar-burger {
    display: block;
  }

  .navbar-logo-full {
    width: 266px;
  }

  .navbar-menu {
    display: none;
    width: 100%;
    margin-top: var(--space-4);
    background-color: var(--color-surface);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2);
    z-index: 10;
  }

  .navbar-menu.is-active {
    display: block;
  }

  .navbar-end {
    display: flex;
    flex-direction: column;
  }

  .navbar-item {
    margin: var(--space-3) 0;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border);
  }

  .navbar-item:last-child {
    border-bottom: none;
  }

  /* Mobile dropdown */
  .navbar-item.has-dropdown {
    margin-left: 0;
  }

  .navbar-dropdown {
    position: static;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 0 var(--space-4);
  }

  .navbar-item.has-dropdown:hover .navbar-dropdown,
  .navbar-menu.is-active .navbar-item.has-dropdown .navbar-dropdown {
    display: block;
  }

  .navbar-dropdown .navbar-item {
    border-bottom: none;
    padding: var(--space-1) 0;
    margin: var(--space-1) 0;
  }
}

/* Posts styling */
.posts-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
  margin: var(--space-6) 0;
  width: 100%;
}

.post-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-preview h2 {
  margin-top: 0;
  font-size: var(--text-h2);
}

.post-meta {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.post-excerpt {
  margin-bottom: var(--space-4);
}

.read-more {
  text-align: right;
  margin-top: auto;
  align-self: flex-end;
}

.post-full {
  max-width: 800px;
  margin: 0 auto;
}

.post-full .post-title {
  font-size: var(--text-h1);
  margin-bottom: var(--space-4);
}

.post-content {
  margin: var(--space-6) 0;
  line-height: var(--leading-relaxed);
}

.post-content img {
  max-width: 100%;
  height: auto;
  margin: var(--space-4) 0;
  border-radius: var(--radius-sm);
  display: block;
}

.post-content video {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
}

.post-sharing {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

.sharing-buttons {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

/* Footer */
.footer {
  background-color: var(--color-surface-muted);
  padding: var(--space-6) 0;
  margin-top: var(--space-6);
  flex-shrink: 0;
  width: 100%;
  overflow-x: hidden;
}

.footer-heading {
  color: var(--color-heading);
  margin: 0 0 var(--space-3);
}

/* Wide enough to clear the vertical lockup's 143px minimum artwork width. */
.footer-logo {
  display: block;
  width: 180px;
  height: auto;
  margin: var(--space-2) 0 var(--space-5);
}

/* Hero section */
.hero {
  position: relative;
  padding: var(--space-7) 0;
  text-align: center;
  margin-bottom: var(--space-4);
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-overlay); /* Black overlay with 50% opacity */
  z-index: 1;
}

.hero-body {
  padding: var(--space-6);
  position: relative;
  z-index: 2; /* Place content above the overlay */
}

.title {
  font-size: var(--text-h1);
  margin-bottom: var(--space-2);
}

.subtitle {
  font-size: var(--text-lead);
  font-weight: var(--weight-heading-strong);
}

.hero .title {
  font-size: var(--text-display);
  line-height: var(--leading-display);
  color: var(--color-on-dark);
}

.hero .subtitle {
  color: var(--color-on-dark-muted);
}

/* Cards */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-5);
  overflow: hidden;
}

.card-content {
  padding: var(--space-4);
  text-align: center;
}

.card-content h3 {
  margin: 0;
}

/* Columns */
.columns {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

.column {
  flex: 1;
  padding: var(--space-3);
  min-width: 250px;
}

/* Buttons */
.button {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  padding: var(--space-2) var(--space-4);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: var(--text-body);
  font-weight: var(--weight-ui-strong);
  margin-top: var(--space-4);
}

.button:hover {
  background-color: var(--color-primary-hover);
}

.button.is-primary {
  background-color: var(--color-primary);
}

.button.is-secondary {
  background-color: var(--color-surface);
  color: var(--color-heading);
  border: 1.5px solid var(--color-primary);
}

.button.is-small {
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-small);
}

.button.is-danger {
  background-color: var(--color-danger);
}

.button.is-primary:visited {
  color: var(--color-on-primary);
}

.button.is-secondary:visited {
  color: var(--color-heading);
}

/* Form elements */
.field {
  margin-bottom: var(--space-4);
}

.label {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-ui);
  font-weight: var(--weight-ui-strong);
}

.input, .textarea, select {
  width: 100%;
  padding: var(--space-2);
  font: inherit;
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
}

.textarea {
  min-height: 100px;
}

.checkbox {
  margin: 0;
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  accent-color: var(--color-primary);
}

/* Custom styling for select elements */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D2B36' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 1em;
  padding-right: 2.5rem;
}

.post-form-container, .rsvp-form-container {
  width: 100%;
  max-width: 800px;
}

.error-messages {
  color: var(--color-danger);
  margin-bottom: var(--space-5);
}

/* Section */
.section {
  padding: 0rem 0;
}

/* Content */
.content {
  line-height: var(--leading-body);
}

.content h1, .content h2, .content h3 {
  margin-top: var(--space-5);
  margin-bottom: var(--space-4);
}

.content p {
  margin-bottom: var(--space-4);
}

.content ul {
  margin-bottom: var(--space-4);
  padding-left: var(--space-5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .columns {
    flex-direction: column;
  }

  .column {
    width: 100%;
    flex-basis: 100%;
  }

  .container {
    width: 100%;
    padding: 0 var(--container-gutter-mobile);
  }

  .title {
    font-size: var(--text-h1);
  }

  .subtitle {
    font-size: var(--text-h3);
  }

  /* Fix for grid layouts on mobile */
  .posts-container {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  /* Ensure all content fits within viewport */
  main {
    width: 100%;
    overflow-x: hidden;
  }

  /* Ensure images don't overflow */
  img {
    max-width: 100%;
    height: auto;
  }
}

/* Photo Collage Styles */
.photo-collage {
  margin-bottom: var(--space-6);
}

.collage-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* About Page Photo Styles */
.about-photos {
  display: flex;
  flex-direction: column;
}

.about-image {
  width: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

/* Obituary Page Photo Styles */
.obituary-headshot {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}

/* Foundation Page Photo Styles */
.foundation-image {
  width: 100%;
  border-radius: var(--radius-sm);
}

.pledge-button-container {
  text-align: center;
  margin: var(--space-5) 0;
}

/* Calendar Options Styles */
.calendar-options {
  margin-top: 10px;
}

.calendar-dropdown {
  display: inline-block;
}

.calendar-summary {
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: var(--text-small);
  font-weight: var(--weight-regular);
  padding: 3px 8px;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  background-color: var(--color-surface-muted);
  transition: all 0.2s ease;
}

.calendar-summary:hover {
  background-color: var(--color-border);
  color: var(--color-text);
}

.calendar-links {
  margin-top: 6px;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  background-color: var(--color-surface-muted);
  font-size: var(--text-small);
  box-shadow: var(--shadow-sm);
}

.calendar-links a {
  display: block;
  text-decoration: none;
  color: var(--color-text-muted);
  padding: 4px 0;
}

.calendar-links a:hover {
  color: var(--color-link-hover);
}

/* RSVP Call-to-Action Styles */
.rsvp-cta, .event-details {
  max-width: 800px;
  margin: var(--space-6) 0;
  /* margin: 2rem auto; */
  /* text-align: center; */
  padding: var(--space-5);
  background-color: var(--color-surface-muted);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-accent);
}

.rsvp-cta h3 {
  margin-top: 0;
  /* color: #305075; */
}

.rsvp-cta .button {
  font-size: var(--text-lead);
  padding: var(--space-3) var(--space-6);
}

/* RSVP Table Styles */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-4);
}

.table.is-striped tr:nth-child(even) {
  background-color: var(--color-surface-muted);
}

.table th, .table td {
  padding: var(--space-3);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.table th {
  font-weight: var(--weight-body-strong);
  background-color: var(--color-surface-muted);
}

/* Tag styles for RSVP status */
.tag {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: var(--text-small);
  font-weight: var(--weight-ui-strong);
}

.tag.is-success {
  background-color: var(--color-success-bg);
  color: var(--color-on-dark);
}

.tag.is-warning {
  background-color: var(--color-warning-strong);
  color: var(--color-text);
}

.tag.is-danger {
  background-color: var(--color-danger);
  color: var(--color-on-dark);
}

/* Pagination styles */
.pagination-controls {
  margin-top: 2.5rem;
  margin-bottom: var(--space-5);
  display: flex;
  justify-content: center;
}

.pagination {
  display: flex;
  align-items: center;
  padding: var(--space-3);
}

.pagination {
  .first,
  .last,
  .prev,
  .next,
  .page {
    padding: 0.6rem var(--space-1);
    text-decoration: none;
    color: var(--color-heading);
    font-weight: var(--weight-body-strong);
    transition: all 0.2s ease;
  }

  .first:hover,
  .last:hover,
  .prev:hover,
  .next:hover,
  .page:hover {
    background-color: var(--color-border);
    border-color: var(--color-border-strong);
  }

  .current {
    font-weight: var(--weight-body-strong);
  }
}

.mt-4 {
  margin-top: var(--space-4);
}

/* Ash Location Form */
.ash-location-form-container {
  width: 100%;
  max-width: 800px;
}

.coordinates-section {
  margin: var(--space-5) 0;
  padding: var(--space-5);
  background-color: var(--color-surface-muted);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--color-accent);
}

.coordinates-section .section-title {
  margin-top: 0;
  font-size: var(--text-lead);
  color: var(--color-heading);
}

.coordinates-help {
  margin: var(--space-4) 0;
  padding: var(--space-3);
  background-color: var(--color-surface);
  border-radius: var(--radius-sm);
}

.coordinates-help summary {
  cursor: pointer;
  color: var(--color-text-muted);
  font-weight: var(--weight-body-strong);
  user-select: none;
  padding: var(--space-2);
}

.coordinates-help summary:hover {
  color: var(--color-heading);
}

.coordinates-instructions {
  padding: var(--space-4);
  color: var(--color-text);
}

.coordinates-instructions ol {
  margin-left: var(--space-5);
  margin-bottom: var(--space-4);
}

.coordinates-instructions p {
  margin-bottom: var(--space-2);
}

.help-text {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.error-messages {
  color: var(--color-danger);
  background-color: var(--color-danger-bg);
  border: 1px solid var(--color-danger);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
}

.error-messages h2 {
  font-size: var(--text-body);
  margin-bottom: var(--space-2);
}

.error-messages ul {
  margin-left: var(--space-5);
}

.submission-method-selector {
  margin: var(--space-5) 0;
  padding: var(--space-5);
  background-color: var(--color-surface-muted);
  border-radius: var(--radius-sm);
}

.submission-method-selector .label {
  font-size: var(--text-lead);
  margin-bottom: var(--space-4);
}

.method-options {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.method-option {
  flex: 1;
  min-width: 200px;
  padding: var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-surface);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.method-option:hover {
  border-color: var(--color-primary);
  background-color: var(--color-surface-muted);
}

.method-option input[type="radio"] {
  margin: 0;
  cursor: pointer;
}

.method-option input[type="radio"]:checked + span {
  font-weight: var(--weight-body-strong);
  color: var(--color-heading);
}

.method-option span {
  font-size: var(--text-body);
}

.conditional-section {
  margin-top: var(--space-5);
}

.publish-section {
  margin: var(--space-5) 0;
  padding: var(--space-5);
  background-color: var(--color-surface-muted);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--color-accent);
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.unpublished-locations-section {
  margin: var(--space-6) 0;
  padding: var(--space-5);
  background-color: var(--color-warning-bg);
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-warning);
}

.unpublished-locations-section .section-title {
  margin-top: 0;
  color: var(--color-text);
  font-size: var(--text-h3);
}

.unpublished-locations-list {
  margin-top: var(--space-4);
}

.unpublished-location-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  border: 1px solid var(--color-border);
}

.unpublished-location-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.unpublished-location-card .card-header h3 {
  margin: 0;
  font-size: var(--text-lead);
  color: var(--color-heading);
}

.unpublished-location-card .card-details {
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

.unpublished-location-card .card-details p {
  margin: var(--space-1) 0;
}

.unpublished-location-card .meta {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  margin-top: var(--space-2);
}

/* Location Type Selector (Choice Page) */
.location-type-selector {
  max-width: 1000px;
  margin: var(--space-6) auto;
}

.location-type-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.location-type-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.location-type-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.location-type-card.primary-option {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-muted) 100%);
}

.location-type-card.primary-option:hover {
  background: linear-gradient(135deg, var(--color-surface-muted) 0%, var(--color-border) 100%);
}

.location-type-card .card-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
}

.location-type-card h2 {
  margin: 0 0 var(--space-3) 0;
  color: var(--color-heading);
  font-size: var(--text-h2);
}

.location-type-card .card-description {
  color: var(--color-text-muted);
  font-size: var(--text-body);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.location-type-card .card-features {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

.location-type-card .card-features li {
  padding: var(--space-2) 0;
  padding-left: var(--space-5);
  position: relative;
}

.location-type-card .card-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-heading);
  font-weight: var(--weight-body-strong);
}

.location-type-card .card-cta {
  margin-top: var(--space-4);
  color: var(--color-heading);
  font-weight: var(--weight-body-strong);
  font-size: var(--text-lead);
  text-align: center;
  padding: var(--space-3);
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  border-radius: var(--radius-sm);
}

.location-type-card:hover .card-cta {
  background: color-mix(in srgb, var(--color-primary) 20%, transparent);
}

/* Bulk Upload Form */
.bulk-upload-container {
  max-width: 700px;
  margin: 0 auto;
}

.bulk-upload-form {
  background: var(--color-surface);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.upload-zone {
  border: 3px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6);
  text-align: center;
  background: var(--color-surface-muted);
  transition: all 0.3s ease;
  margin-bottom: var(--space-6);
}

.upload-zone:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-muted);
}

.upload-zone .upload-icon {
  font-size: 4rem;
  margin-bottom: var(--space-4);
}

.upload-zone h3 {
  margin: 0 0 var(--space-2) 0;
  color: var(--color-heading);
  font-size: var(--text-h2);
}

.upload-zone .upload-instructions {
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

.bulk-file-input {
  display: none;
}

.file-label {
  display: inline-block;
}

.file-cta {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: var(--weight-body-strong);
  transition: background 0.3s ease;
}

.file-cta:hover {
  background: var(--color-primary-hover);
}

.file-count {
  margin-top: var(--space-4);
  color: var(--color-heading);
  font-weight: var(--weight-body-strong);
  font-size: var(--text-lead);
  display: none;
}

.bulk-upload-info {
  background: var(--color-surface-muted);
  border-left: 4px solid var(--color-accent);
  padding: var(--space-5);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-6);
}

.bulk-upload-info h4 {
  margin-top: 0;
  color: var(--color-heading);
}

.bulk-upload-info ol {
  margin: 0;
  padding-left: var(--space-5);
}

.bulk-upload-info li {
  margin: var(--space-2) 0;
  color: var(--color-text-muted);
}

.button.is-large {
  font-size: var(--text-lead);
  padding: var(--space-4) var(--space-6);
}

@media (max-width: 768px) {
  .location-type-cards {
    grid-template-columns: 1fr;
  }
}

/* Lightbox Modal Styles */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-backdrop);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.lightbox-overlay.is-active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--color-on-dark);
  font-size: 40px;
  font-weight: var(--weight-body-strong);
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10000;
  user-select: none;
}

.lightbox-close:hover {
  color: var(--color-on-dark-muted);
}

@media (max-width: 768px) {
  .lightbox-content {
    max-width: 95%;
    max-height: 95%;
  }

  .lightbox-close {
    top: 10px;
    right: 15px;
    font-size: 35px;
  }
}

/* Ash Location Show Page */
.ash-location-show-container {
  max-width: 900px;
  margin: 0 auto;
}

.location-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.location-header .title {
  margin: 0;
  flex: 1;
}

.spread-date-display {
  color: var(--color-text-muted);
  font-size: var(--text-lead);
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background-color: var(--color-surface-muted);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--color-accent);
}

.location-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.location-photos a {
  display: block;
  text-decoration: none;
}

.location-photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-md);
}

.location-photo:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.location-description {
  margin-bottom: var(--space-6);
  padding: var(--space-5);
  background-color: var(--color-surface-muted);
  border-radius: var(--radius-lg);
}

.location-description h3 {
  margin-top: 0;
  color: var(--color-heading);
}

.location-description p {
  line-height: var(--leading-relaxed);
  color: var(--color-text);
}

.location-coordinates {
  margin-bottom: var(--space-6);
  padding: var(--space-5);
  background-color: var(--color-surface-muted);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-accent);
}

.location-coordinates h3 {
  margin-top: 0;
  color: var(--color-heading);
}

.location-coordinates a {
  color: var(--color-heading);
  text-decoration: none;
  font-weight: var(--weight-body-strong);
}

.location-coordinates a:hover {
  text-decoration: underline;
}

.location-actions {
  margin: var(--space-6) 0;
}

@media (max-width: 768px) {
  .location-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .location-photos {
    grid-template-columns: 1fr;
  }
}

/* Ski for Dave */
.ski-creed {
  background-color: var(--color-surface-muted);
  padding: var(--space-7) var(--space-5);
  text-align: center;
}

.ski-creed-heading {
  margin: 0 0 var(--space-6);
}

.ski-creed-emblem {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 0 auto;
}

.ski-creed-text {
  max-width: 700px;
  margin: 0 auto;
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-quote);
  line-height: var(--leading-relaxed);
  color: var(--color-heading);
}

@media (max-width: 768px) {
  .ski-creed {
    padding: var(--space-6) var(--space-4);
  }

  .ski-creed-heading {
    margin-bottom: var(--space-5);
  }

  .ski-creed-emblem {
    max-width: 240px;
  }

  .ski-creed-text {
    font-size: var(--text-lead);
    line-height: var(--leading-relaxed);
  }
}

/* Board Members */
.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.board-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-6) var(--space-5);
  text-align: center;
}

.board-card-name {
  font-family: var(--font-heading);
  font-size: var(--text-lead);
  font-weight: var(--weight-heading-strong);
  color: var(--color-heading);
  margin-bottom: var(--space-1);
}

.board-card-role {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  font-style: italic;
}

@media (max-width: 768px) {
  .board-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}
