/* ==========================================================================
   MUSEUM OF TRAVELS — Turkey Map Edition
   Design: Ferah Açık Tema • Sulu Boya Yıldızlı Gece • Vitray Altın Çerçeveler
   ========================================================================== */

/* Google Fonts — HTTP for iPad 2 / iOS 9 SSL compatibility */
@import url('http://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Montserrat:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&display=swap');

/* ===================== DESIGN TOKENS ===================== */
:root {
  --bg-parchment:    #faf5ec;
  --bg-cream:        #f5ede0;
  --bg-linen:        #ede3d4;
  --bg-sand:         #e2d5c0;
  --card-white:      #ffffff;
  --text-dark:       #2a2118;
  --text-mid:        #5a4e3e;
  --text-muted:      #9a8c7b;

  --gold:            #c9933a;
  --gold-light:      #ddb86a;
  --gold-pale:       #f0d9a8;
  --gold-dark:       #8a5e12;

  --green-visited:   #4ade80;
  --green-border:    #16a34a;

  --font-serif:      'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-sans:       'Montserrat', -apple-system, sans-serif;

  --shadow-soft:     0 8px 30px rgba(90,60,20,0.10);
  --shadow-card:     0 16px 48px rgba(90,60,20,0.13);
  --shadow-gold:     0 8px 32px rgba(201,147,58,0.22);

  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===================== RESET & BASE ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Marker pulse animation (used inline in turkey-map.js) */
@keyframes mPulse {
  0%, 100% { transform: scale(1);   opacity: 0.9; }
  50%       { transform: scale(1.5); opacity: 0.35; }
}

/* Leaflet tooltip reset — we use inline styling */
.leaflet-tooltip-nodefault {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Museum popup Leaflet overrides */
.museum-popup .leaflet-popup-content-wrapper {
  background: #faf5ec;
  border-radius: 16px;
  border: 1px solid rgba(201,147,58,0.3);
  box-shadow: 0 16px 48px rgba(90,60,20,0.13);
  padding: 0;
  overflow: hidden;
}
.museum-popup .leaflet-popup-content { margin: 0; }
.museum-popup .leaflet-popup-tip { background: #faf5ec; }

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #faf5ec;
  color: #2a2118;
  font-family: 'Montserrat', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ===================== APP SHELL ===================== */
#museum-app {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(240,217,168,0.55) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(201,147,58,0.12) 0%, transparent 50%),
    linear-gradient(160deg, #faf5ec 0%, #f0e6d2 60%, #e8d9c0 100%);
}

/* ===================== HEADER ===================== */
.museum-header {
  position: relative;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 48px;
  height: 72px;
  background: rgba(250,245,236,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,147,58,0.28);
  box-shadow: 0 2px 20px rgba(90,60,20,0.06);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-monogram {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9933a 0%, #8a5e12 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  color: #fff;
  box-shadow: 0 8px 32px rgba(201,147,58,0.22);
  flex-shrink: 0;
}

.brand-titles h1 {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #2a2118;
  line-height: 1;
}

.brand-titles p {
  font-size: 10px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: #c9933a;
  margin-top: 3px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* City Counter Badge (sağ üst) */
#city-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #c9933a 0%, #a6721a 100%);
  color: #fff;
  border-radius: 22px;
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: 13px;
  box-shadow: 0 8px 32px rgba(201,147,58,0.22);
  letter-spacing: 1px;
  white-space: nowrap;
}

#city-counter-badge .counter-num {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
#city-counter-badge .counter-sep { font-size: 16px; opacity: 0.7; margin: 0 1px; }
#city-counter-badge .counter-total { font-size: 14px; opacity: 0.85; }
#city-counter-badge .counter-label {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.8;
  margin-left: 4px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 18px;
  font-size: 11px;
  letter-spacing: 1px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(201,147,58,0.28);
  color: #2a2118;
  box-shadow: 0 8px 30px rgba(90,60,20,0.10);
}
.status-badge .dot { width: 7px; height: 7px; border-radius: 50%; }
.status-badge .dot.green  { background: #4caf50; box-shadow: 0 0 6px #4caf50; }
.status-badge .dot.yellow { background: #ffca28; box-shadow: 0 0 6px #ffca28; }

.btn-airy {
  padding: 9px 20px;
  border-radius: 22px;
  border: 1px solid rgba(201,147,58,0.35);
  background: rgba(255,255,255,0.88);
  color: #2a2118;
  font-size: 12px;
  font-family: 'Montserrat', -apple-system, sans-serif;
  font-weight: 500;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(90,60,20,0.10);
  white-space: nowrap;
}
.btn-airy:hover {
  background: #2a2118;
  color: #faf5ec;
  border-color: #2a2118;
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(90,60,20,0.13);
}

/* ===================== NFC HUD ===================== */
#nfc-target-hud {
  position: absolute;
  top: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  z-index: 40;
  background: rgba(255,255,255,0.97);
  border: 1.5px solid #c9933a;
  padding: 10px 32px;
  border-radius: 30px;
  color: #2a2118;
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: 14px;
  letter-spacing: 2px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 32px rgba(201,147,58,0.22);
}
#nfc-target-hud.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===================== TURKEY MAP LAYER ===================== */
/* Map is ALWAYS rendered in background so Leaflet tiles load properly */
#turkey-map-container {
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  opacity: 1;
  pointer-events: none; /* gallery is on top by default */
  transition: opacity 0.5s ease;
  overflow: hidden;
}

/* When map-active: allow interaction (gallery is hidden) */
#turkey-map-container.map-active {
  pointer-events: auto;
  z-index: 6; /* above gallery when active */
}

/* Leaflet map tile styling */
#turkey-map-container .leaflet-tile {
  /* clean tiles without heavy WebKit GPU filters for maximum FPS on iPad 2 */
}

/* Province tooltip styling */
.province-tt-wrap.leaflet-tooltip {
  background: rgba(250,245,236,0.97);
  border-radius: 10px;
  padding: 8px 14px;
  font-family: 'Montserrat', -apple-system, sans-serif;
  font-size: 13px;
  color: #2a2118;
  box-shadow: 0 16px 48px rgba(90,60,20,0.13);
  border: 1px solid rgba(201,147,58,0.35);
  white-space: nowrap;
  pointer-events: none;
}

.province-tooltip {
  font-family: 'Montserrat', -apple-system, sans-serif;
  font-size: 13px;
}

.province-tooltip.visited {
  border-color: #16a34a;
  background: rgba(240,255,240,0.98);
}

.visited-tag {
  display: inline-block;
  background: #4ade80;
  color: #fff;
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-top: 3px;
}

/* Memory markers on map */
.memory-map-marker {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.marker-ring {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #c9933a;
  background: rgba(201,147,58,0.18);
  animation: markerPulse 2.5s ease-in-out infinite;
}

.marker-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #ddb86a 30%, #c9933a 100%);
  box-shadow: 0 2px 10px rgba(201,147,58,0.6);
  border: 2px solid #fff;
  z-index: 2;
}

.marker-label {
  position: absolute;
  bottom: -4px;
  background: rgba(250,245,236,0.97);
  border: 1px solid rgba(201,147,58,0.4);
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 9px;
  font-family: 'Montserrat', -apple-system, sans-serif;
  font-weight: 600;
  color: #2a2118;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  z-index: 3;
}

@keyframes markerPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50%       { transform: scale(1.4); opacity: 0.4; }
}

/* Map popup */
.memory-popup .leaflet-popup-content-wrapper {
  background: #faf5ec;
  border-radius: 16px;
  border: 1px solid rgba(201,147,58,0.35);
  box-shadow: 0 16px 48px rgba(90,60,20,0.13);
  padding: 0;
  overflow: hidden;
}
.memory-popup .leaflet-popup-tip {
  background: #faf5ec;
}
.map-popup {
  padding: 16px 18px;
  font-family: 'Montserrat', -apple-system, sans-serif;
}
.popup-trip {
  font-size: 10px;
  letter-spacing: 2px;
  color: #c9933a;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.popup-title {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  color: #2a2118;
  margin-bottom: 6px;
}
.popup-loc, .popup-date {
  font-size: 11px;
  color: #9a8c7b;
  margin-bottom: 3px;
}
.popup-btn {
  margin-top: 12px;
  width: 100%;
  padding: 9px 16px;
  background: linear-gradient(135deg, #c9933a 0%, #a6721a 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Montserrat', -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.popup-btn:hover { transform: scale(1.03); }

/* ===================== DUAL STREAMING MARQUEE GALLERY ===================== */
.arch-gallery-container {
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  pointer-events: none; /* center map is fully interactive */
  overflow: hidden;
}

.marquee-wrapper {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  padding: 4px 0;
}

.top-wrapper {
  top: 10px;
}

.bottom-wrapper {
  bottom: 12px;
}

.marquee-track {
  display: -webkit-flex;
  display: flex;
  gap: 16px;
  width: -webkit-max-content;
  width: max-content;
  pointer-events: auto;
  will-change: transform;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

/* Compact Arched Stream Card */
.arch-card-item {
  -webkit-flex: 0 0 150px;
  flex: 0 0 150px;
  height: 180px;
  background: rgba(250,245,236,0.94);
  border: 1.5px solid rgba(201,147,58,0.35);
  border-radius: 65px 65px 12px 12px;
  padding: 6px;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(90,60,20,0.16);
  position: relative;
  overflow: hidden;
  -webkit-transition: transform 0.25s ease, border-color 0.25s ease;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.arch-card-item:hover {
  -webkit-transform: scale(1.06);
  transform: scale(1.06);
  border-color: #c9933a;
  box-shadow: 0 8px 24px rgba(201,147,58,0.3);
  z-index: 20;
}

.arch-card-header {
  width: 100%;
  display: -webkit-flex;
  display: flex;
  justify-content: space-between;
  font-size: 7.5px;
  letter-spacing: 1px;
  color: #8a5e12;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 4px 3px;
}

.arch-image-frame {
  width: 100%;
  height: 112px;
  border-radius: 52px 52px 8px 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}
.arch-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arch-card-footer {
  margin-top: 6px;
  text-align: center;
}
.arch-card-footer h3 {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: 11px;
  font-weight: 700;
  color: #2a2118;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.arch-card-date {
  font-size: 9px;
  color: #9a8c7b;
}

/* ===================== FLOATING AUDIO BUTTON ===================== */
.floating-audio-btn {
  position: fixed;
  bottom: 32px;
  left: 36px;
  z-index: 50;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9933a 0%, #8a5e12 100%);
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 32px rgba(201,147,58,0.22);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.floating-audio-btn:hover { transform: scale(1.18) rotate(-10deg); }

/* ===================== FULLSCREEN EXHIBITION PANEL ===================== */
.full-exhibit-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  pointer-events: none;
  background: #faf5ec;
  opacity: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  -webkit-transform: translate3d(0,0,0);
  transition: opacity 0.3s ease;
}
.full-exhibit-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.full-exhibit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 60px;
  background: rgba(250,245,236,0.95);
  border-bottom: 1px solid rgba(201,147,58,0.22);
  position: sticky;
  top: 0;
  z-index: 20;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 16px rgba(90,60,20,0.06);
}

.full-exhibit-header h2 {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  letter-spacing: 3px;
  color: #2a2118;
  text-transform: uppercase;
}

.btn-close-full {
  padding: 10px 26px;
  border-radius: 22px;
  background: #2a2118;
  color: #faf5ec;
  border: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Montserrat', -apple-system, sans-serif;
  text-transform: uppercase;
}
.btn-close-full:hover {
  background: #c9933a;
  color: #fff;
  transform: scale(1.04);
}

.full-exhibit-body {
  max-width: 1200px;
  width: 90%;
  margin: 44px auto;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

/* Hero Section */
.full-exhibit-hero {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 44px;
  align-items: start;
}

.hero-arch-artwork {
  width: 100%;
  height: 430px;
  border-radius: 215px 215px 22px 22px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(90,60,20,0.13), 0 0 0 6px rgba(201,147,58,0.18), 0 0 0 12px rgba(255,255,255,0.85);
  border: 4px solid rgba(201,147,58,0.3);
}
.hero-arch-artwork img { width: 100%; height: 100%; object-fit: cover; }

.hero-right-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.parchment-letter-box {
  background: linear-gradient(135deg, #fdf6e8 0%, #f5e9cf 100%);
  padding: 28px;
  border-radius: 18px;
  border-left: 4px solid #c9933a;
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
  color: #3a2e20;
  box-shadow: 0 8px 30px rgba(90,60,20,0.10);
  position: relative;
  overflow: hidden;
}
.parchment-letter-box::after {
  content: '❝';
  position: absolute;
  bottom: -10px;
  right: 16px;
  font-size: 72px;
  color: rgba(201,147,58,0.12);
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  line-height: 1;
}
.parchment-letter-box h4 {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8a5e12;
  margin-bottom: 12px;
  font-family: 'Montserrat', -apple-system, sans-serif;
}

.vinyl-player-card {
  background: linear-gradient(135deg, #1e1812 0%, #2e2418 100%);
  color: #faf5ec;
  border-radius: 18px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 16px 48px rgba(90,60,20,0.13);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(201,147,58,0.25);
}
.vinyl-player-card:hover { transform: translateY(-4px) scale(1.01); }

.vinyl-disc {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #1a1208, #cfa856 5%, #1a1208 10%, #222 50%, #1a1208 90%, #cfa856 95%, #1a1208);
  border: 3px solid #ddb86a;
  animation: spinVinyl 7s linear infinite;
  animation-play-state: paused;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.vinyl-player-card.playing .vinyl-disc { animation-play-state: running; }

@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.vinyl-info h5 {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: 15px;
  color: #ddb86a;
  margin-bottom: 5px;
}
.vinyl-info p { font-size: 12px; color: #c0a87a; line-height: 1.5; }

/* Photo Gallery Section */
.trip-gallery-section h3 {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #2a2118;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201,147,58,0.22);
}

.trip-gallery-grid {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.gallery-photo-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(90,60,20,0.10);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gallery-photo-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 16px 48px rgba(90,60,20,0.13);
}
.gallery-photo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.gallery-photo-card:hover img { transform: scale(1.05); }
.gallery-photo-caption {
  padding: 14px 18px;
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: 15px;
  color: #2a2118;
}

/* 3D Pedestal */
.artifact-pedestal-container {
  height: 200px;
  position: relative;
  background: radial-gradient(circle at 50% 85%, rgba(201,147,58,0.18) 0%, transparent 70%);
  border: 1px dashed rgba(201,147,58,0.4);
  border-radius: 16px;
  overflow: hidden;
}
#artifact-canvas { width: 100%; height: 100%; }
.artifact-label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #9a8c7b;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ===================== MODALS ===================== */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 400;
  background: rgba(30,20,10,0.48);
  justify-content: center;
  align-items: center;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.modal-backdrop.active { display: flex !important; }

.modal-box {
  background: #faf5ec;
  padding: 36px;
  border-radius: 24px;
  max-width: 780px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  border: 1px solid rgba(201,147,58,0.25);
  position: relative;
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  border: none;
  background: none;
  font-size: 26px;
  cursor: pointer;
  color: #9a8c7b;
  transition: color 0.2s;
}
.modal-close:hover { color: #2a2118; }

.sim-grid {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.sim-nfc-card {
  background: #ede3d4;
  border: 1px solid rgba(201,147,58,0.2);
  border-radius: 14px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: 'Montserrat', -apple-system, sans-serif;
}
.sim-nfc-card:hover {
  background: #2a2118;
  color: #faf5ec;
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(90,60,20,0.13);
}
.sim-card-badge { font-size: 9px; color: #9a8c7b; letter-spacing: 1.5px; text-transform: uppercase; }
.sim-card-title { font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif; font-size: 16px; margin-top: 6px; }
.sim-card-loc { font-size: 11px; color: #9a8c7b; margin-top: 4px; }
.sim-nfc-card:hover .sim-card-badge,
.sim-nfc-card:hover .sim-card-loc { color: rgba(255,255,255,0.6); }

/* ===================== LEAFLET OVERRIDES ===================== */
.leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 16px 48px rgba(90,60,20,0.13) !important;
}
.leaflet-control-zoom a {
  background: rgba(250,245,236,0.97) !important;
  color: #2a2118 !important;
  border: 1px solid rgba(201,147,58,0.25) !important;
  font-size: 18px !important;
  font-family: 'Montserrat', -apple-system, sans-serif !important;
}
.leaflet-control-zoom a:hover {
  background: #c9933a !important;
  color: #fff !important;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .museum-header { padding: 0 20px; }
  .full-exhibit-hero { grid-template-columns: 1fr; }
  .full-exhibit-header { padding: 18px 24px; }
  .full-exhibit-body { width: 95%; margin: 28px auto; gap: 28px; }
  .arch-cards-grid { padding: 16px 20px; }
}

/* ===================== ROMANTIC BOHEMIAN PIN LOCK OVERLAY ===================== */
.pin-lock-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99999;
  background: radial-gradient(circle at center, rgba(35, 25, 15, 0.95) 0%, rgba(15, 10, 5, 0.99) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.pin-lock-overlay.unlocked {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.05);
}

.pin-lock-card {
  width: 380px;
  max-width: 90vw;
  background: rgba(250, 245, 236, 0.96);
  border: 2px solid rgba(201, 147, 58, 0.35);
  border-radius: 28px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

.pin-brand-mono {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9933a, #8a5e12);
  color: #fff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(201, 147, 58, 0.4);
}

.pin-lock-card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  letter-spacing: 2px;
  color: #2a2118;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.pin-lock-card p {
  font-size: 11px;
  color: #9a8c7b;
  line-height: 1.5;
  margin-bottom: 22px;
}

.pin-dots-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}
.pin-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid #c9933a;
  background: transparent;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pin-dot.filled {
  background: #c9933a;
  box-shadow: 0 0 12px rgba(201, 147, 58, 0.6);
  transform: scale(1.15);
}
.pin-dot.error {
  border-color: #dc2626;
  background: #dc2626;
  animation: shakePin 0.4s ease;
}
@keyframes shakePin {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 260px;
  margin: 0 auto;
}
.pin-btn {
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(201, 147, 58, 0.25);
  background: #f4ebd9;
  color: #2a2118;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex; align-items: center; justify-content: center;
}
.pin-btn:hover {
  background: #c9933a;
  color: #fff;
  border-color: #c9933a;
  transform: translateY(-2px);
}
.pin-btn:active {
  transform: scale(0.95);
}
.pin-btn.action-btn {
  font-size: 14px;
  background: rgba(201, 147, 58, 0.12);
  color: #c9933a;
}
