/**
 * Destination Opening Hours - Frontend Styles (Premium Båstad & Visit Stockholm-inspired)
 */

:root {
  --doh-primary: #b89a5b;
  --doh-dark: #0a2540;
  --doh-open: #2e7d32;
  --doh-closed: #c63e3e;
  --doh-seasonal: #b89a5b;
  --doh-bg-card: #ffffff;
  --doh-border-color: rgba(0, 0, 0, 0.08);
  --doh-text-main: #111827;
  --doh-text-muted: #6b7280;
  --doh-radius-card: 22px;
  --doh-radius-pill: 9999px;
  --doh-shadow-card: 0 14px 40px rgba(0, 0, 0, 0.12);
  --doh-shadow-hover: 0 18px 50px rgba(0, 0, 0, 0.18);
}

/* ==========================================
   HEADER "ÖPPET 🕒" CTA BUTTON (Båstad style)
   ========================================== */
.doh-header-cta-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--doh-radius-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  background: rgba(10, 37, 64, 0.65);
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
  vertical-align: middle;
}

.doh-header-cta-btn:hover {
  background: #ffffff;
  color: #0a2540 !important;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.doh-header-cta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--doh-open);
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.4);
  animation: doh-pulse 2s infinite;
  display: inline-block;
}

.doh-header-clock-icon {
  margin-left: 2px;
  opacity: 0.9;
}

/* Floating Quick-Access Badge on all pages */
.doh-floating-quick-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #0a2540;
  color: #ffffff !important;
  padding: 12px 22px;
  border-radius: var(--doh-radius-pill);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-decoration: none !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doh-floating-quick-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  background: #11385f;
}

/* ==========================================
   HERO BANNER (Visit Stockholm / Båstad style)
   ========================================== */
.doh-hero-banner {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  min-height: 520px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding: 80px 24px;
  box-sizing: border-box;
  margin-top: -30px;
  margin-bottom: 50px;
}

.doh-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 37, 64, 0.55) 0%, rgba(10, 37, 64, 0.8) 100%);
  backdrop-filter: blur(1px);
}

.doh-hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  text-align: center;
  margin: 0 auto;
}

.doh-hero-tagline {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--doh-primary);
  margin-bottom: 16px;
}

.doh-hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff !important;
  margin: 0 0 20px 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.doh-hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9) !important;
  margin: 0 auto 36px auto;
  max-width: 680px;
}

.doh-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.doh-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--doh-radius-pill);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.25s ease;
  cursor: pointer;
}

.doh-hero-btn-primary {
  background: var(--doh-primary);
  color: #ffffff !important;
  box-shadow: 0 10px 25px rgba(184, 154, 91, 0.4);
}

.doh-hero-btn-primary:hover {
  background: #a08447;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(184, 154, 91, 0.55);
}

.doh-hero-btn-glass {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

.doh-hero-btn-glass:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.doh-pulse-dot-white {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

/* ==========================================
   CATEGORY SHOWCASE CARDS (Large Image Tiles)
   ========================================== */
.doh-categories-showcase {
  margin: 60px 0;
}

.doh-section-header {
  text-align: center;
  margin-bottom: 35px;
}

.doh-section-tagline {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--doh-primary);
  display: block;
  margin-bottom: 8px;
}

.doh-section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--doh-text-main);
  margin: 0;
}

.doh-category-grid-large {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.doh-category-card-large {
  position: relative;
  border-radius: var(--doh-radius-card);
  overflow: hidden;
  height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  text-decoration: none !important;
  color: #ffffff !important;
  box-shadow: var(--doh-shadow-card);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-sizing: border-box;
}

.doh-category-card-large:hover {
  transform: translateY(-6px);
  box-shadow: var(--doh-shadow-hover);
}

.doh-cat-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.doh-category-card-large:hover .doh-cat-bg-img {
  transform: scale(1.08);
}

.doh-cat-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.9) 100%);
}

.doh-cat-content {
  position: relative;
  z-index: 2;
}

.doh-cat-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: var(--doh-radius-pill);
  margin-bottom: 10px;
}

.doh-cat-title {
  font-size: 1.65rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: #ffffff !important;
}

.doh-cat-desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 14px 0;
  line-height: 1.45;
}

.doh-cat-link-text {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--doh-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================
   OVERVIEW DIRECTORY & FILTERS
   ========================================== */
.doh-overview-wrapper {
  margin: 20px 0 40px;
  width: 100%;
  box-sizing: border-box;
}

.doh-filters-section {
  display: flex;
  gap: 20px;
  margin: 0 0 30px;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
}

.doh-search-group {
  flex: 1;
  min-width: 260px;
}

.doh-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.doh-search-icon {
  position: absolute;
  left: 16px;
  font-size: 15px;
  opacity: 0.55;
  pointer-events: none;
}

.doh-search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border-radius: 14px;
  border: 1px solid var(--doh-border-color);
  background: #ffffff;
  font-size: 15px;
  color: #111;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  outline: none;
  box-sizing: border-box;
}

.doh-search-input:focus {
  border-color: var(--doh-primary);
  box-shadow: 0 4px 15px rgba(184, 154, 91, 0.18);
}

.doh-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doh-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin-left: 4px;
}

.doh-category-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.doh-category-pill {
  padding: 9px 20px;
  border-radius: 12px;
  border: 1px solid var(--doh-border-color);
  background: #ffffff;
  font-size: 14px;
  font-weight: 600;
  color: #444;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.doh-category-pill:hover {
  background: #fff;
  border-color: var(--doh-primary);
  color: var(--doh-primary);
  box-shadow: 0 4px 12px rgba(184, 154, 91, 0.15);
  transform: translateY(-1px);
}

.doh-category-pill.active {
  background: var(--doh-primary);
  border-color: var(--doh-primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(184, 154, 91, 0.25);
}

/* Toggle Switch */
.doh-toggle-group {
  display: flex;
  align-items: center;
}

.doh-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--doh-border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  font-weight: 600;
  color: #444;
  transition: all 0.2s ease;
}

.doh-toggle:hover {
  border-color: var(--doh-primary);
}

.doh-toggle input {
  display: none;
}

.doh-slider {
  width: 38px;
  height: 22px;
  background: #e2e8f0;
  border-radius: 999px;
  position: relative;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.doh-slider::after {
  content: "";
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.doh-toggle input:checked + .doh-slider {
  background: var(--doh-primary);
}

.doh-toggle input:checked + .doh-slider::after {
  transform: translateX(16px);
}

/* ==========================================
   MAIN CONTENT (Grid + Map Split Layout)
   ========================================== */
.doh-main-content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  width: 100%;
}

.doh-has-map .doh-main-content-layout {
  grid-template-columns: 1.4fr 1fr;
}

@media (max-width: 1024px) {
  .doh-has-map .doh-main-content-layout {
    grid-template-columns: 1fr;
  }
}

.doh-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* ==========================================
   PREMIUM CARD (Österlen Photo Style)
   ========================================== */
.doh-card {
  position: relative;
  display: block;
  text-decoration: none !important;
  color: inherit;
  border-radius: var(--doh-radius-card);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #111827;
  box-shadow: var(--doh-shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-sizing: border-box;
}

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

.doh-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.doh-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  display: block;
}

.doh-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.doh-card:hover .doh-card-image img {
  transform: scale(1.05);
}

.doh-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0) 100%);
  box-sizing: border-box;
}

.doh-card-content {
  width: 100%;
}

.doh-card-name {
  margin: 0 0 10px 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff !important;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.doh-card-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.doh-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--doh-radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.doh-card-badge.doh-badge--open {
  background: rgba(46, 125, 50, 0.85);
}

.doh-card-badge.doh-badge--closed {
  background: rgba(198, 62, 62, 0.85);
}

.doh-card-badge.doh-badge--season {
  background: rgba(184, 154, 91, 0.85);
}

.doh-card-badge.doh-badge--app {
  background: rgba(90, 90, 90, 0.85);
}

.doh-card-badge.doh-badge--booking {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.doh-card-badge.doh-badge--event {
  background: rgba(184, 154, 91, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.doh-sub-pill {
  opacity: 0.9;
  font-weight: 500;
}

/* ==========================================
   INTERACTIVE LEAFLET MAP
   ========================================== */
.doh-map-wrapper {
  position: sticky;
  top: 30px;
  border-radius: var(--doh-radius-card);
  overflow: hidden;
  box-shadow: var(--doh-shadow-card);
  border: 1px solid var(--doh-border-color);
  height: calc(100vh - 120px);
  min-height: 480px;
  background: #e5e7eb;
}

.doh-map-container {
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Custom Marker Pins */
.doh-marker-pin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.doh-marker-pin:hover {
  transform: scale(1.35);
  z-index: 9999 !important;
}

.doh-pin-open { background-color: var(--doh-open); }
.doh-pin-closed { background-color: var(--doh-closed); }
.doh-pin-season { background-color: var(--doh-seasonal); }

/* Map Popups */
.doh-map-popup .leaflet-popup-content-wrapper {
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.doh-map-popup .leaflet-popup-content {
  margin: 0;
  line-height: 1.4;
}

.doh-popup-card {
  display: block;
  text-decoration: none !important;
  color: #111;
  min-width: 200px;
  max-width: 240px;
}

.doh-popup-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.doh-popup-body {
  padding: 10px 14px 12px;
}

.doh-popup-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 4px 0;
}

.doh-popup-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #666;
}

@keyframes doh-pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(46, 125, 50, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0); }
}

/* ==========================================
   OPENING HOURS WIDGET & BADGES
   ========================================== */
.doh-badge-wrapper {
  display: inline-flex;
  align-items: center;
}

.doh-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.doh-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

/* Open State */
.doh-badge.doh-open,
.doh-badge.doh-open--status,
.doh-badge--open {
  background-color: #ecfdf5 !important;
  color: #065f46 !important;
  border: 1px solid #a7f3d0 !important;
}
.doh-badge.doh-open .doh-badge-dot,
.doh-badge.doh-open--status .doh-badge-dot,
.doh-badge--open .doh-badge-dot {
  background-color: #10b981 !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.4);
  animation: doh-pulse 2s infinite;
}

/* Closed State */
.doh-badge.doh-closed,
.doh-badge.doh-closed--status,
.doh-badge--closed {
  background-color: #fef2f2 !important;
  color: #991b1b !important;
  border: 1px solid #fecaca !important;
}
.doh-badge.doh-closed .doh-badge-dot,
.doh-badge.doh-closed--status .doh-badge-dot,
.doh-badge--closed .doh-badge-dot {
  background-color: #ef4444 !important;
}

/* Seasonal State */
.doh-badge.doh-seasonal,
.doh-badge--season {
  background-color: #fffbeb !important;
  color: #92400e !important;
  border: 1px solid #fde68a !important;
}
.doh-badge.doh-seasonal .doh-badge-dot,
.doh-badge--season .doh-badge-dot {
  background-color: #f59e0b !important;
}

/* Table styling */
.doh-hours-widget {
  width: 100%;
}

.doh-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.doh-widget-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0a2540;
  margin: 0;
}

.doh-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
  margin: 0;
}

.doh-table-row {
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
}

.doh-table-row:last-child {
  border-bottom: none;
}

.doh-table-row td {
  padding: 10px 12px;
  vertical-align: middle;
  border: none;
}

.doh-day-name {
  font-weight: 600;
  color: #334155;
  text-align: left;
}

.doh-day-hours {
  text-align: right;
  font-weight: 700;
  color: #0a2540;
  white-space: nowrap;
}

/* Highlight today's row */
.doh-table-row.doh-is-today {
  background-color: #f8fafc;
  border-radius: 10px;
}

.doh-table-row.doh-is-today .doh-day-name {
  font-weight: 800;
  color: #0a2540;
}

.doh-table-row.doh-is-today .doh-day-hours {
  font-weight: 800;
  color: #b89a5b;
}

.doh-today-tag {
  background: #b89a5b;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.2;
  margin-left: 6px;
  display: inline-block;
  vertical-align: middle;
}

.doh-table-row.doh-is-closed .doh-day-hours {
  color: #94a3b8;
  font-weight: 500;
}

