:root {
    --bg: #ffffff;
    --bg2: #f6f7f9;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --shadow: 0 10px 25px rgba(17, 24, 39, .08);
    --radius: 16px;

    --primary: #0b5cff;
    /* modern blue */
    --primary2: #0847c6;
    --danger: #ef4444;
    --warn: #f59e0b;
    --success: #10b981;
    --info: #3b82f6;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background: var(--bg2);
}

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

a:hover {
    text-decoration: underline;
}

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

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(1.2) blur(10px);
    border-bottom: 1px solid var(--line);
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand__logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.brand__name {
    font-weight: 700;
    letter-spacing: -.02em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav__toggle {
    display: none;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav__link {
    padding: 10px 10px;
    border-radius: 12px;
    color: var(--text);
}

.nav__link:hover {
    background: #f2f4f7;
    text-decoration: none;
}

.nav__sep {
    width: 1px;
    height: 28px;
    background: var(--line);
    margin: 0 6px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 12px;
    margin-left: 6px;
    color: #fff;
}

.badge--success {
    background: var(--success);
}

.badge--warn {
    background: var(--warn);
}

.badge--info {
    background: var(--info);
}

.badge--danger {
    background: var(--danger);
}

.iconbtn {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    padding: 8px 10px;
    cursor: pointer;
}

.pill {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn--primary {
    background: var(--primary);
    color: #fff;
}

.btn--primary:hover {
    background: var(--primary2);
}

.btn--ghost {
    background: #fff;
    border-color: var(--line);
}

.btn--ghost:hover {
    background: #f2f4f7;
}

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

.toasts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0 14px;
}

.toast {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 6px 18px rgba(17, 24, 39, .06);
}

.toast__text {
    color: var(--text);
    font-size: 14px;
}

.toast__close {
    border: 0;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    color: var(--muted);
}

.toast--error {
    border-color: rgba(239, 68, 68, .35);
}

.toast--success {
    border-color: rgba(16, 185, 129, .35);
}

.toast--warning {
    border-color: rgba(245, 158, 11, .35);
}

.toast--info {
    border-color: rgba(59, 130, 246, .35);
}

.main {
    padding: 22px 0 40px;
}

.hero {
    background: linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
    border-bottom: 1px solid var(--line);
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 22px;
    align-items: stretch;
    padding: 22px 0;
}

.hero__copy {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.hero__title {
    margin: 0 0 8px;
    font-size: 32px;
    letter-spacing: -.03em;
}

.hero__subtitle {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.5;
}

.hero__media {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: #fff;
}

.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 260px;
}

.searchbox {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    background: var(--bg2);
}

.searchbox__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr .8fr .8fr;
    gap: 10px;
}

.field__label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 6px;
}

.field__input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    background: #fff;
}

.field--button {
    display: flex;
    align-items: end;
}

.searchbox__hint {
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
}

.airow {
    margin-top: 14px;
}

.airow__label {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
}

.airow__box {
    display: flex;
    gap: 10px;
}

.airow__input {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
}

.airow__note {
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
}

.section {
    padding: 22px 0;
}

.section__top {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.section__title {
    margin: 0;
    font-size: 22px;
    letter-spacing: -.02em;
}

.link {
    color: var(--primary);
    font-weight: 600;
}

.kicker {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 12px;
    margin-bottom: 8px;
}

.section__lead {
    color: var(--text);
    font-size: 16px;
    line-height: 1.55;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(17, 24, 39, .06);
}

.card__media img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card__body {
    padding: 14px;
}

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

.card__title {
    margin: 0;
    font-size: 16px;
    letter-spacing: -.01em;
}

.card__price {
    text-align: right;
    white-space: nowrap;
}

.card__priceVal {
    font-weight: 800;
}

.card__priceCur {
    margin-left: 6px;
    font-weight: 700;
    color: var(--muted);
}

.card__priceUnit {
    margin-left: 6px;
    color: var(--muted);
    font-size: 13px;
}

.card__meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
    margin-top: 8px;
}

.card__desc {
    margin: 10px 0 0;
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
}

.card__actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.pager__btn {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 600;
}

.pager__btn--disabled {
    opacity: .5;
    cursor: not-allowed;
}

.pager__text {
    color: var(--muted);
    font-size: 14px;
}

.section--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(17, 24, 39, .06);
}

.panel--media {
    padding: 0;
    overflow: hidden;
}

.panel--media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 220px;
}

.panel__title {
    margin: 0 0 10px;
    font-size: 18px;
}

.panel__text {
    color: #374151;
    line-height: 1.6;
}

.notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(17, 24, 39, .06);
}

.notice--soft {
    background: #fbfbfc;
}

.notice__icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.notice__text {
    color: #374151;
    line-height: 1.55;
}

.mailer {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(17, 24, 39, .06);
}

.footer {
    margin-top: 26px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.footer__inner {
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer__links {
    display: flex;
    gap: 14px;
}

.footer__meta {
    color: var(--muted);
    font-size: 13px;
}

/* Sheet (mobile menu) */
.sheet {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .28);
    display: none;
    z-index: 80;
}

.sheet--open {
    display: block;
}

.sheet__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(360px, 92vw);
    height: 100%;
    background: #fff;
    border-left: 1px solid var(--line);
    padding: 14px;
    box-shadow: -12px 0 30px rgba(17, 24, 39, .12);
}

.sheet__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sheet__title {
    font-weight: 800;
}

.sheet__body {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sheet__link {
    padding: 10px 10px;
    border-radius: 12px;
}

.sheet__link:hover {
    background: #f2f4f7;
    text-decoration: none;
}

.sheet__row {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.sheet__btn {
    width: 100%;
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .32);
    display: none;
    z-index: 90;
    padding: 20px;
}

.modal--open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__panel {
    width: min(460px, 92vw);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.modal__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px;
    border-bottom: 1px solid var(--line);
}

.modal__title {
    font-weight: 800;
}

.form {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.label {
    font-size: 13px;
    color: var(--muted);
}

.input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
}

/* Responsive */
@media (max-width: 980px) {
    .hero__inner {
        grid-template-columns: 1fr;
    }

    .hero__media {
        display: none;
    }

    .searchbox__grid {
        grid-template-columns: 1fr 1fr;
    }

    .field--button {
        grid-column: 1 / -1;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section--split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .nav__toggle {
        display: inline-flex;
    }

    .nav__links {
        display: none;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}


/* ---------- Form helpers for property create/edit ---------- */

.field {
    margin-bottom: 1rem;
}

.info-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    font-size: 0.95rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.info-btn:hover {
    color: var(--primary);
}

.choice-list {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.choice {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.4;
    cursor: pointer;
}

.choice input[type="checkbox"],
.choice input[type="radio"] {
    margin-top: 0.2rem;
    transform: scale(0.95);
}

.choice span {
    color: var(--text);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1.5rem;
    margin-top: 0.5rem;
}

@media (max-width: 640px) {
    .amenities-grid {
        grid-template-columns: 1fr;
    }
}