/* ===== Hero ===== */
.map-hero {
  background: var(--color-white);
  padding: 32px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
}

.map-hero__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.map-hero__titles {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}

.map-hero__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.map-hero__pin-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--color-blue-tag);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: #141B2B;
}

.map-hero__pin-badge i {
  color: var(--color-red-dark);
  font-size: 13px;
}

.map-hero__meta {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-nav-hover);
}

.map-hero__title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 44px;
  line-height: 48px;
  letter-spacing: -1px;
  color: #141B2B;
}

.map-hero__subtitle {
  font-family: 'Noto Sans Tamil', 'FreeSans', sans-serif;
  font-size: 16px;
  line-height: 26px;
  color: var(--color-red-medium);
}

.map-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.map-hero__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
  transition: opacity 0.2s ease;
}

.map-hero__btn:hover {
  opacity: 0.85;
}

.map-hero__btn--ghost {
  background: #E9EDFF;
  color: #141B2B;
}

.map-hero__btn--primary {
  background: var(--color-red-dark);
  color: var(--color-white);
}

/* ===== Filter bar ===== */
.map-filters {
  background: #F1F3FF;
  box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.05);
  padding: 20px 32px;
}

.map-filters__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.map-filters__row {
  display: grid;
  grid-template-columns: 1fr 280px 280px;
  gap: 12px;
}

.map-search-wrap,
.map-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.map-search-wrap i,
.map-select-wrap > i:first-child {
  position: absolute;
  left: 14px;
  color: var(--color-nav-hover);
  font-size: 15px;
  pointer-events: none;
}

.map-search-input {
  width: 100%;
  padding: 14px 16px 14px 40px;
  background: var(--color-white);
  border: none;
  border-radius: 2px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
  font-family: var(--font-body);
  font-size: 14px;
  color: #141B2B;
}

.map-search-input::placeholder {
  color: rgba(94, 63, 59, 0.7);
}

.map-search-input:focus,
.map-select:focus {
  outline: 2px solid var(--color-red-dark);
}

.map-select {
  width: 100%;
  appearance: none;
  padding: 12px 32px 12px 36px;
  background: var(--color-white);
  border: none;
  border-radius: 2px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: #141B2B;
  cursor: pointer;
}

.map-select-wrap__chevron {
  position: absolute;
  right: 12px;
  color: var(--color-nav-hover);
  font-size: 13px;
  pointer-events: none;
}

.map-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.map-chips__label {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-nav-hover);
  margin-right: 2px;
}

.map-chips__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chip-filter {
  flex-shrink: 0;
  padding: 4px 12px;
  background: var(--color-white);
  border: none;
  border-radius: 2px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: #141B2B;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.chip-filter:hover {
  background: #E9EDFF;
}

.chip-filter--active {
  background: var(--color-red-dark);
  color: var(--color-white);
  font-weight: 600;
}

.chip-filter:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.map-filters__note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-nav-hover);
}

.map-filters__note i {
  color: var(--color-red-dark);
}

.map-search-input:disabled,
.map-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== Workspace layout ===== */
.map-workspace {
  padding: 24px 32px;
}

.map-workspace__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
}

.map-workspace__left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* ===== Map card ===== */
.map-card {
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.map-toolbar {
  padding: 12px 20px;
  background: var(--color-blue-tag);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.map-toolbar__status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-toolbar__dot {
  width: 10px;
  height: 10px;
  background: var(--color-red-dark);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.map-toolbar__label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #141B2B;
}

.map-toolbar__hall {
  padding: 2px 8px;
  background: #E9EDFF;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-red-dark);
}

.map-toolbar__controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.map-toggle__btn {
  padding: 4px 10px;
  background: var(--color-white);
  border: none;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: #141B2B;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.map-toggle__btn--active {
  background: var(--color-red-dark);
  color: var(--color-white);
  font-weight: 700;
}

.map-toolbar__divider {
  width: 1px;
  height: 16px;
  background: rgba(147, 110, 105, 0.2);
  margin: 0 4px;
}

.map-toolbar__icon-btn {
  width: 28px;
  height: 28px;
  background: var(--color-white);
  border: none;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #141B2B;
  font-size: 12px;
  cursor: pointer;
}

.map-toolbar__icon-btn:hover {
  background: #E9EDFF;
}

.map-toggle__btn--static,
.map-toolbar__icon-btn--static {
  cursor: default;
}

.map-toolbar__icon-btn--static:hover {
  background: var(--color-white);
}

.map-canvas {
  position: relative;
  width: 100%;
  height: 540px;
  background: #141B2B;
  overflow: hidden;
}

.map-canvas svg {
  width: 100%;
  height: 100%;
  display: block;
}

.stall-node rect {
  transition: stroke 0.15s ease, stroke-width 0.15s ease;
}

.stall-node:hover rect {
  filter: brightness(1.2);
}

.map-orientation {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 148px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border-radius: 2px;
  box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1);
  display: none;
}

@media (min-width: 640px) {
  .map-orientation {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
}

.map-orientation__title {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-red-dark);
}

.map-orientation__scale {
  font-family: var(--font-body);
  font-size: 10px;
  line-height: 12.5px;
  color: var(--color-nav-hover);
}

.map-orientation__legend {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
  font-family: var(--font-body);
  font-size: 10px;
  color: #141B2B;
}

.map-orientation__dot {
  width: 10px;
  height: 10px;
  background: var(--color-red-dark);
  border-radius: 2px;
}

.map-quickbar {
  padding: 16px;
  background: #E9EDFF;
  border-top: 2px solid var(--color-red-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.map-quickbar__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.map-quickbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.map-quickbar__pill {
  padding: 2px 8px;
  background: var(--color-red-dark);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-white);
  white-space: nowrap;
}

.map-quickbar__name {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: #141B2B;
}

.map-quickbar__dim {
  padding: 2px 8px;
  background: var(--color-blue-tag);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-nav-hover);
  white-space: nowrap;
}

.map-quickbar__desc {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-nav-hover);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-quickbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.session-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--color-white);
  border: none;
  border-radius: 2px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: #141B2B;
  cursor: pointer;
  white-space: nowrap;
}

.session-btn i {
  color: var(--color-red-dark);
  font-size: 13px;
}

.session-btn--bookmarked {
  background: var(--color-red-light);
}

.session-btn--primary {
  background: var(--color-red-dark);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
}

.session-btn--primary i {
  color: var(--color-white);
}

.session-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== Amenities ===== */
.amenities-card {
  background: var(--color-white);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
}

.amenities-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.amenities-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #141B2B;
}

.amenities-card__title i {
  color: var(--color-red-dark);
}

.amenities-card__hotline {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--color-nav-hover);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.amenity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--color-gray-bg);
  border-radius: 2px;
  transition: background 0.15s ease;
}

.amenity:hover {
  background: #E9EDFF;
}

.amenity__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: rgba(181, 0, 11, 0.1);
  color: var(--color-red-dark);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.amenity__title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: #141B2B;
  line-height: 1.3;
}

.amenity__note {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--color-nav-hover);
  line-height: 1.3;
}

/* ===== Directory sidebar ===== */
.directory-card {
  background: var(--color-white);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  max-height: 780px;
}

.directory-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid #E9EDFF;
}

.directory-card__title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: #141B2B;
}

.directory-card__subtitle {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-nav-hover);
}

.directory-card__badge {
  flex-shrink: 0;
  padding: 2px 8px;
  background: var(--color-red-light);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: #410001;
  white-space: nowrap;
}

.directory-card__badge--soon {
  background: #FFE7B8;
  color: #7A4A00;
}

.jump-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 8px 0;
  overflow-x: auto;
}

.jump-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-nav-hover);
  cursor: pointer;
  padding: 2px 4px;
}

.jump-btn:hover,
.jump-btn--active {
  color: var(--color-red-dark);
}

.jump-btn--popular {
  color: var(--color-red-dark);
}

.publishers-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 4px 4px 0;
}

.publisher-card {
  padding: 14px;
  background: var(--color-gray-bg);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
  transition: background 0.15s ease;
}

.publisher-card:hover {
  background: #EDEFFC;
}

.publisher-card--active {
  background: #F1F3FF;
  outline: 1px solid var(--color-red-dark);
}

.publisher-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.publisher-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.publisher-card__stall-pill,
.publisher-card__stall-pill--accent {
  padding: 2px 6px;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.publisher-card__stall-pill {
  background: #293040;
  color: #EDF0FF;
}

.publisher-card__stall-pill--accent {
  background: var(--color-red-dark);
  color: var(--color-white);
}

.publisher-card__location {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  color: var(--color-nav-hover);
}

.publisher-card__name {
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: #141B2B;
}

.publisher-card__locate {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E9EDFF;
  color: var(--color-nav-hover);
  border: none;
  border-radius: 2px;
  font-size: 13px;
  cursor: pointer;
}

.publisher-card:hover .publisher-card__locate {
  background: var(--color-red-dark);
  color: var(--color-white);
}

.publisher-card__desc {
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  color: var(--color-nav-hover);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.publisher-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--color-blue-tag);
  font-family: var(--font-body);
  font-size: 11px;
}

.publisher-card__tag {
  color: var(--color-nav-hover);
}

.publisher-card__tag--highlight {
  color: var(--color-red-medium);
  font-weight: 700;
}

.publisher-card__rep {
  color: var(--color-nav-hover);
}

.publisher-empty {
  padding: 32px 16px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-nav-hover);
}

.directory-coming-soon {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 48px 20px;
}

.directory-coming-soon__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(181, 0, 11, 0.1);
  color: var(--color-red-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 6px;
}

.directory-coming-soon__title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: #141B2B;
}

.directory-coming-soon__desc {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 17px;
  color: var(--color-nav-hover);
  max-width: 280px;
}

.directory-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #E9EDFF;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-nav-hover);
}

.directory-card__ask {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--color-red-dark);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.directory-card__ask:hover {
  text-decoration: underline;
}

/* ===== Visiting tips ===== */
.map-tips {
  background: var(--color-white);
  padding: 32px;
  margin-top: 8px;
}

.map-tips__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tip-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--color-gray-bg);
  border-radius: 8px;
}

.tip-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--color-red-dark);
  color: var(--color-white);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.tip-card__title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: #141B2B;
}

.tip-card__desc {
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  color: var(--color-nav-hover);
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .map-workspace__inner {
    grid-template-columns: 1fr;
  }
  .amenities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .map-filters__row {
    grid-template-columns: 1fr;
  }
  .map-tips__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .map-hero,
  .map-filters,
  .map-workspace,
  .map-tips {
    padding-left: 20px;
    padding-right: 20px;
  }
  .map-hero__title {
    font-size: 32px;
    line-height: 38px;
  }
  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .map-canvas {
    height: 400px;
  }
}
