/* Owner portfolio page (also uses listing.css for topbar, welcome, host, footer) */

.o-hero { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(24px, 3vw, 36px); }
.o-hero h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); font-weight: 700; letter-spacing: -0.035em; max-width: 18ch; }
.o-sub { color: var(--ink-2); font-size: clamp(1.02rem, 1.3vw, 1.15rem); margin-top: 14px; max-width: 56ch; }

/* Search bar */
.search { position: relative; z-index: 15; display: grid; grid-template-columns: 1.1fr 1.4fr 1fr auto; align-items: stretch; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.s-field { display: grid; align-content: center; gap: 2px; padding: 12px 18px; min-height: 72px; position: relative; }
.s-field + .s-field { border-left: 1px solid var(--line); }
.s-field label, .s-label { font-size: 0.76rem; font-weight: 600; color: var(--ink-2); }
.s-select { appearance: none; border: 0; background: transparent; font-size: 1rem; padding: 2px 24px 2px 0; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: right 8px center, right 3px center; background-size: 5px 5px; background-repeat: no-repeat; }
.s-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.s-select option { background: var(--surface); color: var(--ink); }
.s-btn { border: 0; background: none; padding: 2px 0; text-align: left; font-size: 1rem; cursor: pointer; color: var(--ink-3); }
.s-btn.is-set { color: var(--ink); }
.s-guests .step-ctrl { justify-content: flex-start; }
.s-reset { align-self: center; margin: 0 18px; }
.s-pop { position: absolute; top: calc(100% + 10px); left: -1px; width: min(620px, calc(100vw - 32px)); padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.s-pop-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 820px) {
  .search { grid-template-columns: 1fr 1fr; }
  .s-dates { grid-column: 1 / -1; order: -1; border-bottom: 1px solid var(--line); }
  .s-field + .s-field { border-left: 0; }
  .s-guests { border-left: 1px solid var(--line) !important; }
  .s-reset { grid-column: 1 / -1; justify-self: start; margin: 0 18px 12px; }
  .s-pop { left: 8px; right: 8px; width: auto; }
}

/* Browse: list + sticky map */
.o-browse { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); gap: clamp(24px, 3vw, 40px); align-items: start; padding-bottom: clamp(48px, 7vw, 88px); }
.o-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; color: var(--ink-2); margin-bottom: 8px; }
.o-map-toggle { display: none; }
.o-city { padding-top: 24px; }
.o-city + .o-city { margin-top: 20px; border-top: 1px solid var(--line); }
.o-city h2 { font-size: 1.6rem; display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.o-city h2 span { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; letter-spacing: 0; color: var(--ink-3); }
.o-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.o-card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; text-decoration: none; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.3s; }
.o-card:hover, .o-card.is-hot { transform: translateY(-3px); box-shadow: var(--shadow); }
.o-card.is-hot { outline: 2px solid var(--accent); outline-offset: 2px; }
.o-card.is-dim { opacity: 0.62; }
.o-card.is-dim:hover { opacity: 1; }
.o-photo { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); display: block; }
.o-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.o-card:hover .o-photo img { transform: scale(1.04); }
.o-body { display: grid; gap: 4px; padding: 16px 18px 18px; align-content: start; }
.o-type { font-size: 0.78rem; font-weight: 600; color: var(--accent); }
.o-name { font-family: var(--font-display); font-weight: 650; font-size: 1.22rem; letter-spacing: -0.015em; line-height: 1.2; }
.o-addr { display: flex; align-items: center; gap: 5px; font-size: 0.88rem; color: var(--ink-2); }
.o-facts { font-size: 0.88rem; color: var(--ink-2); }
.o-foot { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.o-status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.84rem; color: var(--ink-2); }
.o-status i { font-size: 1rem; }
.o-status.is-yes { color: var(--ok); font-weight: 550; }
.o-status.is-no { color: var(--ink-3); }
.o-status.is-loading { color: var(--ink-3); }
.o-price { white-space: nowrap; font-size: 0.84rem; color: var(--ink-2); }
.o-price b { font-size: 1.02rem; color: var(--ink); font-weight: 500; }
.o-skel { height: 340px; border-radius: var(--radius); background: var(--surface-2); margin-top: 20px; animation: pulse 1.4s ease-in-out infinite; }
.o-empty { display: grid; justify-items: start; gap: 12px; padding: 28px; border-radius: var(--radius); border: 1px dashed var(--line); margin-top: 20px; color: var(--ink-2); }
.o-empty i { font-size: 2rem; color: var(--accent); }
.o-empty strong { color: var(--ink); }
.o-empty-inline { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .o-skel { animation: none; } }

.o-map-wrap { position: sticky; top: 84px; }
.o-map { height: min(calc(100dvh - 108px), 760px); min-height: 420px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); z-index: 1; }
.o-map-off { padding: 24px; color: var(--ink-2); }
.o-pin-wrap { background: none; border: 0; }
.o-pin { display: inline-block; transform: translate(-50%, -100%); padding: 5px 10px; border-radius: var(--pill); background: var(--surface); color: var(--ink); border: 1px solid var(--line); font: 600 0.82rem/1.2 var(--font-mono); white-space: nowrap; box-shadow: 0 4px 14px rgb(2 39 66 / 0.25); transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease); cursor: pointer; }
.o-pin.is-left { transform: translate(calc(-100% - 2px), -100%); }
.o-pin.is-right { transform: translate(2px, -100%); }
.o-pin.is-hot { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.o-pin.is-hot:not(.is-left):not(.is-right) { transform: translate(-50%, -100%) scale(1.1); }
.o-pin::after { content: ''; position: absolute; }
.leaflet-tile-pane { filter: saturate(0.45) contrast(0.95) brightness(1.03); }
@media (prefers-color-scheme: dark) {
  .leaflet-tile-pane { filter: invert(1) hue-rotate(185deg) saturate(0.15) brightness(0.8) contrast(0.9); }
  .leaflet-control-zoom a, .leaflet-control-attribution { background: var(--surface) !important; color: var(--ink-2) !important; border-color: var(--line) !important; }
  .leaflet-control-attribution a { color: var(--ink) !important; }
}
.o-pin.is-dim { opacity: 0.5; }
.leaflet-container { font-family: var(--font-body); background: var(--surface-2); }
.leaflet-control-attribution { font-size: 0.68rem; }

@media (max-width: 1080px) {
  .o-browse { grid-template-columns: minmax(0, 1fr); }
  .o-map-toggle { display: inline-flex; }
  .o-map-wrap { position: static; display: none; grid-row: 1; }
  .o-map-wrap.is-open { display: block; }
  .o-map { height: 360px; min-height: 0; }
}
@media (max-width: 640px) { .o-cards { grid-template-columns: minmax(0, 1fr); } }

.o-about { padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.o-about .host { max-width: 760px; }
.o-about .host p + p { margin-top: 12px; }
