/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* ── Scrollbar hide for horizontal scroll rows ── */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ── Thin scrollbar for sidebar ── */
.sidebar-scroll::-webkit-scrollbar {
  width: 4px;
}
.sidebar-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-scroll::-webkit-scrollbar-thumb {
  background: #D4CFC7;
  border-radius: 2px;
}
.sidebar-scroll {
  scrollbar-width: thin;
  scrollbar-color: #D4CFC7 transparent;
}

/* ── Article body typography ── */
.article-body p {
  color: #1A1A18;
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.article-body h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  color: #1A3A2A;
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-body h3 {
  color: #1A3A2A;
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.article-body blockquote {
  border-left: 3px solid #C4652A;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: #6B6458;
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.75;
}

.article-body a {
  color: #C4652A;
  text-decoration: none;
}

.article-body a:hover {
  text-decoration: underline;
}

.article-body strong {
  color: #1A3A2A;
}

.article-body ul, .article-body ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
  color: #1A1A18;
}

.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

/* ── Leaflet map overrides ── */

.brand-marker {
  background: transparent !important;
  border: none !important;
}

.indieout-leaflet-popup .leaflet-popup-content-wrapper {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border: 1px solid #E8E3DA;
  padding: 0;
}

.indieout-leaflet-popup .leaflet-popup-content {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
}

.indieout-leaflet-popup .leaflet-popup-tip {
  background: #FFFFFF;
  border: 1px solid #E8E3DA;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.indieout-leaflet-popup .leaflet-popup-close-button {
  color: #A39E93 !important;
  font-size: 18px !important;
  top: 8px !important;
  right: 8px !important;
}

.indieout-leaflet-popup .leaflet-popup-close-button:hover {
  color: #1A3A2A !important;
}

.indieout-popup {
  padding: 16px;
}

.indieout-popup-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 18px;
  color: #1A3A2A;
  margin: 0 0 2px 0;
  line-height: 1.3;
}

.indieout-popup-count {
  font-size: 12px;
  color: #A39E93;
  margin: 0 0 10px 0;
}

.indieout-popup-brands {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.indieout-popup-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #C4652A;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid #F5F0E8;
  transition: color 0.15s;
}

.indieout-popup-brand:last-child {
  border-bottom: none;
}

.indieout-popup-brand:hover {
  color: #A8541F;
}

.indieout-popup-category {
  font-size: 11px;
  font-weight: 400;
  color: #A39E93;
  white-space: nowrap;
}

/* Western-style map markers */
.brand-marker-western {
  background: none !important;
  border: none !important;
}

.western-pin {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.western-pin-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #3A2A1A;
  color: #EDE7DC;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 14px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #EDE7DC;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  flex-shrink: 0;
}

.western-pin-label {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 13px;
  color: #3A2A1A;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8), -1px -1px 2px rgba(255,255,255,0.8);
  letter-spacing: 0.02em;
  font-style: italic;
}

/* Parchment-toned popup for watercolor map */
.indieout-leaflet-popup .leaflet-popup-content-wrapper {
  background: #F5F0E8 !important;
  border: 1px solid #C4B99A !important;
  box-shadow: 0 3px 12px rgba(58, 42, 26, 0.2) !important;
}

.indieout-leaflet-popup .leaflet-popup-tip {
  background: #F5F0E8 !important;
  border: 1px solid #C4B99A !important;
}

/* Map container: sepia filter kills the blue, vignette adds aged feel */
[data-map-canvas] {
  position: relative;
}

[data-map-canvas] .leaflet-tile-pane {
  filter: sepia(0.35) saturate(0.7) brightness(1.05) hue-rotate(-10deg);
}

[data-map-canvas]::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  box-shadow: inset 0 0 80px rgba(58, 42, 26, 0.2);
}
