/* DorfSociety / dorfgeschichten.com - Warm Editorial Country Design System */

/* Missing local font binaries: use system fonts. */

:root {
  --color-cream: #fcf7ef;
  --color-dark: #49392e;
  --color-heading: #704632;
  --color-terracotta: #a65f43;
  --color-terracotta-dark: #8c4c34;
  --color-sand: #f1ddc6;
  --color-sand-soft: #f3dfb9;
  --color-card: #fffdf9;
  --color-border: #e7d8c6;
  --color-border-subtle: #efe3d4;
  --color-muted: #806b59;
}

body {
  background-color: var(--color-cream);
  color: var(--color-dark);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Serif Font Class */
.font-serif {
  font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
}

/* Hide scrollbar */
.no-scrollbar::-webkit-scrollbar,
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.no-scrollbar,
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Hero Section Smooth Collapse / Expand Transition */
.hero-transition-wrap {
  max-height: 1000px;
  opacity: 1;
  transform: translateY(0);
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-transition-wrap.is-collapsed {
  max-height: 0 !important;
  opacity: 0 !important;
  transform: translateY(-20px);
  pointer-events: none;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Discovery Layout Transition */
.discovery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 900px) {
  .discovery-layout.is-results {
    grid-template-columns: 310px minmax(0, 1fr);
  }
  .discovery-layout.is-results .search-sidebar {
    position: sticky;
    top: 24px;
  }
}

@media (max-width: 899px) {
  .discovery-layout.is-results {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

/* Event Card Warm Style */
.event-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  position: relative;
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 22px;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -12px rgba(100, 60, 30, 0.16), 0 4px 12px -2px rgba(100, 60, 30, 0.06);
  border-color: #d8c2ad;
}

/* Skeleton Loading Shimmer in Warm Cream */
@keyframes shimmerWarm {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-shimmer {
  background: linear-gradient(90deg, #f7efe4 25%, #ebdcc9 50%, #f7efe4 75%);
  background-size: 200% 100%;
  animation: shimmerWarm 1.6s infinite ease-in-out;
}

/* Leaflet Custom Marker Icons in Warm Palette */
.custom-event-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fffdf9;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(73, 57, 46, 0.35);
  border: 2.5px solid #fffdf9;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  background: linear-gradient(135deg, #a65f43, #704632);
}

.custom-event-marker:hover {
  transform: scale(1.18);
  box-shadow: 0 8px 20px rgba(73, 57, 46, 0.45);
}

.marker-festival {
  background: linear-gradient(135deg, #a65f43, #8c4c34);
}

.marker-music, .marker-concert {
  background: linear-gradient(135deg, #945339, #683b27);
}

.marker-sport, .marker-tournament {
  background: linear-gradient(135deg, #5b7553, #3f5439);
}

.marker-market {
  background: linear-gradient(135deg, #b8860b, #8b6508);
}

.marker-culture {
  background: linear-gradient(135deg, #815b7e, #5c3b5a);
}

.marker-kids {
  background: linear-gradient(135deg, #d97736, #a8521a);
}

.marker-culinary {
  background: linear-gradient(135deg, #a0522d, #72381e);
}

/* Leaflet Popup Styling */
.leaflet-popup-content-wrapper {
  background-color: #fffdf9;
  color: #49392e;
  border-radius: 18px;
  padding: 6px;
  box-shadow: 0 20px 30px -10px rgba(100, 60, 30, 0.2), 0 8px 16px -4px rgba(100, 60, 30, 0.08);
  border: 1px solid #e7d8c6;
}

.leaflet-popup-content {
  margin: 10px 14px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.45;
}

.leaflet-popup-tip {
  background-color: #fffdf9;
  box-shadow: 0 4px 6px -1px rgba(100, 60, 30, 0.12);
}

/* Range Slider Custom Styling */
input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #a65f43;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(166, 95, 67, 0.45);
  transition: transform 0.1s ease, background-color 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: #8c4c34;
}

/* Category Pills Styling */
.cat-pill {
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-pill.active {
  background-color: #f1ddc6 !important;
  color: #704632 !important;
  font-weight: 600;
  box-shadow: 0 2px 8px -2px rgba(112, 70, 50, 0.18);
}
