/**
 * Public-profile stylesheet for the Accommodation vertical.
 *
 * Scoped to `.sotmh-pp__*` so it never leaks into the theme or other
 * plugin surfaces. Reads brand tokens off :root and falls back to hex
 * values if the theme tokens aren't loaded (e.g. an older theme
 * version or a network-admin preview).
 *
 * Layout target: Booking.com property-detail page —
 *   - full-bleed hero with photo + rating
 *   - 6-tile mosaic gallery
 *   - 2-column body grid (content + sticky right-rail booking widget)
 *   - reviews → map → nearby → policies → host
 *   - bottom CTA strip
 *
 * Brand:
 *   --ocean       #0A4D6E   primary CTAs, links
 *   --ocean-deep  #063349   hover, scrim
 *   --paper       #FBF8F2   page-level neutrals
 *   --paper-2     #F3EFE6   cards, hover
 *   --ink         #0F1F24   body copy
 *   --line        #DDD3BE   borders
 *   --forest      #1F5A36   secondary CTAs, "open" state
 */

.sotmh-pp {
    /* Brand tokens, with hex fallbacks so the page still looks right
     * if the theme doesn't expose them. */
    --sotmh-ocean: var(--ocean, #0A4D6E);
    --sotmh-ocean-deep: var(--ocean-deep, #063349);
    --sotmh-forest: var(--forest, #1F5A36);
    --sotmh-paper: var(--paper, #FBF8F2);
    --sotmh-paper-2: var(--paper-2, #F3EFE6);
    --sotmh-ink: var(--ink, #0F1F24);
    --sotmh-ink-2: var(--ink-2, #2B3D44);
    --sotmh-ink-3: var(--ink-3, #546870);
    --sotmh-line: var(--line, #DDD3BE);

    --sotmh-radius: 14px;
    --sotmh-radius-sm: 10px;
    --sotmh-shadow: 0 1px 2px rgba(15, 31, 36, .04), 0 8px 24px rgba(15, 31, 36, .06);

    max-width: var(--stot-shell-max, 1280px);
    margin: 0 auto;
    padding: 0 1rem 4rem;

    font-family: var(--sans, 'Inter Tight', system-ui, -apple-system, sans-serif);
    color: var(--sotmh-ink);
    line-height: 1.55;
}

.sotmh-pp *,
.sotmh-pp *::before,
.sotmh-pp *::after { box-sizing: border-box; }

.sotmh-pp h1,
.sotmh-pp h2,
.sotmh-pp h3,
.sotmh-pp .sotmh-pp__section-title {
    font-family: var(--serif, 'Fraunces', Georgia, serif);
    color: var(--sotmh-ink);
    line-height: 1.2;
    margin: 0 0 .75rem;
    font-weight: 600;
}
.sotmh-pp h1 { font-size: clamp(1.85rem, 4.2vw, 2.6rem); }
.sotmh-pp h2,
.sotmh-pp .sotmh-pp__section-title { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 2.25rem 0 1rem; }
.sotmh-pp h3 { font-size: 1.1rem; }

.sotmh-pp p { margin: 0 0 .75rem; color: var(--sotmh-ink-2); }

/* ─── Buttons ─────────────────────────────────────────────────────── */
.sotmh-pp__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    background: var(--sotmh-ocean);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1;
    padding: .7rem 1.15rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .15s ease, transform .05s ease, box-shadow .15s ease;
    font-family: inherit;
}
.sotmh-pp__btn:hover { background: var(--sotmh-ocean-deep); color: #fff; }
.sotmh-pp__btn:active { transform: translateY(1px); }
.sotmh-pp__btn:focus-visible {
    outline: 3px solid color-mix(in oklab, var(--sotmh-ocean) 40%, transparent);
    outline-offset: 2px;
}
.sotmh-pp__btn--primary { background: var(--sotmh-ocean); }
.sotmh-pp__btn--forest { background: var(--sotmh-forest); }
.sotmh-pp__btn--forest:hover { background: #163f25; }
.sotmh-pp__btn--wa { background: #25D366; color: #0a3a14; }
.sotmh-pp__btn--wa:hover { background: #1ebd5b; color: #0a3a14; }
.sotmh-pp__btn--ghost {
    background: transparent;
    color: var(--sotmh-ink);
    border-color: var(--sotmh-line);
}
.sotmh-pp__btn--ghost:hover {
    background: var(--sotmh-paper-2);
    color: var(--sotmh-ink);
    border-color: var(--sotmh-ink-3);
}
.sotmh-pp__btn--block { width: 100%; }
.sotmh-pp__btn--lg { padding: .9rem 1.4rem; font-size: 1rem; }

/* ─── Breadcrumb ──────────────────────────────────────────────────── */
.sotmh-pp__crumbs {
    margin: 1rem 0 .25rem;
    font-size: .85rem;
    color: var(--sotmh-ink-3);
}
.sotmh-pp__crumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}
.sotmh-pp__crumbs li::after {
    content: "›";
    color: var(--sotmh-ink-3);
    margin-left: .35rem;
    opacity: .6;
}
.sotmh-pp__crumbs li:last-child::after { content: none; }
.sotmh-pp__crumbs a {
    color: var(--sotmh-ink-3);
    text-decoration: none;
}
.sotmh-pp__crumbs a:hover { color: var(--sotmh-ocean); text-decoration: underline; }
.sotmh-pp__crumbs [aria-current="page"] span {
    color: var(--sotmh-ink);
    font-weight: 600;
}

/* ─── Hero ────────────────────────────────────────────────────────── */
.sotmh-pp__hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}
@media (min-width: 980px) {
    .sotmh-pp__hero { grid-template-columns: 2fr 1fr; }
}
.sotmh-pp__hero-main {
    position: relative;
    min-height: 320px;
    border-radius: var(--sotmh-radius);
    overflow: hidden;
    background: var(--sotmh-paper-2);
    display: flex;
    align-items: flex-end;
}
.sotmh-pp__hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sotmh-pp__hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(6,51,73,.8) 100%);
}
.sotmh-pp__hero-body {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 1.5rem 1.75rem 1.75rem;
    width: 100%;
}
.sotmh-pp__hero-body h1,
.sotmh-pp__hero-title { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.sotmh-pp__hero-loc {
    font-size: .92rem;
    letter-spacing: .04em;
    opacity: .92;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .35rem;
}
.sotmh-pp__hero-headline {
    font-size: 1.05rem;
    margin: .35rem 0 0;
    color: #f3efe6;
    max-width: 60ch;
    text-shadow: 0 1px 6px rgba(0,0,0,.25);
}
.sotmh-pp__hero-rating {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(255,255,255,.94);
    color: var(--sotmh-ink);
    padding: .25rem .6rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    margin-left: .6rem;
    text-shadow: none;
    vertical-align: middle;
}
.sotmh-pp__hero-rating-count { color: var(--sotmh-ink-3); font-weight: 400; }

.sotmh-pp__hero-thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}
.sotmh-pp__hero-thumb,
.sotmh-pp__hero-thumb-more {
    aspect-ratio: 4 / 3;
    border-radius: var(--sotmh-radius-sm);
    overflow: hidden;
    background: var(--sotmh-paper-2);
    display: block;
    position: relative;
}
.sotmh-pp__hero-thumb img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.sotmh-pp__hero-thumb-more {
    display: flex; align-items: center; justify-content: center;
    background: var(--sotmh-ocean-deep); color: #fff;
    font-weight: 600; text-decoration: none;
}

/* ─── Meta bar ────────────────────────────────────────────────────── */
.sotmh-pp__meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
    margin: 1.25rem 0 0;
    padding: 1rem 1.25rem;
    background: var(--sotmh-paper);
    border: 1px solid var(--sotmh-line);
    border-radius: var(--sotmh-radius);
}
.sotmh-pp__meta-rating {
    display: flex;
    align-items: center;
    gap: .65rem;
}
.sotmh-pp__meta-rating-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    padding: .35rem .55rem;
    background: var(--sotmh-ocean);
    color: #fff;
    font-weight: 700;
    font-family: var(--serif, Georgia, serif);
    border-radius: 8px 8px 8px 2px;
}
.sotmh-pp__meta-rating-body { display: flex; flex-direction: column; line-height: 1.25; }
.sotmh-pp__meta-rating-body strong { color: var(--sotmh-ink); font-size: .95rem; }
.sotmh-pp__meta-rating-body small { color: var(--sotmh-ink-3); font-size: .82rem; }

.sotmh-pp__meta-location {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
}
.sotmh-pp__meta-pin { color: var(--sotmh-ocean); font-size: 1.1rem; line-height: 1; }
.sotmh-pp__meta-location strong { display: block; color: var(--sotmh-ink); }
.sotmh-pp__meta-location small {
    display: block;
    color: var(--sotmh-ink-3);
    font-size: .85rem;
    margin-top: .15rem;
}

/* ─── Gallery mosaic ──────────────────────────────────────────────── */
.sotmh-pp__gallery { margin-top: 1.5rem; }
.sotmh-pp__gallery-mosaic {
    position: relative;
    display: grid;
    gap: .5rem;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr);
    border-radius: var(--sotmh-radius);
    overflow: hidden;
    min-height: 280px;
}
@media (min-width: 720px) {
    .sotmh-pp__gallery-mosaic {
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        min-height: 420px;
    }
}
.sotmh-pp__gallery-tile {
    margin: 0;
    overflow: hidden;
    background: var(--sotmh-paper-2);
}
.sotmh-pp__gallery-tile img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
@media (min-width: 720px) {
    .sotmh-pp__gallery-tile--lead { grid-row: 1 / 3; grid-column: 1 / 2; }
}
.sotmh-pp__gallery-cta {
    position: absolute;
    bottom: 1rem; right: 1rem;
    background: #fff;
    color: var(--sotmh-ink);
    border-radius: 8px;
    padding: .55rem .9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--sotmh-line);
    box-shadow: var(--sotmh-shadow);
    display: inline-flex; align-items: center; gap: .4rem;
}
.sotmh-pp__gallery-cta:hover { background: var(--sotmh-paper-2); color: var(--sotmh-ink); }

.sotmh-pp__gallery-full { display: grid; gap: .5rem; margin-top: 1rem; }
.sotmh-pp__gallery-full img { width: 100%; height: auto; border-radius: var(--sotmh-radius-sm); display: block; }

/* ─── Body grid (content + sticky booking) ───────────────────────── */
.sotmh-pp__body {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    margin-top: 2rem;
}
@media (min-width: 980px) {
    .sotmh-pp__body { grid-template-columns: minmax(0, 1fr) 360px; }
}

/* ─── Booking widget (right rail) ─────────────────────────────────── */
.sotmh-pp__booking {
    background: #fff;
    border: 1px solid var(--sotmh-line);
    border-radius: var(--sotmh-radius);
    padding: 1.25rem;
    box-shadow: var(--sotmh-shadow);
    align-self: start;
}
@media (min-width: 980px) {
    .sotmh-pp__booking { position: sticky; top: 1.25rem; }
}
.sotmh-pp__booking-price {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.sotmh-pp__booking-price-from { font-size: .85rem; color: var(--sotmh-ink-3); }
.sotmh-pp__booking-price-amount {
    font-family: var(--serif, Georgia, serif);
    font-size: 1.5rem;
    color: var(--sotmh-ink);
}
.sotmh-pp__booking-price-unit { font-size: .85rem; color: var(--sotmh-ink-3); }

.sotmh-pp__booking-form { display: grid; gap: .75rem; }
.sotmh-pp__booking-row { display: grid; gap: .5rem; }
.sotmh-pp__booking-row--dates { grid-template-columns: 1fr 1fr; }
.sotmh-pp__field { display: flex; flex-direction: column; gap: .3rem; }
.sotmh-pp__field-label {
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--sotmh-ink-2);
    font-weight: 700;
}
.sotmh-pp__field input,
.sotmh-pp__field select {
    width: 100%;
    border: 1px solid var(--sotmh-line);
    background: #fff;
    border-radius: var(--sotmh-radius-sm);
    padding: .65rem .8rem;
    font-size: .95rem;
    color: var(--sotmh-ink);
    font-family: inherit;
}
.sotmh-pp__field input:focus,
.sotmh-pp__field select:focus {
    border-color: var(--sotmh-ocean);
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 77, 110, .18);
}

.sotmh-pp__pay-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--sotmh-paper-2);
    border: 1px solid var(--sotmh-line);
    border-radius: 999px;
    padding: .35rem .75rem;
    font-size: .8rem;
    color: var(--sotmh-ink-2);
    margin: .85rem 0;
}

/* ─── Reviews ─────────────────────────────────────────────────────── */
.sotmh-pp__reviews-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.sotmh-pp__rating-big {
    display: inline-flex;
    align-items: baseline;
    gap: .35rem;
    background: var(--sotmh-ocean);
    color: #fff;
    padding: .55rem .85rem;
    border-radius: 12px 12px 12px 4px;
    font-family: var(--serif, Georgia, serif);
    font-size: 1.5rem;
    font-weight: 600;
}
.sotmh-pp__rating-scale { font-size: .75rem; opacity: .9; font-weight: 400; }
.sotmh-pp__rating-meta { color: var(--sotmh-ink-3); font-size: .9rem; }

.sotmh-pp__reviews-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}
.sotmh-pp__review {
    background: var(--sotmh-paper);
    border: 1px solid var(--sotmh-line);
    border-radius: var(--sotmh-radius);
    padding: 1rem 1.15rem;
}
.sotmh-pp__review-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    margin-bottom: .4rem;
    font-size: .88rem;
    color: var(--sotmh-ink-3);
}
.sotmh-pp__review-author { color: var(--sotmh-ink); font-weight: 600; }
.sotmh-pp__review-score {
    margin-left: auto;
    background: #fff;
    border: 1px solid var(--sotmh-line);
    border-radius: 999px;
    padding: .15rem .55rem;
    color: var(--sotmh-ocean);
    font-weight: 600;
}
.sotmh-pp__review-body { color: var(--sotmh-ink-2); margin: 0; }
.sotmh-pp__review-owner {
    margin-top: .55rem;
    padding: .55rem .7rem;
    background: var(--sotmh-paper-2);
    border-radius: 8px;
    font-size: .88rem;
    color: var(--sotmh-ink-2);
}
.sotmh-pp__review-owner strong { color: var(--sotmh-ocean-deep); }

/* ─── Map ─────────────────────────────────────────────────────────── */
.sotmh-pp__map-frame {
    position: relative;
    border-radius: var(--sotmh-radius);
    overflow: hidden;
    background: var(--sotmh-paper-2);
    aspect-ratio: 16 / 9;
    margin: 1rem 0;
    border: 1px solid var(--sotmh-line);
}
.sotmh-pp__map-frame iframe {
    width: 100%; height: 100%;
    border: 0; display: block;
}
.sotmh-pp__map-where { color: var(--sotmh-ink-2); }
.sotmh-pp__map-where small { color: var(--sotmh-ink-3); }

/* ─── Nearby ──────────────────────────────────────────────────────── */
.sotmh-pp__nearby-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.sotmh-pp__nearby-card {
    background: #fff;
    border: 1px solid var(--sotmh-line);
    border-radius: var(--sotmh-radius);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}
.sotmh-pp__nearby-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--sotmh-shadow);
}
.sotmh-pp__nearby-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.sotmh-pp__nearby-cover {
    aspect-ratio: 4 / 3;
    background: var(--sotmh-paper-2) center / cover no-repeat;
}
.sotmh-pp__nearby-body { padding: .85rem 1rem 1rem; display: grid; gap: .15rem; }
.sotmh-pp__nearby-kind {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--sotmh-ocean);
    font-weight: 700;
}
.sotmh-pp__nearby-name {
    font-family: var(--serif, Georgia, serif);
    font-size: 1.05rem;
    color: var(--sotmh-ink);
}
.sotmh-pp__nearby-loc { font-size: .82rem; color: var(--sotmh-ink-3); }

/* ─── Policies ────────────────────────────────────────────────────── */
.sotmh-pp__policy {
    background: var(--sotmh-paper);
    border: 1px solid var(--sotmh-line);
    border-radius: var(--sotmh-radius-sm);
    padding: .85rem 1.15rem;
    margin-bottom: .65rem;
}
.sotmh-pp__policy summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--sotmh-ink);
    list-style: none;
}
.sotmh-pp__policy summary::-webkit-details-marker { display: none; }
.sotmh-pp__policy summary::after {
    content: "+";
    float: right;
    color: var(--sotmh-ocean);
    font-size: 1.3rem;
    line-height: 1;
    transition: transform .15s ease;
}
.sotmh-pp__policy[open] summary::after { content: "−"; }
.sotmh-pp__policy-body { margin-top: .65rem; color: var(--sotmh-ink-2); }
.sotmh-pp__policy-body p { margin: .25rem 0; }

/* ─── Host card ───────────────────────────────────────────────────── */
.sotmh-pp__host-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    background: var(--sotmh-paper);
    border: 1px solid var(--sotmh-line);
    border-radius: var(--sotmh-radius);
    padding: 1.25rem;
}
.sotmh-pp__host-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--sotmh-paper-2);
}
.sotmh-pp__host-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sotmh-pp__host-avatar-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: var(--sotmh-ocean); color: #fff;
    font-family: var(--serif, Georgia, serif);
    font-size: 1.6rem;
}
.sotmh-pp__host-name {
    font-family: var(--serif, Georgia, serif);
    font-size: 1.15rem;
    margin-bottom: .35rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}
.sotmh-pp__host-badge {
    background: var(--sotmh-forest);
    color: #fff;
    font-family: var(--sans, sans-serif);
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .15rem .55rem;
    border-radius: 999px;
}
.sotmh-pp__host-facts {
    list-style: none;
    padding: 0;
    margin: 0 0 .65rem;
    font-size: .9rem;
    color: var(--sotmh-ink-2);
    display: grid;
    gap: .2rem;
}
.sotmh-pp__host-facts strong { color: var(--sotmh-ink); margin-right: .25rem; }
.sotmh-pp__host-bio { color: var(--sotmh-ink-2); margin: .25rem 0 .75rem; }
.sotmh-pp__host-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ─── CTA strip (bottom) ──────────────────────────────────────────── */
.sotmh-pp__cta-strip {
    background: var(--sotmh-paper);
    border: 1px solid var(--sotmh-line);
    border-radius: var(--sotmh-radius);
    padding: 1.5rem 1.75rem;
    margin-top: 2.5rem;
    display: grid;
    gap: 1rem;
}
.sotmh-pp__cta-primary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
}
.sotmh-pp__cta-title {
    flex: 1 1 100%;
    margin: 0;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
}
.sotmh-pp__cta-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    padding-top: .75rem;
    border-top: 1px solid var(--sotmh-line);
}
.sotmh-pp__cta-share-label {
    font-size: .85rem;
    color: var(--sotmh-ink-3);
    margin-right: .35rem;
    font-weight: 600;
}
.sotmh-pp__cta-report a {
    font-size: .85rem;
    color: var(--sotmh-ink-3);
    text-decoration: underline;
}
.sotmh-pp__cta-report a:hover { color: var(--sotmh-ocean); }

/* ─── Reduced motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .sotmh-pp__btn,
    .sotmh-pp__nearby-card,
    .sotmh-pp__policy summary::after {
        transition: none;
    }
}
