/* Hospitality Footprint Map — enterprise layout */

.footprint-map-wide {
  width: min(100%, 1920px);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 3rem);
}

.footprint-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footprint-layout {
    grid-template-columns: minmax(200px, 220px) minmax(0, 1fr);
    gap: clamp(1.25rem, 2.5vw, 2rem);
    align-items: stretch;
    padding-bottom: 2.5rem;
  }
}

@media (min-width: 1280px) {
  .footprint-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

/* Legend */
.footprint-legend {
  border-radius: 20px;
  border: 1px solid rgba(11, 28, 20, 0.05);
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfb 100%);
  padding: 1.5rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 14px 40px rgba(11, 28, 20, 0.07);
}

@media (min-width: 768px) {
  .footprint-legend {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 24px;
  }
}

@media (min-width: 1024px) {
  .footprint-legend {
    border-radius: 28px;
  }
}

@media (max-width: 767px) {
  .footprint-legend {
    padding: 1.25rem;
  }
}

.footprint-legend-title {
  margin-bottom: 0.35rem;
  font-size: 0.665rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #0b1c14;
}

.footprint-legend-subtitle {
  margin-bottom: 1rem;
  font-size: 0.74rem;
  color: #8c939f;
}

.footprint-legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footprint-legend-list li + li {
  margin-top: 0.45rem;
}

.footprint-legend-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.625rem;
  border: 0;
  border-radius: 12px;
  padding: 0.6rem 0.625rem;
  background: transparent;
  text-align: left;
  font-size: 0.855rem;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.footprint-legend-item:hover {
  background: rgba(11, 28, 20, 0.04);
  box-shadow: 0 0 0 1px rgba(11, 28, 20, 0.04) inset;
}

.footprint-legend-item.is-active {
  background: rgba(197, 160, 89, 0.14);
  box-shadow: 0 0 0 1px rgba(197, 160, 89, 0.26) inset;
}

.footprint-legend-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
}

.footprint-legend-label {
  flex: 1;
  font-weight: 500;
  color: #0b1c14;
}

.footprint-legend-count {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #7f8896;
}

.footprint-legend-total {
  margin-top: auto;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(11, 28, 20, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: #6b7280;
}

.footprint-legend-total strong {
  color: #0b1c14;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.footprint-legend-note {
  margin-top: 0.25rem;
  font-size: 0.7rem;
  color: #98a0ad;
}

/* Map stage */
.footprint-map-stage {
  min-width: 0;
  position: relative;
}

.footprint-map-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 793 / 288;
  min-height: clamp(220px, 38vw, 520px);
  overflow: hidden;
  border-radius: 24px;
  background: #f8f6f2;
  box-shadow: 0 24px 80px rgba(11, 28, 20, 0.08);
}

@media (min-width: 1024px) {
  .footprint-map-canvas {
    min-height: clamp(360px, 48vh, 620px);
    border-radius: 28px;
  }
}

@media (min-width: 1536px) {
  .footprint-map-canvas {
    min-height: clamp(400px, 52vh, 680px);
  }
}

.footprint-map-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.footprint-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.footprint-hub-line {
  stroke: rgba(197, 160, 89, 0.5);
  stroke-width: 0.12;
  fill: none;
  transition: opacity 0.2s ease;
}

.footprint-markers {
  position: absolute;
  inset: 0;
}

.footprint-marker {
  position: absolute;
  z-index: 10;
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footprint-marker:hover {
  transform: translate(-50%, -50%) scale(1.15);
  z-index: 11;
}

.footprint-marker.is-dimmed {
  opacity: 0.55;
}

.footprint-marker-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 6px rgba(11, 28, 20, 0.25);
  background-color: var(--marker-color, #c5a059);
  transition: width 0.2s ease, height 0.2s ease, box-shadow 0.2s ease;
}

.footprint-marker.is-active .footprint-marker-dot {
  width: 11px;
  height: 11px;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.95),
    0 0 0 5px var(--marker-color, #c5a059),
    0 2px 12px rgba(11, 28, 20, 0.2);
}

.footprint-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: #9ca3af;
}

@media (min-width: 768px) {
  .footprint-scroll-hint {
    position: absolute;
    top: calc(100% + 1.25rem);
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
    width: max-content;
    white-space: nowrap;
  }
}

/* Detail overlay (desktop) */
.footprint-detail-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  width: min(100% - 2rem, 300px);
  max-height: calc(100% - 2rem);
  overflow-y: auto;
}

@media (min-width: 1280px) {
  .footprint-detail-overlay {
    width: 320px;
  }
}

.footprint-detail-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(11, 28, 20, 0.06);
  background: #fff;
  box-shadow: 0 16px 42px rgba(11, 28, 20, 0.14);
}

@media (min-width: 1024px) {
  .footprint-detail-overlay {
    max-height: none;
    overflow: visible;
  }

  .footprint-detail-card {
    overflow: visible;
  }
}

.footprint-detail-close {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  z-index: 10;
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(11, 28, 20, 0.08);
  background: rgba(255, 255, 255, 0.95);
  color: #0b1c14;
  cursor: pointer;
  transition: background 0.2s ease;
}

.footprint-detail-close:hover {
  background: #f3f4f6;
}

.footprint-detail-image {
  background: #f3f4f6;
}

.footprint-detail-image img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
  max-height: 180px;
}

.footprint-detail-body {
  padding: 1rem;
}

.footprint-detail-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.footprint-detail-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
  color: #0b1c14;
}

.footprint-detail-rating {
  display: flex;
  gap: 2px;
  margin-top: 0.5rem;
}

.footprint-detail-location {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.625rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.footprint-detail-stats {
  margin-top: 0.625rem;
  padding: 0.375rem 0.5rem;
  border-radius: 8px;
  background: rgba(11, 28, 20, 0.04);
  font-size: 0.76rem;
  line-height: 1.4;
  color: rgba(11, 28, 20, 0.75);
}

.footprint-detail-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 1rem 0;
}

.footprint-quick-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #0b1c14;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.footprint-quick-link:hover {
  border-color: rgba(197, 160, 89, 0.5);
  background: #f8f6f2;
}

.footprint-detail-cta {
  margin-top: 0.75rem;
  padding-block: 0.6rem;
  font-size: 0.84rem;
}

.footprint-mobile-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  max-height: 70vh;
  overflow-y: auto;
  border-top: 1px solid rgba(11, 28, 20, 0.08);
  background: #fff;
  padding: 1rem;
  box-shadow: 0 -20px 60px rgba(11, 28, 20, 0.12);
}

@media (min-width: 1024px) {
  .footprint-mobile-sheet {
    display: none !important;
  }
}

/* Stats bar */
.footprint-stats-bar {
  margin-top: 4rem;
  background: #0b1c14;
  padding: 3rem 0;
}

@media (min-width: 1024px) {
  .footprint-stats-bar {
    margin-top: 5rem;
    padding: 4rem 0;
  }
}

.footprint-stats-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .footprint-stats-inner {
    grid-template-columns: 1fr 320px;
  }
}

@media (min-width: 1280px) {
  .footprint-stats-inner {
    grid-template-columns: 1fr 380px;
  }
}

.footprint-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .footprint-stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.footprint-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 1024px) {
  .footprint-stat-item {
    align-items: flex-start;
    text-align: left;
  }
}

.footprint-invest-cta {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}

.footprint-invest-cta h3 {
  color: #fff;
}

.footprint-invest-cta p {
  color: rgba(255, 255, 255, 0.7);
}
