/* Hidden Austria — Directory Website
   Brand: #085041 (dark), #1D9E75 (accent), #E1F5EE (light bg)
   Fonts: Georgia (headings), Arial (body)
*/

:root {
  --brand-dark: #085041;
  --brand-accent: #1D9E75;
  --brand-light: #E1F5EE;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.2;
}

a { color: var(--brand-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-dark); }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADER / NAV ===== */
.site-header {
  background: var(--brand-dark);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
}

.logo {
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span { color: var(--brand-accent); }

.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }

.nav-toggle { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(160deg, var(--brand-dark) 0%, #0a6b56 50%, var(--brand-accent) 100%);
  color: var(--white);
  padding: 80px 24px 60px;
  text-align: center;
}

.hero h1 { font-size: 3rem; margin-bottom: 16px; }
.hero p { font-size: 1.2rem; opacity: 0.9; max-width: 600px; margin: 0 auto 32px; }

/* ===== SEARCH BAR ===== */
.search-bar {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  font-size: 1.05rem;
  border: none;
  border-radius: 50px;
  background: var(--white);
  color: var(--gray-900);
  box-shadow: var(--shadow-lg);
  outline: none;
}

.search-bar input::placeholder { color: var(--gray-500); }

.search-bar .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--gray-500);
  pointer-events: none;
}

/* ===== FILTERS ===== */
.filter-section {
  background: var(--brand-light);
  padding: 24px;
  border-bottom: 1px solid var(--gray-200);
}

.filter-row {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-row label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand-dark);
  margin-right: 4px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border: 2px solid var(--brand-accent);
  border-radius: 50px;
  background: var(--white);
  color: var(--brand-dark);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-btn:hover { background: var(--brand-accent); color: var(--white); }
.filter-btn.active { background: var(--brand-accent); color: var(--white); }

.filter-btn .emoji { font-size: 1rem; }

.filter-divider {
  width: 1px;
  height: 28px;
  background: var(--gray-300);
  margin: 0 8px;
}

.view-toggle { display: flex; gap: 4px; margin-left: auto; }
.view-toggle button {
  padding: 8px 12px;
  border: 2px solid var(--gray-300);
  background: var(--white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}
.view-toggle button.active {
  border-color: var(--brand-accent);
  background: var(--brand-accent);
  color: var(--white);
}

/* ===== RESULT COUNT ===== */
.results-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* ===== ENTRY GRID ===== */
.entries-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.entry-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.entry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.entry-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--gray-100);
}

.entry-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.entry-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
  color: var(--brand-dark);
}

.entry-card-region {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.entry-card-desc {
  font-size: 0.92rem;
  color: var(--gray-700);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.entry-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--brand-light);
  color: var(--brand-dark);
}

.entry-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-top: 1px solid var(--gray-100);
}

.entry-card-meta { font-size: 0.8rem; color: var(--gray-500); display: flex; gap: 12px; }
.entry-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-accent);
}

/* ===== MAP VIEW ===== */
.map-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: none;
}

.map-container.active { display: block; }

#map {
  width: 100%;
  height: 500px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

/* ===== DETAIL PAGE ===== */
.detail-hero {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 40px 24px 24px;
  color: var(--white);
}

.detail-hero-overlay h1 { font-size: 2.4rem; margin-bottom: 4px; }
.detail-hero-overlay .region { font-size: 1.1rem; opacity: 0.85; }

.detail-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
}

.detail-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.detail-badges .tag { font-size: 0.85rem; padding: 6px 14px; }

.detail-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 32px;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.detail-info-card {
  background: var(--brand-light);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.detail-info-card .label { font-size: 0.8rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; }
.detail-info-card .value { font-size: 1rem; font-weight: 600; color: var(--brand-dark); margin-top: 4px; }

.detail-flags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.detail-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}
.detail-flag.yes { background: #d1fae5; color: #065f46; }
.detail-flag.no { background: var(--gray-100); color: var(--gray-500); text-decoration: line-through; }

#detail-map {
  width: 100%;
  height: 300px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.detail-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary { background: var(--brand-accent); color: var(--white); }
.btn-primary:hover { background: var(--brand-dark); color: var(--white); }
.btn-outline { background: var(--white); color: var(--brand-dark); border: 2px solid var(--brand-dark); }
.btn-outline:hover { background: var(--brand-dark); color: var(--white); }

.breadcrumb {
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.9rem;
  color: var(--gray-500);
}

.breadcrumb a { color: var(--brand-accent); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,0.7);
  padding: 40px 24px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo { font-family: Georgia, serif; font-size: 1.2rem; color: var(--white); font-weight: 700; }
.footer-logo span { color: var(--brand-accent); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }

/* ===== NO RESULTS ===== */
.no-results {
  text-align: center;
  padding: 60px 24px;
  color: var(--gray-500);
}
.no-results h3 { color: var(--gray-700); margin-bottom: 8px; }

/* ===== PHOTO CREDIT ===== */
.photo-credit {
  font-size: 0.75rem;
  color: var(--gray-500);
  padding: 4px 20px;
  text-align: right;
}

/* ===== LOADING SKELETON ===== */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero { padding: 60px 16px 40px; }

  .header-inner { padding: 0 16px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--brand-dark); padding: 16px 24px; gap: 12px; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .filter-row { gap: 6px; }
  .filter-btn { padding: 6px 12px; font-size: 0.8rem; }
  .filter-divider { display: none; }

  .entries-grid { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .entry-card-img { height: 180px; }

  .detail-hero { height: 280px; }
  .detail-hero-overlay h1 { font-size: 1.6rem; }
  .detail-content { padding: 24px 16px; }

  #map { height: 350px; }
  .map-container { padding: 16px; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .search-bar input { padding: 12px 16px 12px 44px; font-size: 0.95rem; }
  .entries-grid { grid-template-columns: 1fr; }
  .view-toggle { display: none; }
}

/* Leaflet popup custom */
.leaflet-popup-content { font-family: Arial, sans-serif; }
.leaflet-popup-content h4 { font-family: Georgia, serif; color: var(--brand-dark); margin-bottom: 4px; }
.leaflet-popup-content p { font-size: 0.85rem; color: var(--gray-700); margin: 0; }
.leaflet-popup-content a { color: var(--brand-accent); font-weight: 600; }

/* Smooth transitions for view switches */
.entries-grid, .map-container { transition: opacity 0.3s ease; }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-accent);
  color: var(--white);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateY(10px);
  z-index: 100;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
