#explore {
& {
  --pinkberry: #a95370;
  --pinkberry-dark: #623a4c;
  --cream: #faf5ef;
  --surface: #ffffff;
  --text: #342e31;
  --muted: #71656b;
  --border: #e4d9d3;
  --dining: #965d61;
  --dining-light: #f0dcd3;
  --shopping: #52747b;
  --shopping-light: #dce8e8;
  --radius: 16px;
  --shadow: 0 3px 14px rgba(65,40,48,.07);
}

* { box-sizing: border-box; }

[hidden] {
  display: none !important;
}

& {
  color-scheme: light;
  scroll-behavior: smooth;
}

& {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

button, input, select {
  font: inherit;
}

button {
  cursor: pointer;
}

button, input, select {
  min-height: 44px;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid var(--pinkberry);
  outline-offset: 3px;
}

button:disabled {
  cursor: default;
  opacity: .55;
}

img {
  display: block;
  max-width: 100%;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  line-height: 1.2;
  color: var(--pinkberry-dark);
}

a {
  color: var(--pinkberry-dark);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  background: white;
  padding: 12px;
  z-index: 20;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
}

.brand {
  max-width: 1120px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  background: var(--pinkberry);
  color: white;
  border-radius: 12px;
  font-size: 27px;
}

.brand-name {
  font-weight: 750;
  color: var(--pinkberry-dark);
  margin: 0;
}

.brand-tagline {
  color: var(--muted);
  font-size: 12px;
  margin: 2px 0 0;
}

.preview-notice {
  padding: 9px 16px;
  background: #eee6d8;
  color: #655332;
  text-align: center;
  font-size: 12px;
}

.explore-container {
  max-width: 1160px;
  margin: auto;
  padding: 24px 16px 48px;
}

.explore-intro {
  padding: 12px 0 20px;
}

.eyebrow {
  color: var(--pinkberry);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 8px;
}

.explore-intro h1 {
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.explore-intro > p:last-child {
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 0;
}

.explore-search {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: var(--pinkberry-dark);
  margin-bottom: 6px;
}

input[type="search"], select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  color: var(--text);
  padding: 12px;
  font-size: 16px;
}

.explore-tiles,
.feature-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.category-tile {
  padding: 0 0 14px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow);
}

.category-tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}

.dining-tile {
  background: var(--dining-light);
  color: #704c51;
}

.shopping-tile {
  background: var(--shopping-light);
  color: #42636b;
}

.category-tile[aria-pressed="true"] {
  border-color: currentColor;
}

.tile-title {
  display: block;
  font-size: 21px;
  font-weight: 750;
  margin: 10px 0 2px;
}

.category-tile > span:last-child {
  font-size: 12px;
}

.feature-tile {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface);
}

.feature-tile > span:first-child {
  font-size: 26px;
}

.feature-tile h2 {
  font-size: 16px;
  margin: 8px 0;
}

.feature-tile p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.feature-status {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.directory-section {
  margin-top: 32px;
}

.directory-section > h2 {
  font-size: 25px;
  margin-bottom: 16px;
}

.directory-filters {
  background: var(--surface);
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.type-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.type-filters button {
  flex: 1;
  padding: 9px 13px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 24px;
  color: var(--pinkberry-dark);
}

.type-filters button[aria-pressed="true"] {
  background: var(--pinkberry-dark);
  border-color: var(--pinkberry-dark);
  color: white;
}

.filter-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.filter-fields > div {
  min-width: 0;
}

#clear-filters {
  margin-top: 10px;
  padding: 8px 0;
  background: transparent;
  border: 0;
  color: var(--pinkberry-dark);
  text-decoration: underline;
}

#result-count {
  font-size: 13px;
  color: var(--muted);
  margin: 18px 0 12px;
}

.business-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.business-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
}

.business-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.business-card-content {
  min-width: 0;
}

.business-type {
  margin-bottom: 5px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  font-weight: 650;
}

.business-name {
  font-size: 18px;
  margin-bottom: 6px;
}

.business-categories {
  color: var(--shopping);
  font-size: 12px;
  margin-bottom: 7px;
}

.business-description {
  color: var(--text);
  font-size: 13px;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.business-address {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.business-review {
  font-size: 11px;
  color: #806b43;
  margin-bottom: 8px;
}

.business-details-button {
  border: 1px solid var(--border);
  border-radius: 9px;
  background: white;
  color: var(--pinkberry-dark);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 650;
}

#directory-error,
#empty-state {
  padding: 24px;
  text-align: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

#directory-error {
  color: #8a3541;
}

dialog {
  width: min(92vw, 620px);
  max-height: 85vh;
  max-height: 85dvh;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  background: white;
  overflow-y: auto;
  box-shadow: 0 16px 60px rgba(0,0,0,.2);
}

dialog::backdrop {
  background: rgba(40,26,32,.6);
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.detail-header h2 {
  font-size: 23px;
  margin-bottom: 0;
}

.detail-header button {
  background: var(--pinkberry-dark);
  color: white;
  border: 0;
  border-radius: 10px;
  padding: 9px 15px;
}

#detail-content img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 18px;
}

#detail-content p {
  margin-bottom: 12px;
}

.site-footer {
  background: white;
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 24px 16px;
  padding-bottom: max(24px,
    env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 12px;
}

.site-footer p {
  margin-bottom: 5px;
}

.site-footer p:first-child {
  font-size: 15px;
  font-weight: 700;
  color: var(--pinkberry-dark);
}

@media (min-width: 640px) {
  .explore-container {
    padding: 32px 24px 64px;
  }

  .explore-tiles,
  .feature-tiles {
    gap: 18px;
  }

  .category-tile img {
    max-height: 220px;
    object-fit: contain;
  }

  .business-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-card {
    display: flex;
    flex-direction: column;
  }

  .business-card-content {
    width: 100%;
  }

  .business-image {
    max-height: 200px;
    object-fit: contain;
    background: var(--cream);
  }
}

@media (min-width: 1000px) {
  .business-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 360px) {
  .business-card {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 9px;
  }

  .filter-fields {
    grid-template-columns: 1fr;
  }

  .feature-tile {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  & {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}


/* V20 enhanced business profiles */

.detail-header {
  position: sticky;
  top: -20px;
  z-index: 5;
  background: var(--surface);
  padding-top: 12px;
}

#detail-content img {
  max-height: 180px;
  object-fit: contain;
  background: var(--cream);
}

.profile-section {
  margin: 16px 0;
  padding: 15px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.profile-section h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.profile-section h4 {
  color: var(--pinkberry-dark);
  margin: 0 0 10px;
  font-size: 14px;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.profile-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  background: white;
  color: var(--pinkberry-dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.profile-actions .profile-action {
  flex: 1 1 120px;
}

.profile-schedule {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}

.profile-hours-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.profile-hours-row span:last-child {
  text-align: right;
}

.profile-note {
  color: var(--muted);
  font-size: 12px;
  margin: 10px 0;
}

.profile-warning {
  background: #eee6d8;
  color: #655332;
  padding: 10px;
  border-radius: 9px;
  font-size: 12px;
}

.profile-source {
  border-top: 1px solid var(--border);
  padding: 10px 0;
  font-size: 12px;
}

.profile-section summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--pinkberry-dark);
}



/* V20 on-demand business spotlights */

.spotlight-audio {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  margin: 12px 0;
  border-radius: 12px;
}


/* V20 interactive business map */

.business-map-wrapper {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #d9cfc7;
  background: #faf7f1;
  color: #333333;
  border-radius: 16px;
}

.business-map-panel[hidden] {
  display: none !important;
}

.business-map-canvas {
  width: 100%;
  height: 440px;
  height: min(440px, 55dvh);
  min-height: 300px;
  background: #eeeae1;
  border-radius: 12px;
  border: 1px solid #d9cfc7;
  isolation: isolate;
  z-index: 0;
}

.map-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.map-controls input,
.map-controls select {
  min-height: 44px;
  max-width: 100%;
  flex: 1 1 150px;
  padding: 8px;
  font-size: 16px;
  border: 1px solid #c9c1b8;
  border-radius: 8px;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0;
  font-size: 13px;
}

.map-legend span::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 5px;
  border-radius: 50%;
}

.map-dining::before {
  background: #b54d79;
}

.map-shopping::before {
  background: #087f83;
}

.map-mixed::before {
  background: #7255a8;
}

.map-marker-count {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: white !important;
  font-weight: bold;
  pointer-events: none;
}

.map-business-popup {
  color: #333333;
  min-width: 160px;
}

.map-popup-business {
  border-top: 1px solid #dedede;
  padding: 8px 0;
}

.map-popup-business p {
  margin: 4px 0;
  font-weight: 600;
}

.map-popup-business .profile-action {
  display: block;
  margin-top: 8px;
  min-height: 44px;
}


/* V20 street map refinements */

.business-map-canvas {
  background: #e5e2d9;
}

.street-label-icon {
  background: transparent !important;
  border: 0 !important;
  pointer-events: none !important;
}

.street-label-text {
  display: block;
  width: 100%;
  white-space: nowrap;
  text-align: center;
  transform-origin: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  color: #55534e;
  text-shadow:
    -1px -1px 0 #ffffff,
     1px -1px 0 #ffffff,
    -1px  1px 0 #ffffff,
     1px  1px 0 #ffffff;
  pointer-events: none;
}


}

/* Pinkberry Cottage unified navy-and-gold theme */

#explore {
    --pinkberry: #aa7435;
    --pinkberry-dark: #142c3c;
    --cream: #fff8ed;
    --surface: #ffffff;
    --text: #293c43;
    --muted: #53646b;
    --border: #d8c6ab;

    background: #142c3c;
    color: #fff8ed;
    scroll-margin-top: 200px;
    padding: 24px 0 40px;
    font-family: -apple-system, BlinkMacSystemFont,
                 "Segoe UI", sans-serif;
}

#explore .explore-container {
    max-width: 1160px;
}

#explore .explore-private-notice {
    color: #f2c58c;
    text-align: center;
    font-size: 12px;
    margin-bottom: 22px;
}

#explore .explore-intro {
    text-align: center;
    padding-bottom: 26px;
}

#explore .explore-intro h2 {
    color: #fff8ed;
    font-family: Georgia, serif;
    font-size: clamp(30px, 5vw, 48px);
    margin: 12px 0;
    line-height: 1.2;
}

#explore .explore-intro .eyebrow {
    color: #f2c58c;
    letter-spacing: .15em;
}

#explore .explore-intro > p:last-child {
    color: #e2e9ed;
    margin-left: auto;
    margin-right: auto;
}

#explore .explore-search > label,
#explore .directory-section > h2,
#explore #result-count {
    color: #fff8ed;
}

#explore .directory-section > h2 {
    font-family: Georgia, serif;
}

#explore .category-tile {
    background: #fff8ed;
    color: #142c3c;
    border-color: #d8c6ab;
}

#explore .category-tile[aria-pressed="true"] {
    border-color: #f2c58c;
    box-shadow: 0 0 0 2px #f2c58c;
}

#explore .feature-tile,
#explore .directory-filters,
#explore .business-card {
    background: #fff8ed;
    color: #293c43;
    border-color: #d8c6ab;
}

#explore .feature-tile h2,
#explore .business-name {
    color: #142c3c;
}

#explore .business-details-button,
#explore .profile-action {
    background: #f2c58c;
    color: #142c3c;
    border-color: #d8b080;
}

#explore .type-filters button[aria-pressed="true"] {
    background: #142c3c;
    color: #fff8ed;
}

#explore .business-map-wrapper {
    background: #fff8ed;
    color: #293c43;
}

#explore dialog {
    background: #fff8ed;
    color: #293c43;
}

#explore .detail-header {
    background: #fff8ed;
}

#explore .detail-header button {
    background: #142c3c;
    color: #fff8ed;
}

#explore .feature-status {
    color: #42636b;
}

#explore img {
    box-shadow: none;
}

#explore .leaflet-container {
    font-size: 12px;
}

#explore .leaflet-container img {
    max-width: none;
}

#explore [hidden] {
    display: none !important;
}

@media(max-width:700px) {
    #explore {
        padding-top: 12px;
    }

    #explore .explore-container {
        padding: 16px 12px 28px;
    }

    #explore .explore-intro h2 {
        font-size: 32px;
    }
}


/* V20 interactive map integration */

#explore .map-feature-button {
    width: 100%;
    text-align: left;
    font: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

#explore .map-feature-button:hover,
#explore .map-feature-button:focus-visible {
    border-color: #aa7435;
    box-shadow: 0 0 0 2px #f2c58c;
}

#explore .map-feature-button .feature-heading {
    display: block;
    color: #142c3c;
    font-size: 16px;
    margin: 8px 0;
}

#explore .map-feature-button .feature-description {
    display: block;
    color: #53646b;
    font-size: 13px;
    margin-bottom: 12px;
}

#explore .map-feature-button .feature-status {
    display: block;
    color: #142c3c;
    font-weight: 700;
    text-decoration: underline;
}

#explore #explore-business-map {
    scroll-margin-top: 150px;
}

#explore .business-map-wrapper > button {
    background: #142c3c;
    color: #fff8ed;
    border: 1px solid #aa7435;
    border-radius: 10px;
    padding: 10px 18px;
    min-height: 44px;
    font-weight: 650;
}

#explore .business-map-canvas {
    width: 100%;
    min-height: 300px;
    height: 440px;
    height: min(440px, 55dvh);
}

