:root {
    --vv-ink: #17212b;
    --vv-muted: #66737f;
    --vv-line: #dde4df;
    --vv-surface: #ffffff;
    --vv-mist: #f4f7f3;
    --vv-teal: #0f766e;
    --vv-coral: #e65f4f;
    --vv-gold: #c89b3c;
    --vv-leaf: #5f7f53;
}

html,
body {
    direction: rtl;
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    background: var(--vv-mist);
    color: var(--vv-ink);
}

* {
    box-sizing: border-box;
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

h1:focus {
    outline: none;
}

.mud-button-root,
.mud-paper,
.mud-card,
.mud-input-outlined-border,
.mud-chip {
    border-radius: 8px !important;
}

.vv-appbar {
    height: 68px;
    padding: 0 24px;
    color: var(--vv-ink);
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(221, 228, 223, .9);
    backdrop-filter: blur(14px);
}

.vv-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.vv-brand__mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #fff;
    font-weight: 800;
    background: var(--vv-ink);
    border: 2px solid var(--vv-gold);
    border-radius: 8px;
}

.vv-brand strong,
.vv-brand small {
    display: block;
    line-height: 1.25;
}

.vv-brand strong {
    font-size: 1.02rem;
    font-weight: 800;
}

.vv-brand small {
    color: var(--vv-muted);
    font-size: .72rem;
}

.vv-topnav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-inline-end: 24px;
    color: #394653;
    font-size: .94rem;
    white-space: nowrap;
}

.vv-topnav a:hover {
    color: var(--vv-teal);
}

.vv-drawer {
    border-left: 1px solid var(--vv-line);
}

.vv-drawer-head {
    padding: 18px 18px 12px;
    border-bottom: 1px solid var(--vv-line);
}

.vv-brand--drawer {
    width: 100%;
}

.vv-nav-menu {
    padding: 12px;
}

.vv-main {
    min-height: 100vh;
}

.vv-page {
    padding: 92px 24px 42px;
}

.vv-hero {
    min-height: 560px;
    display: grid;
    align-items: end;
    overflow: hidden;
    padding: 42px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(15, 24, 35, .06), rgba(15, 24, 35, .72)),
        url('/images/villas/hero.png') center/cover;
    border-radius: 8px;
}

.vv-hero__content {
    width: min(100%, 1120px);
    margin: 0 auto;
}

.vv-chip--glass {
    color: #fff !important;
    background: rgba(255, 255, 255, .18) !important;
    border: 1px solid rgba(255, 255, 255, .32);
    backdrop-filter: blur(10px);
}

.vv-hero h1 {
    margin: 14px 0 10px;
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: .92;
}

.vv-hero p {
    max-width: 680px;
    margin: 0 0 26px;
    font-size: clamp(1rem, 2vw, 1.28rem);
    line-height: 2;
}

.vv-search {
    padding: 14px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .7);
}

.vv-search form {
    margin: 0;
}

.vv-search__button {
    height: 56px;
}

.vv-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 56px;
    color: #fff;
    background: #176f3b;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.vv-search-submit:hover {
    background: #125d31;
}

.vv-combo-field,
.vv-date-field {
    position: relative;
    display: grid;
    gap: 4px;
    width: 100%;
    min-width: 0;
}

.vv-combo-field span,
.vv-date-field span {
    color: #5d6874;
    font-size: .76rem;
    font-weight: 600;
}

.vv-date-field__control {
    position: relative;
}

.vv-combo-field input,
.vv-date-field input {
    width: 100%;
    height: 56px;
    padding: 0 14px;
    color: var(--vv-ink);
    background: #fff;
    border: 1px solid #b8c2cc;
    border-radius: 8px;
    font: inherit;
    outline: none;
}

.vv-date-field input {
    padding-inline-end: 46px;
}

.vv-combo-field input:focus,
.vv-date-field input:focus {
    border-color: var(--vv-teal);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.vv-combo-field input::placeholder,
.vv-date-field input::placeholder {
    color: #8b97a3;
}

.vv-date-field input.is-invalid {
    border-color: var(--vv-coral);
}

.vv-date-field small {
    color: var(--vv-coral);
    font-size: .72rem;
}

.vv-date-field__icon {
    position: absolute;
    top: 50%;
    left: 10px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--vv-muted);
    background: transparent;
    border: 0;
    border-radius: 8px;
    transform: translateY(-50%);
    cursor: pointer;
}

.vv-date-field__icon:hover {
    color: var(--vv-teal);
    background: rgba(15, 118, 110, .08);
}

.vv-persian-calendar {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 40;
    width: min(320px, calc(100vw - 48px));
    padding: 12px;
    color: var(--vv-ink);
    background: #fff;
    border: 1px solid var(--vv-line);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(23, 33, 43, .16);
}

.vv-filter-panel .vv-persian-calendar,
.metric .vv-persian-calendar,
.vv-booking-panel .vv-persian-calendar {
    top: calc(100% + 8px);
    bottom: auto;
}

.vv-persian-calendar__head,
.vv-persian-calendar__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.vv-persian-calendar__head button,
.vv-persian-calendar__foot button,
.vv-persian-calendar__days button {
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.vv-persian-calendar__head button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
}

.vv-persian-calendar__head button:hover,
.vv-persian-calendar__foot button:hover,
.vv-persian-calendar__days button:hover {
    background: rgba(15, 118, 110, .08);
}

.vv-persian-calendar__weekdays,
.vv-persian-calendar__days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.vv-persian-calendar__weekdays {
    margin: 12px 0 8px;
    color: var(--vv-muted);
    font-size: .76rem;
    font-weight: 800;
    text-align: center;
}

.vv-persian-calendar__days button,
.vv-persian-calendar__days .is-empty {
    display: grid;
    place-items: center;
    min-width: 0;
    height: 36px;
    font-weight: 700;
}

.vv-persian-calendar__days button.is-today {
    color: var(--vv-teal);
    border: 1px solid rgba(15, 118, 110, .3);
}

.vv-persian-calendar__days button.is-selected {
    color: #fff;
    background: var(--vv-teal);
}

.vv-persian-calendar__days button:disabled {
    color: #8a94a6;
    background: #eef1f5;
    cursor: not-allowed;
    opacity: .82;
}

.vv-persian-calendar__days button.is-booked,
.vv-persian-calendar__days button.is-booked:disabled {
    color: #fff;
    background: #b4233a;
    border-color: #b4233a;
    opacity: .9;
    text-decoration: none;
}

.vv-persian-calendar__days button.is-past-disabled:disabled {
    color: #9aa3b2;
    background: #edf0f3;
    text-decoration: line-through;
}

.vv-persian-calendar__foot {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--vv-line);
}

.vv-persian-calendar__foot button {
    padding: 7px 10px;
    color: var(--vv-teal);
    font-weight: 800;
}

.vv-section {
    width: min(100%, 1180px);
    margin: 38px auto 0;
}

.vv-section--tight {
    margin-top: 22px;
}

.vv-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.vv-muted,
.muted {
    color: var(--vv-muted);
}

.vv-category-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.vv-category {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 76px;
    padding: 14px;
    color: var(--vv-ink);
    background: var(--vv-surface);
    border: 1px solid var(--vv-line);
    border-radius: 8px;
    font-weight: 700;
}

.vv-category:hover {
    border-color: rgba(15, 118, 110, .35);
    box-shadow: 0 12px 30px rgba(23, 33, 43, .08);
}

.vv-category .mud-icon-root {
    color: var(--vv-teal);
}

.vv-city-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 14px;
}

.vv-city {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #fff;
    background-position: center;
    background-size: cover;
    border-radius: 8px;
}

.vv-city:first-child {
    min-height: 280px;
}

.vv-city span {
    font-size: 1.45rem;
    font-weight: 800;
}

.vv-city small {
    margin-top: 6px;
    color: rgba(255, 255, 255, .84);
}

.vv-property-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.vv-property-card {
    overflow: hidden;
    background: var(--vv-surface);
    border: 1px solid var(--vv-line);
    border-radius: 8px;
}

.vv-property-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 38px rgba(23, 33, 43, .1);
}

.vv-property-card__image {
    position: relative;
    min-height: 210px;
    background-position: center;
    background-size: cover;
}

.vv-property-card__image .mud-icon-root {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    padding: 8px;
    color: var(--vv-coral);
    background: rgba(255, 255, 255, .92);
    border-radius: 50%;
}

.vv-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    color: #fff;
    background: rgba(23, 33, 43, .78);
    border-radius: 8px;
    font-size: .78rem;
}

.vv-property-card__body {
    padding: 14px;
}

.vv-property-card__title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.vv-property-card__title strong {
    line-height: 1.8;
}

.vv-property-card__title span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--vv-gold);
    font-weight: 800;
}

.vv-property-card__title .mud-icon-root {
    width: 18px;
    height: 18px;
}

.vv-property-card p {
    min-height: 46px;
    margin: 6px 0 12px;
    color: var(--vv-muted);
    line-height: 1.8;
}

.vv-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.vv-price span {
    font-weight: 800;
}

.vv-price small {
    color: var(--vv-muted);
}

.vv-host-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 28px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(23, 33, 43, .92), rgba(15, 118, 110, .82)),
        url('/images/villas/hosting.png') center/cover;
    border-radius: 8px;
}

.vv-host-band p {
    max-width: 680px;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .84);
    line-height: 2;
}

.vv-filter-panel {
    padding: 16px;
    background: var(--vv-surface);
    border: 1px solid var(--vv-line);
    border-radius: 8px;
}

.vv-empty-state {
    display: grid;
    place-items: center;
    min-height: 320px;
    padding: 32px;
    text-align: center;
    border: 1px dashed var(--vv-line);
}

.vv-empty-state .mud-icon-root {
    width: 54px;
    height: 54px;
    margin-bottom: 12px;
    color: var(--vv-muted);
}

.vv-list-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.vv-result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.vv-detail-hero {
    display: grid;
    grid-template-columns: 1.5fr .8fr;
    gap: 14px;
}

.vv-detail-photo,
.vv-detail-side-photo {
    min-height: 380px;
    background-position: center;
    background-size: cover;
    border-radius: 8px;
}

.vv-detail-side {
    display: grid;
    gap: 14px;
}

.vv-detail-side-photo {
    min-height: 183px;
}

.vv-booking-panel {
    position: sticky;
    top: 88px;
    padding: 18px;
    background: var(--vv-surface);
    border: 1px solid var(--vv-line);
    border-radius: 8px;
}

.metric {
    border-radius: 8px;
    border: 1px solid var(--vv-line);
}

.section {
    margin-top: 28px;
}

.page-title {
    margin-bottom: 20px;
}

.panel-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.vv-host-editor {
    display: grid;
    gap: 16px;
}

.vv-image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.vv-image-preview div,
.vv-host-property-cell div {
    min-height: 110px;
    background-position: center;
    background-size: cover;
    border-radius: 8px;
    border: 1px solid var(--vv-line);
}

.vv-upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px;
    color: var(--vv-teal);
    background: rgba(15, 118, 110, .08);
    border: 1px dashed rgba(15, 118, 110, .45);
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}

.vv-upload-button input {
    display: none;
}

.vv-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.vv-upload-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--vv-line);
    border-radius: 8px;
}

.vv-upload-card.is-primary {
    border-color: var(--vv-gold);
    box-shadow: 0 0 0 3px rgba(200, 155, 60, .14);
}

.vv-upload-card__image {
    min-height: 150px;
    background-position: center;
    background-size: cover;
}

.vv-upload-card__body {
    display: grid;
    gap: 10px;
    padding: 10px;
}

.vv-upload-card__body span {
    overflow: hidden;
    color: var(--vv-muted);
    font-size: .82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vv-upload-card__body div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.vv-amenity-grid,
.vv-week-price-grid,
.vv-host-steps {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.vv-host-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.vv-host-property-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}

.vv-host-property-cell div {
    width: 72px;
    min-width: 72px;
    min-height: 54px;
}

.vv-host-steps div {
    display: grid;
    gap: 8px;
    padding: 14px;
    background: var(--vv-mist);
    border: 1px solid var(--vv-line);
    border-radius: 8px;
}

.vv-host-steps strong {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: #fff;
    background: var(--vv-teal);
    border-radius: 8px;
}

.auth-shell {
    max-width: 460px;
    margin: 64px auto 0;
}

#blazor-error-ui {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: none;
    padding: .75rem 1.25rem;
    background: #fff3cd;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, .2);
}

@media (max-width: 1100px) {
    .vv-topnav {
        display: none;
    }

    .vv-category-strip,
    .vv-property-row,
    .vv-result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vv-city-grid,
    .vv-list-layout,
    .vv-detail-hero {
        grid-template-columns: 1fr;
    }

    .vv-city:first-child {
        min-height: 230px;
    }
}

@media (max-width: 720px) {
    .vv-appbar {
        padding: 0 12px;
    }

    .vv-brand small {
        display: none;
    }

    .vv-page {
        padding: 80px 12px 28px;
    }

    .vv-hero {
        min-height: 520px;
        padding: 22px;
    }

    .vv-category-strip,
    .vv-property-row,
    .vv-result-grid {
        grid-template-columns: 1fr;
    }

    .vv-section-head,
    .vv-host-band {
        align-items: stretch;
        flex-direction: column;
    }

    .vv-detail-photo {
        min-height: 280px;
    }
}
