/* ---------- Design tokens (Figma HOA-Website) ---------- */
:root {
    --rp-black: #1a1a1a;
    --rp-sidebar: #343a40;
    --rp-sidebar-active: #495057;
    --rp-gold: #b89246;
    --rp-gold-dark: #9c7a2f;
    --rp-surface-soft: #f6f7f9;
    --rp-border: #dfe2e6;
    --rp-muted: #6c757d;
    --rp-owner: #e05563;
    --rp-owner-strong: #b5283a;
    --rp-owner-light: #f2b1b8;
    --rp-rental: #ff9f45;
    --rp-rental-light: #ffd2a6;
    --rp-blocked: #8f8f8f;
    --rp-header-height: 100px;
    --rp-sidebar-width: 280px;
    --rp-sidebar-collapsed-width: 72px;

    --bs-body-font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --bs-body-color: #1f2328;
    --bs-primary: var(--rp-gold);
    --bs-primary-rgb: 184, 146, 70;
    --bs-link-color: var(--rp-gold-dark);
    --bs-link-color-rgb: 156, 122, 47;
}

body {
    background: #fff;
}

.btn-primary {
    --bs-btn-bg: var(--rp-gold);
    --bs-btn-border-color: var(--rp-gold);
    --bs-btn-hover-bg: var(--rp-gold-dark);
    --bs-btn-hover-border-color: var(--rp-gold-dark);
    --bs-btn-active-bg: var(--rp-gold-dark);
    --bs-btn-active-border-color: var(--rp-gold-dark);
    --bs-btn-disabled-bg: var(--rp-gold);
    --bs-btn-disabled-border-color: var(--rp-gold);
    font-weight: 700;
    border-radius:16px;
}

.form-control:focus, .form-select:focus, .form-check-input:focus {
    border-color: var(--rp-gold);
    box-shadow: 0 0 0 .2rem rgba(184, 147, 63, .25);
}

.form-check-input:checked {
    background-color: var(--rp-gold);
    border-color: var(--rp-gold);
}

/* ---------- Logos ---------- */
.rp-logo-public {
    height: 109px;
    width: auto;
}

.rp-logo-app {
    height: 36px;
    width: auto;
}

@media (min-width: 992px) {
    .rp-logo-app { height: 60px; }
}

/* ---------- Header (Figma: "header"; phone: top of "Villas Management") ---------- */
.rp-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    height: 88px;
    padding: 0 16px;
    background: var(--rp-black);
    color: #fff;
}

@media (min-width: 992px) {
    .rp-header {
        height: var(--rp-header-height);
        padding: 0 50px 0 0;
    }

    .rp-header-logo {
        display: flex;
        justify-content: center;
        width: 306px;
        flex-shrink: 0;
    }
}

.rp-header-centered {
    justify-content: center;
    height: 120px;
    padding: 0;
}

.rp-header-user {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
    font-size: 16px;
    line-height: 20px;
}

.rp-header-date {
    color: var(--rp-gold);
    font-weight: 700;
}

.rp-signout {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 0 0 0 24px;
    border: 0;
    color: #f2f2ee;
    font-family: "Raleway", var(--bs-body-font-family);
    font-size: 16px;
}

.rp-signout:hover {
    color: var(--rp-gold);
}

.rp-menu-toggle {
    padding: 0;
    border: 0;
}

/* Phone menu: drops down under the header (Figma: "Movile Menu"). */
.rp-mobile-menu {
    position: sticky;
    top: 88px;
    z-index: 1029;
    padding: 0 24px;
    background: #27282a;
}

.rp-mobile-menu > a, .rp-mobile-menu button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100px;
    border: 0;
    border-bottom: 1px solid #ced4da;
    background: none;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.rp-mobile-menu form:last-child button {
    border-bottom: 0;
}

.rp-mobile-menu > a:hover, .rp-mobile-menu > a.active, .rp-mobile-menu button:hover {
    color: var(--rp-gold);
}

.rp-welcome-band {
    padding: 8px 16px;
    background: #27282b;
    color: #fff;
    font-size: 16px;
    line-height: 20px;
}

.rp-welcome-band .rp-header-date {
    font-weight: 400;
    line-height: normal;
}

/* ---------- Public pages (home, sign in) ---------- */
.rp-public {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.rp-public-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rp-hero {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 2rem 1rem;
    background-color: #5d6670;
    background-size: cover;
    background-position: center;
}

.rp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .35);
}

.rp-hero > * {
    position: relative;
}

/* Home (Figma: "homepage"; phone: "Home 1" initial, "Home 2" / "Home 3" with one resort open).
   One half per resort. On phones the halves work like a two-slide carousel. */
.rp-resort-picker {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.rp-resort-panel {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    color: #fff;
}

.rp-resort-panel::before {
    background: rgba(0, 0, 0, .2);
}

.rp-panel-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.rp-resort-panel h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}

.rp-panel-content .rp-panel-cta {
    width: 200px;
    padding: 12px 24px;
    border-radius: 16px;
    font-size: 20px;
}

.rp-panel-ellipse, .rp-panel-ellipse-active, .rp-panel-arrow {
    display: none;
}

.rp-panel-arrow {
    border: 0;
    background: none;
    padding: 0;
}

.rp-panel-arrow img {
    display: block;
    width: 48px;
    height: 48px;
}

.rp-panel-start .rp-panel-arrow img {
    transform: rotate(180deg);
}

@media (max-width: 767.98px) {
    .rp-resort-panel {
        padding: 24px;
        cursor: pointer;
        transition: flex .4s ease;
    }

    .rp-panel-content {
        gap: 10px;
        flex: 1;
        min-width: 0;
    }

    .rp-resort-panel h2 {
        width: min-content;
        font-size: 28px;
    }

    .rp-panel-start .rp-panel-content { align-items: flex-end; text-align: right; }
    .rp-panel-end .rp-panel-content { align-items: flex-start; text-align: left; }

    .rp-panel-arrow { display: block; }
    .rp-panel-cta { display: none; }

    /* Soft shadow behind the titles, centred on the seam between the halves. */
    .rp-resort-panel > .rp-panel-ellipse,
    .rp-resort-panel > .rp-panel-ellipse-active {
        position: absolute;
        top: 50%;
        pointer-events: none;
    }

    .rp-resort-panel > .rp-panel-ellipse { display: block; }
    .rp-panel-start > img { left: 100%; transform: translate(-50%, calc(-50% + 7px)); }
    .rp-panel-end > img { left: 0; transform: translate(-50%, calc(-50% + 7px)); }

    /* One resort open: it takes all but 50px, the other shows only its arrow. */
    .rp-resort-picker.has-active .rp-resort-panel::before { background: rgba(0, 0, 0, .3); }
    .rp-resort-picker.has-active .rp-resort-panel:not(.is-active) {
        flex: 0 0 50px;
        padding: 0;
        justify-content: center;
    }
    .rp-resort-picker.has-active .rp-resort-panel:not(.is-active) h2 { display: none; }
    .rp-resort-picker.has-active .rp-resort-panel:not(.is-active) .rp-panel-content { align-items: center; }
    .rp-resort-picker.has-active .rp-resort-panel > .rp-panel-ellipse { display: none; }

    .rp-resort-panel.is-active { z-index: 1; cursor: default; }
    .rp-panel-start.is-active { box-shadow: 4px 0 30px 10px rgba(0, 0, 0, .6); }
    .rp-panel-end.is-active { box-shadow: -4px 0 30px 10px rgba(0, 0, 0, .5); }
    .rp-resort-panel.is-active > .rp-panel-ellipse-active { display: block; }
    .rp-resort-panel.is-active .rp-panel-arrow { display: none; }
    .rp-resort-panel.is-active .rp-panel-cta {
        display: inline-block;
        width: auto;
        font-size: 16px;
    }
}

/* Sign in (Figma: "riviera sign in" / "cabo sign in", "Log In VLERN" / "Log In VLEC") */
@media (max-width: 767.98px) {
    .rp-header-centered { height: 115px; }
    .rp-logo-public { height: 96px; }
}

.rp-login {
    overflow: hidden;
}

.rp-login::before {
    background: rgba(0, 0, 0, .3);
}

@media (min-width: 768px) {
    .rp-login::before { background: rgba(0, 0, 0, .2); }
}

/* Soft shadow behind the card; only in the web design, offset per resort. */
.rp-login-ellipse {
    display: none;
}

@media (min-width: 768px) {
    .rp-login > .rp-login-ellipse {
        display: block;
        position: absolute;
        left: 50%;
        top: 50%;
        pointer-events: none;
    }

    .rp-login-riviera > .rp-login-ellipse { transform: translate(calc(-50% - 103.5px), calc(-50% + 7.5px)); }
    .rp-login-cabo > .rp-login-ellipse { transform: translate(calc(-50% + 100.5px), calc(-50% + 7.5px)); }
}

.rp-login-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 306px;
    max-width: 100%;
    padding-bottom: 16px;
    border-radius: 24px;
    background: #fff;
    overflow: hidden;
    text-align: center;
}

.rp-login-riviera .rp-login-card {
    background: rgba(255, 255, 255, .6);
    backdrop-filter: blur(8px);
}

.rp-login-fields {
    width: 100%;
    padding: 16px 0;
}

.rp-login-card h1 {
    margin: 0;
    padding: 16px;
    color: #1b2328;
    font-size: 28px;
    font-weight: 700;
}

.rp-login-field {
    padding: 8px 16px;
}

.rp-login-card .form-control {
    padding: 12px;
    border: 0;
    border-radius: 16px;
    background: #e9ecef;
    font-size: 16px;
    line-height: 28px;
}

.rp-login-card .form-control::placeholder {
    color: #6c757d;
}

.rp-login-card .rp-login-submit {
    width: 274px;
    max-width: calc(100% - 32px);
    padding: 12px;
    border-radius: 16px;
    font-size: 16px;
    line-height: 28px;
}

.rp-login-card .rp-forgot {
    padding: 8px 0;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 700;
    line-height: 28px;
}

/* ---------- App shell: sidebar + content (Figma: "open-sidebar" / "closed sidebar") ---------- */
.rp-shell {
    display: flex;
    min-height: calc(100vh - 88px);
}

@media (min-width: 992px) {
    .rp-shell { min-height: calc(100vh - var(--rp-header-height)); }
}

.rp-sidebar {
    position: sticky;
    top: var(--rp-header-height);
    height: calc(100vh - var(--rp-header-height));
    width: var(--rp-sidebar-width);
    flex-shrink: 0;
    flex-direction: column;
    padding: 16px;
    background: var(--rp-sidebar);
    color: #fff;
    transition: width .2s ease;
}

.rp-nav {
    list-style: none;
    margin: 0;
    padding: 40px 0;
}

.rp-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    border-bottom: 1px solid #495057;
    color: #fff;
    font-family: "Poppins", var(--bs-body-font-family);
    font-size: 16px;
    text-decoration: none;
    white-space: nowrap;
}

.rp-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.rp-nav-link.active {
    background: var(--rp-sidebar-active);
    color: #e9ecef;
}

.rp-nav-link img {
    flex-shrink: 0;
}

.rp-sidebar-toggle {
    margin-top: auto;
    align-self: flex-end;
    padding: 0;
    border: 0;
}

.rp-sidebar-toggle .rp-when-collapsed,
.rp-sidebar-collapsed .rp-sidebar-toggle .rp-when-expanded {
    display: none;
}

.rp-sidebar-collapsed .rp-sidebar-toggle .rp-when-collapsed {
    display: block;
}

.rp-sidebar-collapsed .rp-sidebar {
    width: var(--rp-sidebar-collapsed-width);
}

.rp-sidebar-collapsed .rp-nav-link {
    justify-content: center;
}

.rp-sidebar-collapsed .rp-nav-label {
    display: none;
}

.rp-sidebar-collapsed .rp-sidebar-toggle {
    align-self: center;
}

.rp-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.rp-main {
    flex: 1;
}

/* Footer (Figma: "Frame 128"; phone: stacked logo and two-line copyright) */
.rp-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin: 0 16px;
    padding: 24px 1px;
    border-top: 1px solid #abb5be;
    color: var(--rp-muted);
    font-size: 16px;
    line-height: 28px;
    text-align: center;
}

@media (min-width: 992px) {
    .rp-footer {
        flex-direction: row;
        justify-content: space-between;
        margin: 0;
        padding: 30px 50px;
        text-align: left;
    }
}

/* ---------- Page header band ---------- */
.rp-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
}

.rp-page-header.rp-soft {
    background: var(--rp-surface-soft);
}

@media (min-width: 992px) {
    .rp-page-header { padding: 1.75rem 2.5rem; }
}

.rp-page-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

.rp-page-body {
    padding: 1rem 1rem 2rem;
}

@media (min-width: 992px) {
    .rp-page-body { padding: 1.5rem 2.5rem 2.5rem; }
}

/* ---------- Villas Management (Figma: "Villas management/1", "/2"; phone: "Villas Management") ---------- */
.rp-villas-header {
    padding: 23px 16px 8px;
}

.rp-villas-header h1 {
    color: #1b2328;
    font-size: 20px;
    font-weight: 700;
}

.rp-villas-body {
    padding: 0 16px 24px;
}

@media (min-width: 992px) {
    .rp-villas-header { padding: 33px 52px 41px; }
    .rp-villas-header h1 { color: #000; font-size: 28px; }
    .rp-villas-body { padding: 0 52px 52px; }
}

.rp-villa-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

@media (min-width: 992px) {
    .rp-villa-grid {
        grid-template-columns: repeat(auto-fill, minmax(0, 530px));
        gap: 24px;
    }
}

.rp-villa-card {
    display: block;
    border: 1px solid #ced4da;
    border-radius: 16px;
    overflow: hidden;
    background: #f8f9fa;
    color: #1a1a1a;
    text-decoration: none;
    transition: box-shadow .15s ease, transform .15s ease;
}

.rp-villa-card:hover {
    color: #1a1a1a;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    transform: translateY(-2px);
}

.rp-villa-photo {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 160px;
    padding: 10px;
    background: linear-gradient(135deg, #8a9097, #50565e);
    background-size: cover;
    background-position: center;
}

@media (min-width: 992px) {
    .rp-villa-photo { height: 236px; }
}

.rp-villa-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 24.5%, rgba(0, 0, 0, .7));
}

.rp-villa-caption {
    position: relative;
    z-index: 1;
    color: #fff;
    font-weight: 700;
}

.rp-villa-caption strong {
    display: block;
    font-size: 16px;
}

.rp-villa-caption small {
    display: block;
    color: var(--rp-gold);
    font-family: "Inter", var(--bs-body-font-family);
    font-size: 12px;
}

.rp-villa-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 0;
    padding: 16px 15px;
    font-size: 16px;
    line-height: 20px;
}

.rp-villa-details .rp-span-2 {
    grid-column: span 2;
}

.rp-field-label {
    display: block;
    color: var(--rp-gold);
    font-size: 12px;
    line-height: normal;
}

/* ---------- Rental Calendar (Figma: "calendar" yearly/quarterly; phone: "Rental Calendar", "Day", "Day Small", "Modal A/B/AB") ---------- */
.rp-cal-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px 8px;
    padding: 8px 16px;
}

.rp-cal-header h1 {
    flex: 1;
    margin: 0;
    color: #1b2328;
    font-size: 20px;
    font-weight: 700;
}

.rp-cal-icons {
    display: flex;
    gap: 4px;
}

.rp-cal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
}

.rp-cal-view-menu {
    min-width: 0;
    padding: 0;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, .15);
    overflow: hidden;
}

.rp-cal-view-menu a {
    display: block;
    padding: 6px 8px;
    color: #343a40;
    font-family: "Quicksand", var(--bs-body-font-family);
    font-size: 16px;
    text-decoration: none;
    white-space: nowrap;
}

.rp-cal-view-menu a:hover {
    background: #f8f9fa;
}

.rp-cal-tools {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.rp-cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #1b2328;
    font-size: 12px;
}

.rp-cal-legend > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 0;
}

/* Legend swatches reuse the day classes, so they always match the calendar. */
.rp-swatch {
    flex: none;
    width: 11px;
    height: 15px;
    border-radius: 3px;
}

.rp-swatch-none {
    background: #e9ecef;
    box-shadow: inset 0 0 0 1px #ced4da;
}

.rp-unit-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 16px;
    border-radius: 8px;
    background: #6c757d;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
}

@media (min-width: 992px) {
    .rp-cal-header {
        flex-wrap: nowrap;
        gap: 24px;
        padding: 33px 49px 16px 48px;
        background: #f8f9fa;
    }

    .rp-cal-header h1 {
        flex: 0 0 auto;
        color: #000;
        font-size: 28px;
        line-height: 38px;
    }

    .rp-cal-tools {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        gap: 8px 24px;
    }
}

.rp-cal-filters {
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 24px;
}

.rp-cal-actions {
    display: flex;
    gap: 16px;
}

.rp-cal-select, .rp-cal-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 10px;
    background-color: transparent;
    font-size: 16px;
    line-height: 28px;
}

.rp-cal-select {
    padding-right: 32px;
    color: #6c757d;
    appearance: none;
    background: url("../img/calendar/chevron-down.svg") no-repeat right 12px center / 12px 7.4px;
}

.rp-cal-button {
    color: #343a40;
    text-decoration: none;
}

.rp-cal-button:hover {
    color: #343a40;
    background: #e9ecef;
}

/* Phone tabs: Previous / January / Next, or 2024 / 2025 / 2026 */
.rp-cal-tabs {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    margin-bottom: 8px;
    border-bottom: .5px solid var(--rp-gold);
    font-family: "Plus Jakarta Sans", var(--bs-body-font-family);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.075px;
    line-height: 1.35;
    text-align: center;
}

.rp-cal-tabs > * {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    color: #6c757d;
    text-decoration: none;
}

.rp-cal-tabs .active {
    border-bottom: 2px solid var(--rp-gold);
    border-radius: 8px;
    color: var(--rp-gold);
}

/* Months */
.rp-cal-body {
    display: grid;
    gap: 24px;
    padding: 4px 12px 24px;
}

.rp-cal-view-year {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 8px;
}

@media (min-width: 992px) {
    .rp-cal-body {
        padding: 50px 48px 48px;
    }

    .rp-cal-view-quarter {
        grid-template-columns: repeat(3, minmax(0, 421px));
        justify-content: center;
        gap: 42px;
    }

    .rp-cal-view-month {
        grid-template-columns: minmax(0, 421px);
        justify-content: center;
    }

    .rp-cal-view-year {
        grid-template-columns: repeat(4, minmax(0, 280px));
        justify-content: center;
        gap: 24px;
        padding-top: 32px;
    }
}

.rp-cal-month-title {
    margin: 0 0 6px;
    color: #1b2328;
    font-size: 20px;
    font-weight: 400;
    text-align: center;
}

.rp-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.rp-cal-weekday {
    padding: 6px 0;
    color: #6c757d;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -.065px;
    text-align: center;
}

/* Day (Figma "Day": 44x60, radius 12, side badge under the number) */
.rp-day {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 8px 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #e9ecef;
    color: #1a1a1a;
    font-size: 16px;
    line-height: 28px;
}

.rp-day > span {
    position: relative;
}

.rp-day-outside { background: #fff; color: #6c757d; }
.rp-day-ownerfree, .rp-day-blocked { background: #f1aeb5; }
.rp-day-rentalfree { background: #fecba1; }
.rp-day-owner { background: #e35d6a; }
.rp-day-rental { background: #fd9843; }
.rp-day-mixed { background: #fd9843 url("../img/calendar/day-mixed.svg") no-repeat 0 0 / 100% 100%; }

.rp-day .rp-unit-badge { background: #b02a37; }
.rp-day-rental .rp-unit-badge { background: #ca6510; }

button.rp-day {
    cursor: pointer;
}

button.rp-day:hover, button.rp-day:focus-visible {
    filter: brightness(1.06);
    outline: 2px solid #1a1a1a;
    outline-offset: -2px;
}

/* Day Small (yearly view): no badges; weekday initials sit in gray cells. */
.rp-cal-compact .rp-cal-month-title {
    margin: 0 0 4px;
    font-size: 16px;
    text-align: left;
}

.rp-cal-compact .rp-cal-grid {
    gap: 1px;
}

.rp-cal-compact .rp-cal-weekday,
.rp-cal-compact .rp-day {
    height: auto;
    aspect-ratio: 1;
    padding: 0;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
}

.rp-cal-compact .rp-cal-weekday {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    color: #1a1a1a;
}

@media (min-width: 992px) {
    .rp-cal-compact .rp-cal-month-title {
        margin-bottom: 6px;
        font-size: 24px;
        line-height: 28px;
    }

    .rp-cal-compact .rp-cal-grid {
        gap: 2px;
    }

    .rp-cal-compact .rp-cal-weekday,
    .rp-cal-compact .rp-day {
        aspect-ratio: 38 / 35;
        font-size: 16px;
    }
}

/* Reservation Detail modal */
.rp-reservation-modal .modal-dialog {
    max-width: 598px;
}

.rp-reservation-modal .modal-content {
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.rp-reservation-modal .modal-header {
    height: 79px;
    padding: 0 24px 0 15px;
}

.rp-reservation-modal .modal-title {
    color: #343a40;
    font-size: 20px;
    font-weight: 700;
}

.rp-modal-close {
    display: flex;
    margin-left: auto;
    padding: 5px;
    border: 0;
    background: none;
}

.rp-reservation-modal .modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 460px;
    padding: 16px;
}

.rp-reservation-modal .modal-footer {
    padding: 15px;
}

.rp-modal-button {
    padding: 16px 48px;
    border-radius: 16px;
    font-size: 16px;
}

.rp-unit {
    /* Keep each card whole; the modal body scrolls instead of shrinking the cards. */
    flex: none;
    border: 1px solid #ced4da;
    border-radius: 12px;
    overflow: hidden;
    color: #1b2328;
}

.rp-unit header {
    display: flex;
    align-items: center;
    background: #f0e5cf;
    font-size: 16px;
    line-height: 28px;
    text-transform: uppercase;
}

.rp-unit-side {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 8px;
    color: var(--rp-gold);
    font-size: 20px;
    font-weight: 700;
}

.rp-unit dl {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 8px;
}

.rp-unit dl > div {
    display: flex;
    flex-direction: column;
    width: 205px;
    max-width: 100%;
}

.rp-unit dl > .rp-unit-wide {
    width: 100%;
}

.rp-unit dd {
    margin: 0;
    font-size: 16px;
    line-height: 28px;
}

.rp-unit dt {
    font-family: "Inter", var(--bs-body-font-family);
    font-size: 12px;
    font-weight: 700;
}

/* ---------- Rental Report (Figma: "rental report/1-3"; phone: "Rental Report", "- 2", "- 3") ---------- */
.rp-report-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 16px 15px;
    background: #f8f9fa;
}

.rp-report-header h1 {
    margin: 0;
    color: #1b2328;
    font-size: 20px;
    font-weight: 700;
}

.rp-report-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 189px);
    width: 100%;
    align-items: center;
    gap: 16px 8px;
    font-family: "Quicksand", var(--bs-body-font-family);
    font-size: 16px;
}

.rp-report-types {
    display: flex;
    gap: 16px;
    padding-left: 4px;
}

.rp-report-types .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
    margin: 0;
    padding: 0;
    color: #212529;
}

.rp-report-types .form-check-input {
    float: none;
    width: 16px;
    height: 16px;
    margin: 0;
    border-color: rgba(0, 0, 0, .15);
}

.rp-report-types .form-check-input:checked {
    border-color: var(--rp-gold);
    background-color: var(--rp-gold);
}

.rp-report-room {
    width: 100%;
    height: 38px;
    padding: 6px 32px 6px 13px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff url("../img/report/select-down.svg") no-repeat right 13px center / 12px 12px;
    color: #212529;
    line-height: 1.5;
    appearance: none;
}

input.rp-report-room {
    padding-right: 13px;
    background-image: none;
}

.rp-report-room::placeholder,
select.rp-report-room:has(option[value=""]:checked) {
    color: #6c757d;
}

.rp-date-range {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    height: 38px;
    padding: 0 13px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
}

.rp-date-range:focus-within {
    border-color: #86b7fe;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, .25);
}

.rp-date-field {
    position: relative;
    flex: 1;
    min-width: 0;
    margin: 0;
}

.rp-date-field input {
    width: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #212529;
    line-height: 1.5;
}

/* The calendar icon at the end of the range opens the pickers, as in the design. */
.rp-date-field input::-webkit-calendar-picker-indicator {
    display: none;
}

.rp-date-placeholder {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    color: #6c757d;
    pointer-events: none;
}

.rp-date-field.is-empty:not(:focus-within) .rp-date-placeholder {
    display: flex;
}

.rp-date-field.is-empty:not(:focus-within) input {
    color: transparent;
}

.rp-date-arrow {
    flex: none;
    margin: 0 8px;
    opacity: .87;
}

.rp-date-icon {
    display: flex;
    flex: none;
    margin-left: 4px;
    padding: 1px;
    border: 0;
    background: none;
}

.rp-report-submit {
    grid-column: 2;
    justify-self: end;
    width: 135px;
    height: 36px;
    padding: 4px 12px;
    border: 0;
    border-radius: 8px;
    background: var(--rp-gold);
    color: #fff;
    font-family: var(--bs-body-font-family);
    font-size: 16px;
    font-weight: 700;
}

.rp-report-submit:hover {
    background: #a5823e;
}

@media (min-width: 992px) {
    .rp-report-header {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 16px 24px;
        min-height: 104px;
        padding: 33px 50px 33px 48px;
    }

    .rp-report-header h1 {
        color: #000;
        font-size: 28px;
        line-height: 38px;
    }

    .rp-report-filters {
        display: flex;
        width: auto;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 16px 24px;
    }

    .rp-report-room {
        width: 189px;
    }

    .rp-date-range {
        width: 370px;
    }
}

/* Body */
.rp-report-body {
    padding: 16px 16px 24px;
}

@media (min-width: 992px) {
    .rp-report-body {
        padding: 29px 50px 48px 48px;
    }
}

.rp-report-message {
    margin-bottom: 24px;
}

.rp-building {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 48px 0 64px;
    color: #1a1a1a;
    font-size: 16px;
}

.rp-building.d-none {
    display: none;
}

.rp-spinner {
    width: 80px;
    height: 80px;
    border: 3px solid transparent;
    border-top-color: var(--rp-gold);
    border-right-color: var(--rp-gold);
    border-radius: 50%;
    animation: rp-spin 1s linear infinite;
}

@keyframes rp-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .rp-spinner { animation-duration: 3s; }
}

/* Labelled values: a value with its small bold caption under it. */
.rp-stay > div,
.rp-upcoming > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rp-stay span,
.rp-upcoming span {
    color: #1b2328;
    font-size: 16px;
    line-height: 28px;
}

.rp-stay b,
.rp-upcoming b {
    color: #1b2328;
    font-family: "Inter", var(--bs-body-font-family);
    font-size: 12px;
    font-weight: 700;
}

.rp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 12px;
    color: #fff !important;
    font-size: 12px !important;
    line-height: 16px !important;
    white-space: nowrap;
}

.rp-badge-owner { background: #b02a37; }
.rp-badge-rental { background: #fd9843; }

/* Results (web: one line per stay; phone: two lines like the cards) */
.rp-stays {
    margin-bottom: 64px;
}

.rp-stay {
    display: grid;
    grid-template-columns: auto auto 1fr;
    grid-template-areas:
        "guest villa type"
        "period nights .";
    gap: 8px 24px;
    padding: 12px 8px;
    border-bottom: 1px solid #ced4da;
}

.rp-stay:nth-child(even) {
    background: #e9ecef;
}

.rp-stay-guest { grid-area: guest; }
.rp-stay-period { grid-area: period; }
.rp-stay-villa { grid-area: villa; }
.rp-stay-nights { grid-area: nights; }
.rp-stay-type { grid-area: type; align-items: flex-end; }

.rp-stay-total {
    grid-template-areas: "guest nights";
    grid-template-columns: 1fr auto;
    background: #fff !important;
}

@media (min-width: 992px) {
    .rp-stay {
        grid-template-columns: 250px 325px 312px 1fr 186px;
        grid-template-areas: "guest period villa nights type";
        align-items: center;
        gap: 0;
        padding: 8px;
    }

    .rp-stay:nth-child(odd) {
        background: #e9ecef;
    }

    .rp-stay:nth-child(even) {
        background: #fff;
    }

    .rp-stay-type .rp-badge {
        width: 186px;
        height: 28px;
    }

    .rp-stay-total {
        grid-template-columns: 887px 1fr;
        grid-template-areas: "guest nights";
    }
}

/* Cards */
.rp-report-cards {
    display: grid;
    gap: 16px;
}

@media (min-width: 992px) {
    .rp-report-cards {
        grid-template-columns: minmax(0, 370fr) minmax(0, 398fr) minmax(0, 531fr);
        gap: 24px;
    }

    .rp-card-history {
        grid-column: 1 / 3;
    }
}

.rp-report-card {
    min-width: 0;
    padding: 15px;
    border: 1px solid #ced4da;
    border-radius: 12px;
    background: #fff;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, .35));
}

.rp-report-card h2 {
    margin: 0 0 19px;
    color: #1b2328;
    font-size: 16px;
    font-weight: 700;
}

.rp-card-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.rp-upcoming {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
    gap: 8px 16px;
    padding-bottom: 8px;
}

.rp-upcoming + .rp-upcoming {
    padding-top: 8px;
    border-top: 1px solid #adb5bd;
}

.rp-upcoming > .rp-badge {
    align-self: start;
    margin-top: 1px;
}

.rp-upcoming-period {
    grid-column: 1;
}

.rp-upcoming-period + div {
    grid-column: 2 / 4;
}

.rp-chart {
    position: relative;
}

.rp-chart-donut { height: 226px; max-width: 226px; margin: 24px auto; }
.rp-chart-bars { height: 210px; margin-top: 16px; }
.rp-chart-history { height: 190px; margin-top: 8px; }

.rp-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 30px;
    color: #6c757d;
    font-size: 12px;
}

.rp-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rp-chart-legend-center {
    justify-content: center;
}

.rp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.rp-dot-owner { background: #b02a37; }
.rp-dot-rental { background: #fd9843; }

.rp-history-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: #0a58ca;
    font-size: 12px;
}

/* ---------- Miscellaneous (Figma: "miscellaneous/1-2", "miscellaneous extended/1-2"; phone: "Misc") ---------- */
.rp-misc-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 16px 16px;
    background: #f8f9fa;
}

.rp-misc-header h1 {
    margin: 0;
    color: #1b2328;
    font-size: 16px;
    font-weight: 700;
    line-height: 27px;
}

.rp-misc-crumbs {
    color: #1b2328;
    font-size: 16px;
    font-weight: 700;
    line-height: 27px;
}

.rp-misc-crumbs a {
    color: inherit;
    text-decoration: none;
}

.rp-misc-crumbs a:hover {
    text-decoration: underline;
}

.rp-misc-crumbs span {
    color: var(--rp-gold);
}

/* The phone shows the folder only in the breadcrumb. */
.rp-misc-folder-title {
    display: none;
}

.rp-misc-search {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 38px;
    padding: 0 13px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
}

.rp-misc-search:focus-within {
    border-color: #86b7fe;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, .25);
}

.rp-misc-search input {
    flex: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #212529;
    font-family: "Quicksand", var(--bs-body-font-family);
    font-size: 16px;
    line-height: 1.5;
}

.rp-misc-search input::placeholder {
    color: #6c757d;
}

.rp-misc-search button {
    display: flex;
    padding: 0;
    border: 0;
    background: none;
}

@media (min-width: 992px) {
    .rp-misc-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        min-height: 104px;
        padding: 16px 46px 16px 48px;
    }

    .rp-misc-header h1,
    .rp-misc-folder-title {
        display: block;
        color: #000;
        font-size: 28px;
        line-height: 38px;
    }

    .rp-misc-crumbs {
        color: #000;
        line-height: 22px;
    }

    .rp-misc-crumbs span {
        color: #93783f;
    }

    .rp-misc-search {
        flex: 0 1 677px;
    }
}

.rp-misc-body {
    padding: 16px;
}

@media (min-width: 992px) {
    .rp-misc-body {
        padding: 16px 46px 48px 48px;
    }

    .rp-misc-home {
        padding-top: 50px;
    }
}

.rp-misc-empty {
    color: #6c757d;
}

/* Folders */
.rp-folders {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rp-folders + .rp-files {
    margin-top: 32px;
}

.rp-folder {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-radius: 12px;
    background: #e9ecef;
    color: #1b2328;
    text-decoration: none;
}

.rp-folder:hover,
.rp-folder:focus-visible {
    background: #dee2e6;
    color: #1b2328;
}

.rp-folder-icon {
    flex: none;
    width: 80px;
    height: 72px;
    object-fit: cover;
}

.rp-folder-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.rp-folder-text span {
    font-size: 16px;
    line-height: 21px;
}

.rp-folder-text b {
    font-family: "Inter", var(--bs-body-font-family);
    font-size: 12px;
}

@media (min-width: 992px) {
    .rp-folder-icon {
        width: 40px;
        height: 36px;
    }

    .rp-folder-text {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .rp-folder-text span {
        line-height: 28px;
    }

    .rp-folder-text b {
        min-width: 67px;
        font-family: var(--bs-body-font-family);
        font-size: 16px;
        line-height: 28px;
        white-space: nowrap;
    }
}

/* Files (web: one line per file; phone: the date under the name) */
.rp-file {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "icon name actions"
        "icon date actions";
    column-gap: 8px;
    padding: 8px;
    border-bottom: 1px solid #ced4da;
    background: #fff;
    color: #1b2328;
}

.rp-file:nth-child(odd) {
    background: #e9ecef;
}

.rp-file-head {
    display: none;
}

.rp-file-icon {
    grid-area: icon;
    align-self: center;
}

.rp-file-name {
    grid-area: name;
    font-size: 14px;
    line-height: 20px;
    overflow-wrap: anywhere;
}

.rp-file-name small {
    display: block;
    color: #6c757d;
    font-size: 12px;
    line-height: 16px;
}

.rp-file-date {
    grid-area: date;
    font-family: "Inter", var(--bs-body-font-family);
    font-size: 12px;
}

.rp-file-actions {
    grid-area: actions;
    display: flex;
    gap: 8px;
}

.rp-file-actions a {
    display: flex;
    border-radius: 4px;
}

.rp-file-actions a:hover {
    background: rgba(0, 0, 0, .08);
}

@media (min-width: 992px) {
    .rp-file {
        grid-template-columns: 18px 465px minmax(0, 1fr) auto;
        grid-template-areas: "icon name date actions";
        align-items: center;
    }

    .rp-file-head {
        display: grid;
        color: #4e4e4f;
        font-size: 14px;
        line-height: 20px;
    }

    .rp-file-head span:first-child {
        grid-column: 1 / 3;
    }

    .rp-file-date {
        color: #707070;
        font-family: var(--bs-body-font-family);
        font-size: 14px;
        line-height: 20px;
    }

    .rp-file-date b {
        display: none;
    }
}
