/*
 * Public unit page theme (templates/public). Independent from the app's stylesheet: warm, editorial and focused on
 * getting a visit request. Mobile first; everything is scoped under .pu.
 */

:root {
    --pu-ink: #16201c;
    --pu-ink-soft: #3f4d47;
    --pu-muted: #6f7d77;
    --pu-bg: #faf7f2;
    --pu-surface: #ffffff;
    --pu-sand: #f1ebe1;
    --pu-line: #e6ded2;
    --pu-primary: #155e4b;
    --pu-primary-dark: #0d4637;
    --pu-primary-soft: #e2efe9;
    --pu-accent: #e39b3b;
    --pu-accent-soft: #fbeedb;
    --pu-danger: #b42318;
    --pu-radius: 20px;
    --pu-radius-sm: 12px;
    --pu-shadow: 0 1px 2px rgba(22, 32, 28, 0.05), 0 18px 40px -12px rgba(22, 32, 28, 0.18);
    --pu-shadow-soft: 0 1px 2px rgba(22, 32, 28, 0.04), 0 8px 24px -10px rgba(22, 32, 28, 0.14);
    --pu-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --pu-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --pu-gutter: 20px;
    --pu-nav-height: 68px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--pu-nav-height) + 16px);
    -webkit-text-size-adjust: 100%;
}

html.pu-locked {
    overflow: hidden;
}

body.pu {
    margin: 0;
    background: var(--pu-bg);
    color: var(--pu-ink);
    font-family: var(--pu-font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* Room for the mobile call-to-action bar. */
    padding-bottom: 84px;
}

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

.pu a {
    color: inherit;
}

.pu-icon {
    width: 20px;
    height: 20px;
    flex: none;
}

.pu-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-inline: var(--pu-gutter);
}

/* Buttons and links */
.pu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.pu-btn:focus-visible,
.pu-chip:focus-visible,
.pu-share:focus-visible,
.pu-gallery__item:focus-visible,
.pu-gallery__all:focus-visible,
.pu-link:focus-visible {
    outline: 3px solid var(--pu-accent);
    outline-offset: 3px;
}

.pu-btn--primary {
    background: var(--pu-primary);
    color: #fff !important;
    box-shadow: 0 10px 22px -10px rgba(21, 94, 75, 0.7);
}

.pu-btn--primary:hover {
    background: var(--pu-primary-dark);
    transform: translateY(-1px);
}

.pu-btn:disabled {
    opacity: 0.7;
    cursor: progress;
    transform: none;
}

.pu-btn--block {
    width: 100%;
}

.pu-btn--lg {
    min-height: 54px;
    font-size: 16px;
}

.pu-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--pu-primary) !important;
    text-decoration: none;
}

.pu-link .pu-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.15s ease;
}

.pu-link:hover .pu-icon {
    transform: translateX(3px);
}

.pu-link--muted {
    color: var(--pu-muted) !important;
    font-weight: 600;
}

/* Top navigation */
.pu-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    height: var(--pu-nav-height);
    background: rgba(250, 247, 242, 0.88);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pu-nav.is-scrolled {
    border-bottom-color: var(--pu-line);
    box-shadow: 0 6px 20px -16px rgba(22, 32, 28, 0.35);
}

.pu-nav__inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
}

.pu-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-weight: 700;
}

.pu-brand__mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: 11px;
    background: var(--pu-primary);
    color: #fff;
    font-family: var(--pu-display);
    font-size: 19px;
}

.pu-brand__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pu-nav__links {
    display: none;
    gap: 26px;
    margin-left: auto;
}

.pu-nav__links a {
    color: var(--pu-ink-soft);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}

.pu-nav__links a:hover {
    color: var(--pu-primary);
}

.pu-nav__cta {
    display: none;
}

/* Gallery */
.pu-gallery {
    position: relative;
    margin-top: 12px;
}

.pu-gallery__grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--pu-gutter) * -1);
    padding-inline: var(--pu-gutter);
    scrollbar-width: none;
}

.pu-gallery__grid::-webkit-scrollbar {
    display: none;
}

.pu-gallery__item {
    position: relative;
    flex: 0 0 86%;
    height: 290px;
    border-radius: var(--pu-radius);
    overflow: hidden;
    background: var(--pu-sand);
    scroll-snap-align: center;
}

.pu-gallery__grid[data-count='1'] .pu-gallery__item {
    flex-basis: 100%;
}

.pu-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.3s ease;
}

.pu-gallery__item:hover img {
    transform: scale(1.04);
}

.pu-gallery__all {
    position: absolute;
    right: calc(var(--pu-gutter) + 12px);
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(22, 32, 28, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--pu-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    box-shadow: var(--pu-shadow-soft);
    cursor: pointer;
}

.pu-gallery__all .pu-icon {
    width: 18px;
    height: 18px;
}

.pu-gallery__empty {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 4px;
    min-height: 240px;
    padding: 32px;
    border-radius: var(--pu-radius);
    background:
        radial-gradient(circle at 20% 20%, rgba(227, 155, 59, 0.28), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(21, 94, 75, 0.35), transparent 50%),
        var(--pu-sand);
    text-align: center;
    color: var(--pu-ink-soft);
}

.pu-gallery__empty .pu-icon {
    width: 34px;
    height: 34px;
    color: var(--pu-accent);
}

.pu-gallery__empty p {
    margin: 0;
}

.pu-gallery__empty-title {
    font-family: var(--pu-display);
    font-size: 34px;
    line-height: 1.1;
    color: var(--pu-ink);
}

/* Layout */
.pu-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    margin-top: 28px;
}

.pu-heading {
    display: grid;
    gap: 10px;
}

.pu-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: start;
    padding: 5px 12px 5px 10px;
    border-radius: 999px;
    background: var(--pu-primary-soft);
    color: var(--pu-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.pu-badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1e9c6f;
    box-shadow: 0 0 0 0 rgba(30, 156, 111, 0.5);
    animation: pu-pulse 2.2s infinite;
}

@keyframes pu-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(30, 156, 111, 0.45);
    }
    70% {
        box-shadow: 0 0 0 9px rgba(30, 156, 111, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(30, 156, 111, 0);
    }
}

.pu-title {
    margin: 0;
    font-family: var(--pu-display);
    font-weight: 650;
    font-size: clamp(32px, 7vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.pu-title__property {
    display: block;
    margin-top: 6px;
    font-family: var(--pu-font);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--pu-muted);
}

.pu-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    color: var(--pu-ink-soft);
}

.pu-address .pu-icon {
    margin-top: 2px;
    color: var(--pu-accent);
}

/* Key facts */
.pu-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.pu-fact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--pu-line);
    border-radius: var(--pu-radius-sm);
    background: var(--pu-surface);
    font-weight: 600;
    line-height: 1.3;
}

.pu-fact .pu-icon {
    width: 24px;
    height: 24px;
    color: var(--pu-primary);
}

/* Sections */
.pu-section {
    margin-top: 44px;
    padding-top: 36px;
    border-top: 1px solid var(--pu-line);
}

.pu-section__title {
    margin: 0 0 18px;
    font-family: var(--pu-display);
    font-weight: 650;
    font-size: clamp(24px, 4.5vw, 32px);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.pu-richtext {
    color: var(--pu-ink-soft);
    font-size: 17px;
    line-height: 1.75;
}

.pu-richtext > :first-child {
    margin-top: 0;
}

.pu-richtext > :last-child {
    margin-bottom: 0;
}

.pu-richtext p,
.pu-richtext ul,
.pu-richtext ol,
.pu-richtext blockquote {
    margin: 0 0 1em;
}

.pu-richtext h2,
.pu-richtext h3 {
    margin: 1.4em 0 0.4em;
    color: var(--pu-ink);
    font-family: var(--pu-display);
    font-weight: 650;
    line-height: 1.2;
}

.pu-richtext h2 {
    font-size: 24px;
}

.pu-richtext h3 {
    font-size: 20px;
}

.pu-richtext strong {
    color: var(--pu-ink);
}

.pu-richtext ul,
.pu-richtext ol {
    padding-left: 1.3em;
}

.pu-richtext li {
    margin-bottom: 0.3em;
}

.pu-richtext li::marker {
    color: var(--pu-accent);
}

.pu-richtext blockquote {
    padding: 14px 20px;
    border-left: 4px solid var(--pu-accent);
    border-radius: 0 var(--pu-radius-sm) var(--pu-radius-sm) 0;
    background: var(--pu-accent-soft);
    color: var(--pu-ink);
    font-family: var(--pu-display);
    font-size: 19px;
}

.pu-richtext a {
    color: var(--pu-primary);
    font-weight: 600;
}

/* Amenities */
.pu-amenities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
    gap: 12px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pu-amenities li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.pu-amenities .pu-icon {
    width: 28px;
    height: 28px;
    padding: 5px;
    border-radius: 50%;
    background: var(--pu-primary-soft);
    color: var(--pu-primary);
}

/* Videos */
.pu-videos {
    display: grid;
    gap: 16px;
}

.pu-video {
    position: relative;
    aspect-ratio: 16 / 9;
    max-width: 100%;
    border-radius: var(--pu-radius);
    overflow: hidden;
    background: #0d1411;
    box-shadow: var(--pu-shadow-soft);
}

.pu-video iframe,
.pu-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

/* Map */
.pu-map {
    position: relative;
    isolation: isolate;
    height: 320px;
    border-radius: var(--pu-radius);
    overflow: hidden;
    background: linear-gradient(135deg, #e7ede6, #dfe6dd);
    box-shadow: var(--pu-shadow-soft);
}

.pu-map__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 20px;
    margin-top: 16px;
}

.pu-map__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

/* Steps */
.pu-steps__list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: pu-step;
}

.pu-step {
    position: relative;
    padding: 22px 22px 22px 22px;
    border-radius: var(--pu-radius);
    background: var(--pu-sand);
    counter-increment: pu-step;
}

.pu-step::after {
    content: counter(pu-step, decimal-leading-zero);
    position: absolute;
    top: 16px;
    right: 20px;
    font-family: var(--pu-display);
    font-size: 30px;
    color: rgba(22, 32, 28, 0.12);
}

.pu-step__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: var(--pu-surface);
    color: var(--pu-primary);
    box-shadow: var(--pu-shadow-soft);
}

.pu-step h3 {
    margin: 0 0 4px;
    font-size: 17px;
}

.pu-step p {
    margin: 0;
    color: var(--pu-ink-soft);
    font-size: 15px;
}

/* Contact card */
.pu-aside {
    min-width: 0;
}

.pu-card {
    padding: 24px;
    border: 1px solid var(--pu-line);
    border-radius: var(--pu-radius);
    background: var(--pu-surface);
    box-shadow: var(--pu-shadow);
}

.pu-price {
    display: grid;
    gap: 2px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px dashed var(--pu-line);
}

.pu-price__label {
    color: var(--pu-muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pu-price__amount {
    font-family: var(--pu-display);
    font-weight: 650;
    font-size: 38px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.pu-price__amount--small {
    font-size: 28px;
}

.pu-price__period {
    margin-left: 4px;
    font-family: var(--pu-font);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--pu-muted);
}

.pu-price__facts {
    margin-top: 6px;
    color: var(--pu-ink-soft);
    font-size: 14px;
    font-weight: 600;
}

.pu-card__title {
    margin: 0;
    font-family: var(--pu-display);
    font-weight: 650;
    font-size: 24px;
    line-height: 1.2;
}

.pu-card__subtitle {
    margin: 6px 0 18px;
    color: var(--pu-ink-soft);
    font-size: 15px;
}

.pu-form {
    display: grid;
    gap: 14px;
}

.pu-field {
    display: grid;
    gap: 6px;
}

.pu-field__label {
    font-size: 14px;
    font-weight: 700;
}

.pu-field__optional {
    margin-left: 4px;
    color: var(--pu-muted);
    font-weight: 500;
}

.pu-field input,
.pu-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1.5px solid var(--pu-line);
    border-radius: var(--pu-radius-sm);
    background: var(--pu-bg);
    color: var(--pu-ink);
    font: inherit;
    font-size: 16px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.pu-field textarea {
    min-height: 116px;
    resize: vertical;
    line-height: 1.5;
}

.pu-field input:focus,
.pu-field textarea:focus {
    outline: none;
    border-color: var(--pu-primary);
    background: var(--pu-surface);
    box-shadow: 0 0 0 4px var(--pu-primary-soft);
}

.pu-field--invalid input,
.pu-field--invalid textarea {
    border-color: var(--pu-danger);
}

.pu-field__error {
    color: var(--pu-danger);
    font-size: 13px;
    font-weight: 600;
}

.pu-form-error {
    margin: 0 0 14px;
    padding: 10px 14px;
    border-radius: var(--pu-radius-sm);
    background: #fdecea;
    color: var(--pu-danger);
    font-size: 14px;
    font-weight: 600;
}

.pu-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pu-chip {
    padding: 6px 12px;
    border: 1px solid var(--pu-line);
    border-radius: 999px;
    background: var(--pu-surface);
    color: var(--pu-ink-soft);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pu-chip:hover,
.pu-chip[aria-pressed='true'] {
    border-color: var(--pu-primary);
    background: var(--pu-primary-soft);
    color: var(--pu-primary);
}

.pu-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    color: var(--pu-muted);
    font-size: 13px;
    text-align: center;
}

.pu-privacy .pu-icon {
    width: 16px;
    height: 16px;
}

/* Booking: tabs, day chips and the slot grid */

/* The tabs are two radio inputs, so switching works before the JavaScript loads (and without it). */
.pu-tabs__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.pu-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.pu-tabs__label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border: 1px solid var(--pu-line);
    border-radius: 999px;
    color: var(--pu-ink-soft);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pu-tabs__label .pu-icon {
    width: 17px;
    height: 17px;
}

.pu-tabs__label:hover {
    border-color: var(--pu-primary);
    color: var(--pu-primary);
}

#pu-tab-visit:checked ~ .pu-tabs__label[for='pu-tab-visit'],
#pu-tab-contact:checked ~ .pu-tabs__label[for='pu-tab-contact'] {
    border-color: var(--pu-primary);
    background: var(--pu-primary-soft);
    color: var(--pu-primary);
}

#pu-tab-visit:focus-visible ~ .pu-tabs__label[for='pu-tab-visit'],
#pu-tab-contact:focus-visible ~ .pu-tabs__label[for='pu-tab-contact'] {
    outline: 2px solid var(--pu-primary);
    outline-offset: 2px;
}

.pu-tabs__panel {
    grid-column: 1 / -1;
    display: none;
    padding-top: 18px;
}

#pu-tab-visit:checked ~ .pu-tabs__panel--visit,
#pu-tab-contact:checked ~ .pu-tabs__panel--contact {
    display: block;
}

.pu-slots {
    display: grid;
    gap: 10px;
}

.pu-days {
    display: flex;
    gap: 8px;
    /* The days scroll sideways rather than wrapping into a wall of chips. */
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.pu-day {
    flex: 0 0 auto;
    display: grid;
    gap: 1px;
    min-width: 104px;
    padding: 10px 12px;
    border: 1px solid var(--pu-line);
    border-radius: 14px;
    background: var(--pu-surface);
    color: var(--pu-ink-soft);
    font: inherit;
    text-align: left;
    cursor: pointer;
    scroll-snap-align: start;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pu-day:hover {
    border-color: var(--pu-primary);
}

.pu-day.is-selected {
    border-color: var(--pu-primary);
    background: var(--pu-primary-soft);
    color: var(--pu-primary);
}

.pu-day__weekday {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pu-day__date {
    font-size: 15px;
    font-weight: 700;
    color: var(--pu-ink);
}

.pu-day.is-selected .pu-day__date {
    color: inherit;
}

.pu-day__count {
    font-size: 12px;
    color: var(--pu-muted);
}

.pu-slotgroup {
    margin: 0;
    padding: 0;
    border: 0;
}

.pu-slotgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.pu-slot input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.pu-slot span {
    display: block;
    padding: 9px 6px;
    border: 1px solid var(--pu-line);
    border-radius: 10px;
    background: var(--pu-surface);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pu-slot span:hover {
    border-color: var(--pu-primary);
    color: var(--pu-primary);
}

.pu-slot input:checked + span {
    border-color: var(--pu-primary);
    background: var(--pu-primary);
    color: #ffffff;
}

.pu-slot input:focus-visible + span {
    outline: 2px solid var(--pu-primary);
    outline-offset: 2px;
}

.pu-sent__when {
    font-weight: 700;
    color: var(--pu-ink) !important;
}

.pu-sent__notice {
    margin-top: 8px !important;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--pu-primary-soft);
    color: var(--pu-primary) !important;
    font-size: 14px;
}

/* Hidden from people; bots fill it in. */
.pu-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.pu-sent {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 10px 4px 4px;
    text-align: center;
}

.pu-sent__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: var(--pu-primary-soft);
    color: var(--pu-primary);
}

.pu-sent__icon .pu-icon {
    width: 28px;
    height: 28px;
}

.pu-sent h2 {
    margin: 0;
    font-family: var(--pu-display);
    font-size: 24px;
    line-height: 1.2;
}

.pu-sent p {
    margin: 0;
    color: var(--pu-ink-soft);
}

.pu-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--pu-ink-soft);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.pu-share:hover {
    border-color: var(--pu-line);
    background: var(--pu-surface);
}

/* Footer */
.pu-footer {
    margin-top: 64px;
    padding-block: 28px;
    border-top: 1px solid var(--pu-line);
    color: var(--pu-muted);
    font-size: 14px;
}

.pu-footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 20px;
}

/* Mobile call-to-action bar */
.pu-mobilebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px var(--pu-gutter) calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--pu-line);
    box-shadow: 0 -10px 30px -18px rgba(22, 32, 28, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.25s ease;
}

.pu-mobilebar.is-hidden {
    transform: translateY(110%);
}

.pu-mobilebar__price {
    min-width: 0;
    line-height: 1.2;
}

.pu-mobilebar__price strong {
    font-family: var(--pu-display);
    font-size: 21px;
}

.pu-mobilebar__price span {
    margin-left: 3px;
    color: var(--pu-muted);
    font-size: 14px;
    font-weight: 600;
}

.pu-mobilebar .pu-btn {
    flex: none;
}

/* Lightbox */
.pu-lightbox {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(9, 14, 12, 0.94);
    color: #fff;
}

.pu-lightbox[open] {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
}

.pu-lightbox::backdrop {
    background: rgba(9, 14, 12, 0.94);
}

.pu-lightbox__stage {
    display: grid;
    place-items: center;
    height: 100%;
    margin: 0;
    padding: 64px 8px;
    grid-column: 2;
}

.pu-lightbox__stage img {
    max-width: 100%;
    max-height: calc(100dvh - 140px);
    object-fit: contain;
    border-radius: 10px;
    user-select: none;
}

.pu-lightbox__counter {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 14px;
    font-weight: 600;
}

.pu-lightbox__btn {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 8px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.pu-lightbox__btn:hover,
.pu-lightbox__btn:focus-visible {
    background: rgba(255, 255, 255, 0.25);
    outline: none;
}

.pu-lightbox__btn .pu-icon {
    width: 24px;
    height: 24px;
}

.pu-lightbox__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
}

.pu-lightbox__prev {
    grid-column: 1;
    grid-row: 1;
}

.pu-lightbox__next {
    grid-column: 3;
    grid-row: 1;
}

/* Not found / unavailable */
.pu-notice {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px var(--pu-gutter);
    background:
        radial-gradient(circle at 15% 15%, rgba(227, 155, 59, 0.18), transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(21, 94, 75, 0.18), transparent 45%),
        var(--pu-bg);
}

.pu-notice__card {
    width: 100%;
    max-width: 460px;
    padding: 36px 28px;
    border-radius: var(--pu-radius);
    background: var(--pu-surface);
    box-shadow: var(--pu-shadow);
    text-align: center;
}

.pu-notice__icon {
    display: inline-grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 14px;
    border-radius: 18px;
    background: var(--pu-primary-soft);
    color: var(--pu-primary);
}

.pu-notice__icon .pu-icon {
    width: 28px;
    height: 28px;
}

.pu-notice h1 {
    margin: 0 0 8px;
    font-family: var(--pu-display);
    font-size: 28px;
    line-height: 1.2;
}

.pu-notice p {
    margin: 0;
    color: var(--pu-ink-soft);
}

/* Tablets and up */
@media (min-width: 720px) {
    :root {
        --pu-gutter: 32px;
    }

    .pu-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pu-steps__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pu-nav__cta {
        display: inline-flex;
        margin-left: auto;
    }

    .pu-gallery__grid {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: 230px 230px;
        gap: 10px;
        margin-inline: 0;
        padding-inline: 0;
        overflow: hidden;
        border-radius: var(--pu-radius);
    }

    .pu-gallery__item {
        height: auto;
        border-radius: 0;
    }

    .pu-gallery__item:first-child {
        grid-row: span 2;
    }

    .pu-gallery__item:nth-child(n + 6) {
        display: none;
    }

    .pu-gallery__grid[data-count='1'] {
        grid-template-columns: 1fr;
        grid-template-rows: 470px;
    }

    .pu-gallery__grid[data-count='1'] .pu-gallery__item:first-child {
        grid-row: auto;
    }

    .pu-gallery__grid[data-count='2'] {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 470px;
    }

    .pu-gallery__grid[data-count='2'] .pu-gallery__item:first-child {
        grid-row: auto;
    }

    .pu-gallery__grid[data-count='3'] {
        grid-template-columns: 2fr 1fr;
    }

    .pu-gallery__grid[data-count='4'] .pu-gallery__item:nth-child(4) {
        grid-column: span 2;
    }

    .pu-gallery__all {
        right: 18px;
        bottom: 18px;
    }

    .pu-videos {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    }

    .pu-map {
        height: 400px;
    }
}

/* Desktop: content + sticky contact card */
@media (min-width: 1024px) {
    body.pu {
        padding-bottom: 0;
    }

    .pu-nav__links {
        display: flex;
    }

    .pu-nav__cta {
        margin-left: 12px;
    }

    .pu-layout {
        grid-template-columns: minmax(0, 1fr) 390px;
        gap: 64px;
        margin-top: 40px;
        align-items: start;
    }

    .pu-aside {
        position: sticky;
        top: calc(var(--pu-nav-height) + 24px);
    }

    .pu-card {
        padding: 28px;
    }

    .pu-gallery__grid {
        grid-template-rows: 260px 260px;
    }

    .pu-gallery__grid[data-count='1'],
    .pu-gallery__grid[data-count='2'] {
        grid-template-rows: 530px;
    }

    .pu-mobilebar {
        display: none;
    }
}

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

    .pu *,
    .pu *::before,
    .pu *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Apply to rent: the loudest thing on the page, on purpose */
.pu-btn--apply {
    border-color: transparent;
    background: linear-gradient(135deg, var(--pu-accent) 0%, #d1842a 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px -6px rgba(227, 155, 59, 0.7);
}

.pu-btn--apply:hover {
    background: linear-gradient(135deg, #d1842a 0%, #bf7522 100%);
    color: #ffffff;
}

.pu-apply-cta {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    margin-bottom: 14px;
    padding: 18px 20px;
    border-radius: var(--pu-radius);
    background: linear-gradient(135deg, #1d7a61 0%, var(--pu-primary-dark) 100%);
    color: #ffffff;
    text-decoration: none;
    box-shadow: var(--pu-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pu-apply-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 1px 2px rgba(22, 32, 28, 0.05), 0 24px 44px -14px rgba(13, 70, 55, 0.6);
}

.pu-apply-cta:focus-visible {
    outline: 3px solid var(--pu-accent);
    outline-offset: 3px;
}

/* A soft highlight in the corner, so the card reads as a button rather than a flat panel. */
.pu-apply-cta__glow {
    position: absolute;
    top: -60%;
    right: -20%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 155, 59, 0.55) 0%, rgba(227, 155, 59, 0) 70%);
    pointer-events: none;
}

.pu-apply-cta__body {
    position: relative;
    display: grid;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.pu-apply-cta__eyebrow {
    color: var(--pu-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pu-apply-cta__title {
    font-family: var(--pu-display);
    font-size: 21px;
    font-weight: 650;
    line-height: 1.15;
}

.pu-apply-cta__meta {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.pu-apply-cta__icon {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

@media (prefers-reduced-motion: reduce) {
    .pu-apply-cta {
        transition: none;
    }

    .pu-apply-cta:hover {
        transform: none;
    }
}

/* The application form's own page */
.pu-apply {
    max-width: 720px;
    margin: 0 auto;
    padding-top: 28px;
    padding-bottom: 48px;
}

.pu-apply__intro {
    display: grid;
    justify-items: start;
    gap: 10px;
    margin-bottom: 18px;
}

.pu-apply__lead {
    margin: 0;
    color: var(--pu-ink-soft);
    font-size: 16px;
}

.pu-apply__docsTitle {
    margin-top: 22px;
}

.pu-apply__done {
    padding: 32px 24px;
}

.pu-apply__done .pu-sent h1 {
    margin: 0;
    font-family: var(--pu-display);
    font-size: 26px;
    line-height: 1.2;
}

.pu-apply__done .pu-btn {
    margin-top: 12px;
}

.pu-grid2 {
    display: grid;
    gap: 14px;
}

.pu-docs {
    display: grid;
    gap: 12px;
    margin: 12px 0 4px;
    padding: 0;
    list-style: none;
    counter-reset: pu-doc;
}

.pu-doc {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid var(--pu-line);
    border-radius: var(--pu-radius-sm);
    background: var(--pu-bg);
}

.pu-doc--invalid {
    border-color: var(--pu-danger);
    background: #fdf3f2;
}

.pu-doc__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.pu-doc__label {
    font-weight: 700;
}

.pu-doc__label::before {
    counter-increment: pu-doc;
    content: counter(pu-doc) '. ';
    color: var(--pu-muted);
    font-weight: 600;
}

.pu-doc__tag {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--pu-primary-soft);
    color: var(--pu-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pu-doc__tag--optional {
    background: var(--pu-sand);
    color: var(--pu-muted);
}

.pu-doc__hint {
    margin: 0;
    color: var(--pu-ink-soft);
    font-size: 14px;
}

.pu-doc input[type='file'] {
    width: 100%;
    padding: 8px;
    border: 1px dashed var(--pu-line);
    border-radius: 10px;
    background: var(--pu-surface);
    font: inherit;
    font-size: 14px;
}

.pu-doc input[type='file']::file-selector-button {
    margin-right: 10px;
    padding: 7px 12px;
    border: 1px solid var(--pu-line);
    border-radius: 8px;
    background: var(--pu-surface);
    color: var(--pu-ink);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

@media (min-width: 640px) {
    .pu-grid2 {
        grid-template-columns: 1fr 1fr;
    }
}
