/*
 * 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;
}

/* ── Homepage editorial sections ── */
.home-place-media {
  display: flex;
  height: 18rem;
}

.home-place-media__lead {
  width: 58%;
}

.home-maker-story {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.home-maker-story__media {
  width: 100%;
}

.home-maker-story__copy {
  min-width: 0;
}

@media (min-width: 768px) {
  .home-maker-story {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }

  .home-maker-story__media {
    flex: 0 0 34%;
    max-width: 460px;
  }

  .home-maker-story__copy {
    flex: 1 1 auto;
  }
}

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

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

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

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

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

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

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

.article-body strong {
  color: #171814;
}

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

.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 #DADDD5;
  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 #DADDD5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

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

.indieout-popup {
  padding: 16px;
}

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

.indieout-popup-count {
  font-size: 12px;
  color: #62685F;
  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: #9E3F34;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid #DADDD5;
  transition: color 0.15s;
}

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

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

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

/* Compact 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: #171814;
  color: #FFFFFF;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  flex-shrink: 0;
}

.western-pin-label {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  color: #171814;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8), -1px -1px 2px rgba(255,255,255,0.8);
  letter-spacing: 0.02em;
}

.indieout-leaflet-popup .leaflet-popup-content-wrapper {
  background: #FFFFFF !important;
  border: 1px solid #DADDD5 !important;
  box-shadow: 0 3px 12px rgba(23, 24, 20, 0.14) !important;
}

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

/* Map container: keep third-party tiles quiet enough for marketplace UI. */
[data-map-canvas] {
  position: relative;
}

[data-map-canvas] .leaflet-tile-pane {
  filter: saturate(0.45) brightness(1.03) contrast(0.98);
}

[data-map-canvas]::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  box-shadow: inset 0 0 80px rgba(23, 24, 20, 0.12);
}
