* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f7fb;
  color: #14213d;
}

.page {
  max-width: 1500px;
  margin: 0 auto;
  padding: 24px 18px;
}

.hero {
  background: linear-gradient(135deg, #002b49, #005f95);
  color: white;
  padding: 30px;
  border-radius: 26px;
  margin-bottom: 18px;
  box-shadow: 0 16px 38px rgba(0, 43, 73, 0.22);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.82;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 38px;
  line-height: 1.08;
}

.hero p {
  margin: 0;
  font-size: 16px;
  opacity: 0.92;
}

.chat-panel {
  background: white;
  border: 1px solid #dde7f0;
  border-radius: 24px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.assistant-response {
  margin-bottom: 12px;
}

.assistant-bubble {
  background: #eef7ff;
  border: 1px solid #cde9ff;
  color: #12324a;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
}

.assistant-bubble.error {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}

.chat-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 10px;
  align-items: center;
}

.chat-search-form input,
.chat-search-form button {
  height: 50px;
  border-radius: 15px;
  font-size: 16px;
}

.chat-search-form input {
  border: 1px solid #d8e2ec;
  padding: 0 15px;
  background: white;
}

.chat-search-form button {
  border: none;
  background: #0075b9;
  color: white;
  cursor: pointer;
  font-weight: 900;
}

.chat-search-form button:hover {
  background: #005f95;
}

.chat-search-form button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.live-search-results {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #edf2f7;
}

.live-search-results.active {
  display: block;
}

.live-search-title {
  margin: 0 0 10px;
  color: #334155;
  font-size: 14px;
  font-weight: 900;
}

.live-result-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.live-result-card {
  background: #f8fbfe;
  border: 1px solid #dceaf4;
  border-radius: 16px;
  padding: 12px;
}

.live-result-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.live-result-card h3 {
  margin: 0;
  font-size: 16px;
  color: #0f172a;
}

.live-result-card p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 13px;
}

.live-result-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.summary {
  margin: 0 0 14px;
  color: #52616f;
  font-weight: 800;
}

.summary p {
  margin: 0;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 20px;
  align-items: start;
}

.appointments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.business-card {
  background: white;
  border-radius: 20px;
  padding: 15px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5edf5;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}

.business-card.verified-business-card {
  border: 2px solid #002b49;
  box-shadow: 0 18px 40px rgba(0, 43, 73, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f4f9fc 100%);
}

.logo-circle {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #e8f4fb;
  color: #0075b9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  overflow: hidden;
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-main {
  min-width: 0;
}

.business-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.business-card h2 {
  font-size: 20px;
  margin: 0 0 4px;
  line-height: 1.15;
  color: #0f172a;
}

.business-card.verified-business-card .business-title-row h2 {
  color: #002b49;
  font-weight: 900;
}

.business-address {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.business-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.verified-business-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.claim-business-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #0075b9;
  text-decoration: none;
}

.claim-business-link:hover {
  text-decoration: underline;
}

.business-service {
  margin: 0 0 9px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 700;
}

.next-label {
  margin: 0 0 8px;
  font-weight: 900;
  font-size: 13px;
  color: #1f2933;
}

.business-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  flex-shrink: 0;
}

.platform-pill,
.distance-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.platform-pill {
  background: #eef7ff;
  color: #005f95;
}

.distance-pill {
  background: #ecfdf5;
  color: #047857;
}

.appointment-buttons,
.time-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.time-button {
  display: inline-block;
  text-decoration: none;
  background: #0075b9;
  color: white;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.time-button:hover {
  background: #005f95;
}

.map-panel {
  position: sticky;
  top: 16px;
  height: calc(100vh - 32px);
  min-height: 590px;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  border: 1px solid #dde7f0;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 590px;
}

/* Leaflet custom icon reset */
.leaflet-div-icon {
  background: transparent;
  border: none;
}

/* New map pin structure */
.standard-map-pin,
.verified-map-pin,
.map-pin-shell {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.standard-map-pin,
.map-pin-shell {
  background: #0075b9;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.verified-map-pin,
.map-pin-shell.verified-map-pin-shell {
  background: #ffffff;
  border: 2px solid #002b49;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* Logo area inside pins */
.map-logo-circle,
.map-thumb-marker {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #ffffff;
  color: #0075b9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  line-height: 1;
}

/* Non-logo initials for standard pins */
.standard-map-pin .map-logo-circle,
.map-pin-shell .map-thumb-marker {
  background: #0075b9;
  color: #ffffff;
}

/* Verified initials only. Does not touch uploaded logo image. */
.verified-map-pin .map-logo-circle,
.map-pin-shell.verified-map-pin-shell .map-thumb-marker,
.map-thumb-marker.verified-map-marker {
  background: #ffffff;
  color: #002b49;
}

/* Uploaded logos stay untouched */
.map-logo-circle img,
.map-thumb-marker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  display: block;
  filter: none;
  opacity: 1;
  mix-blend-mode: normal;
}

/* Map popup base */
.map-popup {
  padding: 2px;
  min-width: 210px;
}

.map-popup-header {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 7px;
}

.map-popup h3 {
  margin: 0 0 5px;
  font-size: 15px;
}

.map-popup p {
  margin: 0 0 8px;
  font-size: 13px;
}

.map-popup a {
  color: #0075b9;
  font-weight: 900;
  text-decoration: none;
}

/* Verified popup */
.map-popup.verified-map-popup {
  padding: 10px;
  border-left: 5px solid #002b49;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9fc 100%);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(0, 43, 73, 0.08);
}

.map-popup.verified-map-popup h3 {
  color: #002b49;
  font-weight: 900;
}

.map-popup-verified-badge {
  display: inline-flex;
  width: fit-content;
  margin: 2px 0 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.empty-state {
  text-align: center;
  background: white;
  padding: 36px 20px;
  border-radius: 20px;
  border: 1px solid #e5edf5;
}

.empty-state h2 {
  margin-top: 0;
}

.hidden-control {
  display: none !important;
}

.assistant-response {
  margin-top: 14px;
  margin-bottom: 0;
}

.thinking-card {
  background: #f1f5f9;
  border: 1px solid #dbe4ee;
  border-radius: 18px;
  padding: 14px;
  animation: pulseThinking 1.3s ease-in-out infinite;
}

.thinking-line {
  height: 13px;
  background: #d7e0ea;
  border-radius: 999px;
  margin-bottom: 10px;
}

.thinking-line.short {
  width: 45%;
}

.thinking-line.medium {
  width: 70%;
}

.thinking-line.long {
  width: 92%;
}

.thinking-buttons {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.thinking-button {
  width: 110px;
  height: 34px;
  border-radius: 999px;
  background: #d7e0ea;
}

@keyframes pulseThinking {
  0% {
    opacity: 0.72;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.72;
  }
}

@media (max-width: 1100px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .map-panel {
    position: relative;
    top: auto;
    height: 420px;
    min-height: 420px;
    order: -1;
  }

  #map {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 16px 11px;
  }

  .hero {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .hero h1 {
    font-size: 29px;
  }

  .hero p {
    font-size: 15px;
  }

  .chat-panel {
    padding: 12px;
  }

  .chat-search-form {
    grid-template-columns: 1fr;
  }

  .business-card {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 13px;
  }

  .logo-circle {
    width: 44px;
    height: 44px;
    font-size: 13px;
  }

  .business-header,
  .live-result-top {
    flex-direction: column;
  }

  .business-meta {
    justify-content: flex-start;
  }

  .business-card h2 {
    font-size: 18px;
  }

  .time-button {
    width: 100%;
    text-align: center;
    padding: 12px;
  }
  .email-capture-form {
  margin-top: 22px;
  background: white;
  border: 1px solid #dbe4ee;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(0, 43, 73, 0.08);
}

.email-capture-title {
  margin: 0 0 10px;
  font-weight: 800;
  color: #002b49;
}

.email-capture-copy {
  margin: 0 0 12px;
  color: #52616f;
  font-size: 14px;
}

.email-capture-row {
  display: flex;
  gap: 10px;
}

.email-capture-row input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 12px 14px;
  font-size: 15px;
}

.email-capture-row button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: #0075b9;
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.email-capture-status {
  margin: 10px 0 0;
  font-size: 13px;
  color: #002b49;
}

.email-capture-popup {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: min(360px, calc(100vw - 44px));
  z-index: 9999;
  background: white;
  border: 2px solid #002b49;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 18px 50px rgba(0, 43, 73, 0.22);
}

.email-capture-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  color: #002b49;
}

@media (max-width: 640px) {
  .email-capture-row {
    flex-direction: column;
  }

  .email-capture-popup {
    right: 14px;
    bottom: 14px;
    width: calc(100vw - 28px);
  }
}
}
.clickable-business-card {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.clickable-business-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.business-title-text {
  text-decoration: none;
  color: #14213d;
}

.clickable-business-card:hover .business-title-text {
  color: #0075b9;
}

.business-review-summary {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 800;
  color: #f59e0b;
}

.business-short-post {
  margin: 8px 0 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.35;
}

.business-deal-preview {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 9px;
  background: #eff6ff;
  border: 1px solid #bae6fd;
  color: #002b49;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 13px;
}

.business-deal-preview strong {
  font-size: 13px;
}

.business-deal-preview span {
  color: #334155;
}

.business-deal-preview em {
  font-style: normal;
  font-weight: 900;
  color: #0075b9;
}

/* NEXTAPPT CATEGORY NAVIGATION START */
.category-navigation {
  margin: 0 auto 24px;
  max-width: 1200px;
}

.category-navigation-header {
  align-items: flex-end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.category-navigation-title {
  color: #17324d;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0;
}

.category-navigation-status {
  color: #60758a;
  font-size: 0.78rem;
  margin: 0;
}

.category-nav-list {
  display: flex;
  gap: 10px;
  margin: 0;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
}

.category-nav-link {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #d8e2ea;
  border-radius: 14px;
  color: #17324d;
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 3px;
  min-width: 132px;
  padding: 11px 14px;
  text-decoration: none;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.category-nav-link:hover,
.category-nav-link:focus-visible {
  border-color: #005f95;
  box-shadow: 0 5px 16px rgba(0, 43, 73, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.category-nav-link.is-active {
  background: linear-gradient(135deg, #002b49, #005f95);
  border-color: #005f95;
  box-shadow: 0 6px 18px rgba(0, 43, 73, 0.2);
  color: #ffffff;
}

.category-nav-link.is-empty:not(.is-active) {
  background: #f8fafc;
  color: #5d6f80;
}

.category-nav-name {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.category-nav-count {
  font-size: 0.72rem;
  line-height: 1.25;
  opacity: 0.78;
}

.category-nav-loading {
  color: #60758a;
  font-size: 0.82rem;
  margin: 0;
  padding: 10px 2px;
}

@media (max-width: 700px) {
  .category-navigation {
    margin-bottom: 18px;
  }

  .category-navigation-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .category-nav-link {
    min-width: 116px;
    padding: 10px 12px;
  }
}
/* NEXTAPPT CATEGORY NAVIGATION END */

/* NEXTAPPT METRO NAVIGATION START */
.metro-navigation {
  margin: 0 auto 14px;
  max-width: 1200px;
}

.metro-navigation-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.metro-navigation-title,
.metro-navigation-status {
  margin: 0;
}

.metro-navigation-title {
  color: #17324d;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metro-navigation-status {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.metro-nav-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
}

.metro-nav-link {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #d8e2ea;
  border-radius: 14px;
  color: #17324d;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  min-width: 132px;
  padding: 11px 14px;
  text-decoration: none;

  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.metro-nav-link:hover,
.metro-nav-link:focus-visible {
  border-color: #005f95;
  box-shadow: 0 5px 16px rgba(0, 43, 73, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.metro-nav-link.is-active {
  background: linear-gradient(135deg, #002b49, #005f95);
  border-color: #005f95;
  box-shadow: 0 6px 18px rgba(0, 43, 73, 0.2);
  color: #ffffff;
}

.metro-nav-loading {
  color: #64748b;
  font-size: 13px;
  margin: 0;
}

@media (max-width: 640px) {
  .metro-navigation-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .metro-nav-link {
    min-width: 116px;
    padding: 10px 12px;
  }
}
/* NEXTAPPT METRO NAVIGATION END */
