/* Property Explorer layout. Site header, footer, fonts and buttons use shared styles. */
.explorer { padding-block: clamp(20px, 3vw, 36px) 36px; }
.explorer h1 { margin: 0; font-size: clamp(1.85rem, 2.8vw, 2.65rem); line-height: 1.12; }
.explorer-intro { margin: 7px 0 18px; color: var(--muted, #59554d); }
.explorer-filter-fields, .explorer-pills, .explorer-views, .explorer-card-actions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: end;
}
.explorer-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.explorer-search { display: flex; align-items: center; gap: 8px; flex: 1 1 280px; min-width: 0; }
.explorer-search input { flex: 1; min-width: 0; }
.explorer input[type=search], .explorer select {
  min-height: 44px; width: 100%; font: inherit; color: inherit; border-radius: 8px;
  border: 1px solid #d6d2c7; padding: 8px 10px; background: #fff;
}
.explorer-filter { padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin: 0; }
.explorer-filter[open] { grid-column: 1 / -1; }
.explorer-filter summary { cursor: pointer; padding: 9px 11px; min-height: 44px; font-size: .92rem; line-height: 1.45; font-weight: 600; }
.explorer-filter-fields { padding: 0 12px 12px; }
.explorer-filter-fields > label { flex: 1 1 145px; min-width: 0; font-size: .86rem; text-transform: none; letter-spacing: 0; }
.explorer-filter-fields select { display: block; margin-top: 3px; }
.explorer-filter-fields .explorer-tile-toggle { display: flex; flex: 0 1 auto; min-height: 44px; align-items: center; gap: 7px; }
.explorer-tile-toggle input[type=checkbox] { width: auto; padding: 0; }
.explorer-pills { margin: 11px 0 14px; }
.explorer button:not(.button):not(.maplibregl-ctrl button) { font: inherit; }
.explorer button:disabled, .explorer button[aria-disabled=true] { opacity: .65; }
.explorer-chip {
  min-height: 44px; padding: 6px 12px; border: 1px solid #d6d2c7; border-radius: 999px;
  background: #fff; color: var(--ink); cursor: pointer; white-space: normal;
}
.explorer-chip[aria-pressed=true] { background: #f4ece0; border-color: #b8843e; font-weight: 600; }
.explorer [hidden] { display: none !important; }
.explorer-views { display: none; margin-bottom: 10px; }
.explorer-grid { display: grid; grid-template-columns: minmax(270px, 30%) minmax(0, 1fr); gap: 12px; }
.explorer-results, .explorer-map-panel { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.explorer-results { display: flex; flex-direction: column; min-height: 0; }
.explorer-result-heading {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.explorer-result-heading h2 { margin: 0; font-size: 1rem; }
.explorer-result-heading select { max-width: min(52%, 155px); }
.explorer-list { height: clamp(420px, 67svh, 746px); overflow: auto; padding: 10px; overscroll-behavior: contain; }
.explorer-list p { margin: 8px; }
.explorer-fallback-links { margin: 10px; padding-inline-start: 20px; }
.explorer-card { overflow: hidden; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.explorer-list .explorer-card + .explorer-card { margin-top: 7px; }
.explorer-card.is-selected { outline: 2px solid #a36d19; outline-offset: -2px; }
.explorer-card img { display: block; width: 100%; height: 115px; object-fit: cover; background: #f4efe6; }
.explorer-row {
  display: grid; grid-template-columns: 66px minmax(0, 1fr); align-items: start; gap: 9px;
  width: 100%; padding: 8px; border: 0; background: transparent;
  color: var(--ink); text-align: left; cursor: pointer;
}
.explorer-row:hover, .explorer-row[aria-expanded=true] { background: #fbf6eb; }
.explorer-row:focus-visible { outline-offset: -3px; }
.explorer-row-photo {
  display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 1;
  background: #f4efe6;
}
.explorer-row-photo img { height: 100%; }
.explorer-row-summary { display: grid; min-width: 0; align-content: center; gap: 3px; min-height: 66px; }
.explorer-row-name { font-size: .96rem; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.explorer-row-summary .explorer-card-info { font-size: .77rem; }
.explorer-row-bottom { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 6px; }
.explorer-row-cue { display: inline-flex; align-items: center; gap: 5px; color: #725017; font-size: .72rem; }
.explorer-row-cue::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.explorer-row[aria-expanded=true] .explorer-row-cue::after { transform: translateY(2px) rotate(225deg); }
.explorer-row-details { border-top: 1px solid var(--line); }
.explorer-card-body { display: grid; gap: 6px; padding: 11px; }
.explorer-card-body h3, .explorer-card-body p, .explorer-list .explorer-card-body p { margin: 0; }
.explorer-card-body h3 { font-size: 1.025rem; line-height: 1.2; }
.explorer-card-info { color: #514c42; font-size: .82rem; line-height: 1.45; }
.explorer-card-facts { display: grid; gap: 2px; }
.explorer-fact-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.explorer-card-fact { display: inline-flex; align-items: flex-start; gap: 4px; min-width: 0; }
.explorer-card-fact svg { flex: 0 0 15px; margin-top: 2px; color: #88621e; }
.explorer-card-highlights {
  display: grid; gap: 2px; margin: 2px 0; padding-inline-start: 15px;
  color: #392c1b; font-size: .8rem; line-height: 1.35;
}
.explorer-card-highlights li::marker { color: #a36d19; }
.explorer-layouts {
  border: 1px solid #eee4d2; border-radius: 7px; background: #fcf9f2;
  padding: 6px 8px; font-size: .8rem; line-height: 1.35;
}
.explorer-layouts-heading, .explorer-layouts li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 7px; overflow-wrap: anywhere;
}
.explorer-layouts-heading span { color: #6b5b45; font-size: .72rem; }
.explorer-layouts ul { margin: 4px 0 0; padding: 0; list-style: none; }
.explorer-layouts li { padding: 3px 0; border-top: 1px solid #eee4d2; }
.explorer-layout-size { flex: 0 1 auto; min-width: 0; text-align: right; font-variant-numeric: tabular-nums; }
.explorer-card-price { font-size: .91rem; font-weight: 700; }
.explorer-card-price small { color: #514c42; display: block; font-weight: 400; line-height: 1.4; }
.explorer-card-actions { align-items: center; gap: 6px; }
.explorer-card-actions .button, .explorer-card-actions button {
  min-height: 44px; font-size: .8rem; padding: 6px 10px; white-space: normal; text-align: center;
}
.explorer-card-actions a.button { display: inline-flex; justify-content: center; align-items: center; }
.explorer-card-actions a.explorer-whatsapp {
  width: 44px; padding: 0;
  background: #20882c !important; border-color: #20882c !important;
}
.explorer-card-actions a.explorer-whatsapp:hover { background: #196f25 !important; }
.explorer-map-panel { display: flex; flex-direction: column; }
.explorer-map-stage { flex: 1; min-height: clamp(400px, 63svh, 714px); position: relative; background: #f4f1eb; }
#explorer-map { position: absolute; inset: 0; }
.explorer-map-bar {
  position: relative; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.explorer-map-status { margin: 12px; position: absolute; z-index: 1; background: #fff; color: var(--ink); padding: 8px 10px; border-radius: 8px; max-width: calc(100% - 80px); }
.explorer-map-stage .maplibregl-ctrl button { width: 44px; height: 44px; }
.explorer-map-card {
  position: absolute; z-index: 2; inset: auto auto 30px 10px; width: min(330px, calc(100% - 68px));
  max-height: calc(100% - 46px); overflow: auto; border-radius: 10px; box-shadow: 0 5px 22px #0002;
}
.explorer-map-card .explorer-card img { height: 92px; }
.explorer-map-card-tools { display: flex; justify-content: space-between; align-items: center; padding: 6px; background: #fff; }
.explorer-page .compare-bar { display: none; }
.explorer-pin {
  display: inline-flex; flex-direction: column; align-items: center; gap: 3px; min-width: 44px;
  padding: 0; border: 0; background: transparent; color: #29251e; cursor: pointer;
  font: 600 .75rem/1.22 Inter, sans-serif !important;
}
.explorer-pin-tag {
  display: grid; gap: 2px; max-width: 150px; padding: 5px 7px;
  border: 1px solid #ad8341; border-radius: 7px; background: #fffaf0;
  box-shadow: 0 2px 7px #36230e38; text-align: center; overflow-wrap: anywhere;
}
.explorer-pin-price, .explorer-pin-more { color: #80581c; font-size: .7rem; }
.explorer-pin-drop { display: block; fill: #b17a24; filter: drop-shadow(0 2px 3px #35201055); }
.explorer-pin[aria-pressed=true] { z-index: 2; }
.explorer-pin[aria-pressed=true] .explorer-pin-tag { background: #80521d; color: #fff; border-color: #6d4216; }
.explorer-pin[aria-pressed=true] :is(.explorer-pin-price, .explorer-pin-more) { color: #fff0d3; }
.explorer-pin[aria-pressed=true] .explorer-pin-drop { fill: #80521d; }
.explorer-pin.is-cluster {
  justify-content: center; min-height: 42px; background: #e2ab53;
  border: 1px solid #9b6a1c; border-radius: 50%; box-shadow: 0 1px 5px #0003;
}
.explorer-map-note { color: #514c42; font-size: .85rem; margin: 12px 0 0; }
.explorer-fallback-notice { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.explorer-pin:focus-visible { z-index: 3; }
.explorer-map-card button { min-height: 44px; }
@media (max-width: 900px) {
  .explorer-views { display: flex; }
  .explorer-grid { grid-template-columns: minmax(0, 1fr); }
  .explorer.is-enhanced[data-view=map] .explorer-results, .explorer.is-enhanced[data-view=list] .explorer-map-panel { display: none; }
  .explorer-map-stage { min-height: clamp(320px, 62svh, 680px); }
  .explorer-list { height: auto; max-height: none; overflow: visible; }
  .explorer-map-card { inset: auto 10px 28px; width: auto; max-width: 420px; max-height: min(52%, 280px); }
  .explorer-map-card .explorer-card img { display: none; }
  .explorer-pin { min-height: 40px; }
}
@media (max-width: 480px) {
  .explorer-filter-fields > label { flex-basis: calc(50% - 5px); }
  .explorer-filter summary { font-size: .82rem; }
  .explorer-pills { gap: 5px; }
  .explorer-pills .explorer-chip { font-size: .82rem; padding-inline: 8px; }
}

/* Railway discovery and sharing */
.explorer-search { position: relative; }
#explorer-suggestions {
  position: absolute; inset: calc(100% + 4px) 0 auto; z-index: 8;
  max-height: min(330px, 55vh); overflow-y: auto;
  border: 1px solid #dfd1bb; border-radius: 9px; background: #fffdf8; box-shadow: 0 5px 22px #0002;
}
#explorer-suggestions [role=group] + [role=group] { border-top: 1px solid var(--line); }
#explorer-suggestions strong { display: block; padding: 8px 12px 3px; font-size: .75rem; color: #6e542c; }
#explorer-suggestions button {
  display: block; width: 100%; min-height: 38px; padding: 7px 12px;
  border: 0; background: transparent; text-align: left; cursor: pointer;
}
#explorer-suggestions button:hover, #explorer-suggestions [aria-selected=true] { background: #f4ead8; }
#explorer-other-region { width: auto; max-width: 150px; }
.explorer-rail-control { position: relative; margin: 0; padding: 0; border: 0; }
.explorer-rail-control summary { display: flex; align-items: center; gap: 6px; list-style: none; font: inherit; }
.explorer-rail-control summary::after { content: "⌄"; color: #82591d; }
.explorer-rail-menu {
  position: absolute; z-index: 5; top: calc(100% + 4px); right: 0; width: min(250px, calc(100vw - 64px));
  max-height: 55vh; overflow: auto; padding: 10px; background: #fffdf8; border: 1px solid #dfd1bb;
  border-radius: 9px; box-shadow: 0 6px 22px #0002;
}
.explorer-rail-menu label {
  display: flex; align-items: center; gap: 6px; min-height: 33px;
  font-size: .82rem; text-transform: none; letter-spacing: normal;
}
.explorer-rail-menu input[type=checkbox] { width: auto; margin: 0; }
.explorer-rail-buttons { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.explorer-rail-buttons button { padding-inline: 8px; }
.explorer-rail-menu p { padding: 0; margin: 5px 0; font-size: .8rem; }
.explorer-rail-badge { display: inline-flex; align-items: center; gap: 5px; }
.explorer-rail-badge i { width: 9px; height: 9px; flex: 0 0 9px; border: 1px solid #665448; border-radius: 50%; background: var(--rail-color); }
.explorer-station-card { padding: 10px; background: #fffdf8; border: 1px solid #dfd1bb; font-size: .84rem; }
.explorer-station-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.explorer-station-head h3 { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.explorer-station-card p { margin: 5px 0 8px; }
.explorer-station-card label { letter-spacing: normal; text-transform: none; font-size: .82rem; }
.explorer-station-lines { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 8px; }
.explorer-station-card .button { min-height: 44px; white-space: normal; text-align: center; padding: 6px 12px; }
.explorer-card-rail { border-inline-start: 2px solid #dac197; padding-inline-start: 7px; font-size: .79rem; }
.explorer-card-rail > div { display: flex; flex-wrap: wrap; gap: 1px 8px; }
#explorer-share-status { font-size: .8rem; }
#explorer-share-status input { width: min(230px, 65vw); }
.explorer-rail-intro { margin-top: 16px; }
.explorer-rail-intro h2 { font-size: 1.04rem; margin: 0 0 4px; }
.explorer-rail-intro p { font-size: .88rem; margin: 0; }
@media (max-width: 480px) {
  .explorer-rail-menu { inset-inline: 0 auto; width: min(220px, calc(100vw - 64px)); }
  .explorer-rail-control { position: static; }
  .explorer-rail-menu { left: 9px; top: 100%; }
}
