/* ================================
   Mapbox popup base overrides
   ================================ */

/* Keep popup above controls */
.mapboxgl-popup {
  z-index: 10;
}

/* Remove Mapbox default padding/background so our card shows clean */
.mapboxgl-popup-content {
  padding: 0;
  background: transparent;
  border-radius: 26px;
  box-shadow: none;
  overflow: visible;
}

/* Hide the little pointer triangle */
.mapboxgl-popup-tip {
  display: none;
}

/* Close button: floating circular pink “×” */
.mapboxgl-popup-close-button,
a.mapboxgl-popup-close-button,
button.mapboxgl-popup-close-button {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #f97373 !important;  /* pink-ish */
  color: #ffffff !important;        /* white × */
  font-weight: 900;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  cursor: pointer;
}

.mapboxgl-popup-close-button:hover {
  background: #fb8f8f !important;
}

.mapboxgl-popup-close-button:active {
  background: #e65454 !important;
}

.mapboxgl-popup-close-button:focus {
  outline: 3px solid rgba(255,255,255,.9);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .mapboxgl-popup-close-button {
    right: 12px;
    top: 12px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

/* ================================
   Main popup card
   ================================ */

.px-popup {
  background: #f8edf9;  /* soft lilac like screenshot */
  border-radius: 26px;
  padding: 16px 20px 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
  width: 380px;          /* nice wide card */
  max-width: 90vw;
  box-sizing: border-box; /* important so width includes padding */
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "Helvetica Neue",
    Arial,
    sans-serif;
  color: #111827;
}


/* ================================
   Header: title + meta + share
   ================================ */

.px-popup-header {
  display: flex;
  flex-direction: column;   /* stack title and meta */
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 14px;
}

.px-popup-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: #111827;
}

/* Meta card full-width under the title */
.px-popup-meta {
  background: #f2ebff;
  border-radius: 18px;
  padding: 10px 12px;
  display: flex;                 /* row: text left, share right */
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.px-popup-meta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;                       /* take remaining space */
}

.px-popup-cuisine {
  font-size: 13px;
  font-weight: 500;
  color: #111827;
}

.px-popup-phone-text {
  font-size: 12px;
  color: #9ca3af;
}

.px-popup-phone-muted {
  color: #c4cad4;
}

/* Share button INSIDE the meta card, right-aligned */
.px-share-icon {
  margin-left: 8px;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 0;
  background: #a4f08e;       /* green like screenshot */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #1f2937;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35);
}

.px-share-icon:hover {
  filter: brightness(1.05);
}

.px-share-icon:active {
  transform: translateY(1px);
}

/* ================================
   Body + Hours card
   ================================ */

.px-popup-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Hours card container */
.px-hours-card {
  background: #fbf3ff;      /* slightly lighter panel */
  border-radius: 22px;
  padding: 14px 14px 10px;
}

.px-hours-title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

/* Each row: day + badge */
.px-hours-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  margin-top: 4px;
  border-radius: 999px;
  background: #fdfbff;                 /* white-ish row */
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.8);
}

/* Today’s whole row gets a purple highlight bar */
.px-hours-row--today {
  background: #f0e6ff;
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.5);
}

/* Day label */
.px-hours-day {
  font-size: 13px;
  color: #4b5563;
}

/* Today’s day text (purple) */
.px-hours-day--today {
  color: #6d28d9;
}

/* Badges (Closed / Open text chips) */
.px-hours-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Closed = pill red */
.px-hours-badge--closed {
  background: #e68d8d;
  color: #ffffff;
}

/* Open = pill green */
.px-hours-badge--open {
  background: #bbf7d0;
  color: #166534;
}

/* ================================
   Bottom buttons
   ================================ */

.px-popup-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 4px;
}

/* Shared button base */
.px-btn {
  flex: 1;
  border-radius: 999px;
  border: 0;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.25);
}

/* Heart / Favorite (lime-ish) */
.px-btn-favorite {
  background: #d7f46a;
  color: #111827;
}

/* Directions (teal) */
.px-btn-directions {
  background: #5ac7c9;
  color: #ffffff;
}

.px-btn-icon {
  font-size: 16px;
}

/* ================================
   Small-screen tweaks
   ================================ */

@media (max-width: 480px) {
  .px-popup {
    max-width: 94vw;
    padding: 14px 16px 16px;
  }

  .px-popup-title {
    font-size: 17px;
  }
}