@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn%5Bwght%5D.woff2?v=1.1.8") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Jalali date controls for Persian pages; the submitted value stays ISO. */
.date-input-locale .persian-date-row { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.45rem; }
.date-input-locale .date-picker { position:relative; min-width:0; }
.date-input-locale .date-picker.is-open { z-index:20; }
.date-input-locale .date-picker__trigger { width:100%; min-height:48px; border:1px solid var(--hotel-line); border-radius:10px; background:var(--hotel-panel); color:var(--hotel-text); font:inherit; padding:.55rem .7rem; cursor:pointer; text-align:inherit; }
.date-input-locale .date-picker__menu { position:absolute; inset-inline:0; top:calc(100% + 4px); z-index:30; max-height:12rem; overflow:auto; margin:0; padding:.3rem 0; list-style:none; background:var(--hotel-panel); border:1px solid var(--hotel-line); border-radius:10px; box-shadow:var(--hotel-shadow); }
.date-input-locale .date-picker.is-open-up .date-picker__menu { top:auto; bottom:calc(100% + 4px); }
.date-input-locale .date-picker__list { margin:0; padding:0; list-style:none; }
.date-input-locale .date-picker__option { padding:.45rem .75rem; cursor:pointer; }
.date-input-locale .date-picker__option:hover,.date-input-locale .date-picker__option.is-selected { background:#e8f7f3; color:var(--hotel-accent-dark); }

* {
    box-sizing: border-box;
}

:root {
    --hotel-font-family: "Vazirmatn", "Segoe UI", "Tahoma", "Arial", -apple-system, BlinkMacSystemFont, sans-serif;
    --hotel-bg: #f5f7fb;
    --hotel-panel: #ffffff;
    --hotel-text: #102033;
    --hotel-muted: #66758a;
    --hotel-line: #dbe4ef;
    --hotel-accent: #0f766e;
    --hotel-accent-dark: #115e59;
    --hotel-ink: #1e3a5f;
    --hotel-gold: #b7791f;
    --hotel-rose: #be123c;
    --hotel-success: #15803d;
    --hotel-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

html {
    min-height: 100%;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    background: var(--hotel-bg);
    color: var(--hotel-text);
    font-family: var(--hotel-font-family);
    font-weight: 400;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

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

input,
select,
textarea,
button {
    font: inherit;
}

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

.hotel-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--hotel-line);
    backdrop-filter: blur(12px);
}

.hotel-topbar__inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hotel-brand,
.hotel-nav,
.hotel-userbar,
.hotel-footer__inner {
    display: flex;
    align-items: center;
}

.hotel-brand {
    gap: 10px;
    text-decoration: none;
    font-weight: 900;
    white-space: nowrap;
}

.hotel-brand__mark {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: var(--hotel-ink);
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0;
}

.hotel-brand__text {
    font-size: 1.05rem;
}

.hotel-nav {
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--hotel-line);
    border-radius: 8px;
    background: #fff;
}

.hotel-nav a {
    min-height: 36px;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    color: var(--hotel-muted);
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.hotel-nav a[aria-current="page"],
.hotel-nav a:hover {
    background: #e9f5f3;
    color: var(--hotel-accent-dark);
}

.hotel-userbar {
    gap: 10px;
    color: var(--hotel-muted);
    font-size: 0.92rem;
}

.hotel-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.48rem 0.9rem;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.hotel-button:hover {
    transform: translateY(-1px);
}

.hotel-button--primary {
    background: var(--hotel-accent);
    color: #fff;
}

.hotel-button--primary:hover {
    background: var(--hotel-accent-dark);
}

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

.hotel-button--danger {
    background: #fff1f2;
    border-color: #fecdd3;
    color: var(--hotel-rose);
}

.hotel-button--full {
    width: 100%;
}

.hotel-hero {
    padding: 34px 0 26px;
    background: linear-gradient(135deg, #eff8f6 0%, #f7f4ea 100%);
    border-bottom: 1px solid var(--hotel-line);
}

.hotel-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 28px;
    align-items: center;
}

.hotel-eyebrow {
    margin: 0 0 0.6rem;
    color: var(--hotel-gold);
    font-weight: 900;
}

.hotel-hero h1,
.hotel-section h1,
.hotel-section h2,
.hotel-room h3 {
    margin: 0;
    color: var(--hotel-text);
    line-height: 1.35;
}

.hotel-hero h1 {
    max-width: 760px;
    font-size: 2.2rem;
}

.hotel-hero p {
    max-width: 660px;
    margin: 1rem 0 0;
    color: #38506b;
}

.hotel-hero__media {
    aspect-ratio: 16 / 11;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--hotel-shadow);
    background: #dbeafe;
}

.hotel-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hotel-search {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr 0.75fr auto;
    gap: 10px;
    margin-top: 22px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--hotel-line);
    border-radius: 8px;
    box-shadow: var(--hotel-shadow);
}

.hotel-search--wide {
    grid-template-columns: 1.25fr 1fr 1fr 0.9fr 1fr 1fr 0.7fr 0.65fr auto;
}

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

.hotel-field label {
    color: var(--hotel-muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.hotel-input,
.hotel-select,
.hotel-textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--hotel-line);
    border-radius: 8px;
    background: #fff;
    color: var(--hotel-text);
    padding: 0.5rem 0.7rem;
    outline: none;
}

.hotel-textarea {
    min-height: 120px;
    resize: vertical;
}

.hotel-input:focus,
.hotel-select:focus,
.hotel-textarea:focus {
    border-color: var(--hotel-accent);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.hotel-section {
    padding: 28px 0;
}

.hotel-section--nested {
    padding: 18px 0 0;
}

.hotel-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.hotel-section__head p {
    margin: 0.35rem 0 0;
    color: var(--hotel-muted);
}

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

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

.hotel-card {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border: 1px solid var(--hotel-line);
    border-radius: 8px;
    background: var(--hotel-panel);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.hotel-card__media {
    aspect-ratio: 3 / 2;
    background: #e2e8f0;
    overflow: hidden;
}

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

.hotel-card__body {
    min-width: 0;
    display: grid;
    gap: 6px;
    padding: 14px;
}

.hotel-card__body strong {
    font-size: 1.02rem;
    line-height: 1.5;
}

.hotel-card__meta,
.hotel-card__location {
    color: var(--hotel-muted);
    font-size: 0.9rem;
}

.hotel-card__price {
    color: var(--hotel-accent-dark);
    font-weight: 900;
}

.hotel-panel {
    border: 1px solid var(--hotel-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.hotel-panel--spaced {
    margin-top: 18px;
}

.hotel-panel__body {
    padding: 18px;
}

.hotel-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hotel-form-grid--compact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 12px;
}

.hotel-form-grid--single {
    grid-template-columns: 1fr;
    margin-bottom: 12px;
}

.hotel-form-grid .hotel-field--wide {
    grid-column: 1 / -1;
}

.hotel-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
}

.hotel-detail__media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--hotel-line);
    background: #e2e8f0;
}

.hotel-detail__media--small {
    aspect-ratio: 4 / 3;
}

.hotel-detail__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hotel-meta-row,
.hotel-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.hotel-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.18rem 0.65rem;
    border: 1px solid var(--hotel-line);
    border-radius: 999px;
    background: #fff;
    color: #41536a;
    font-size: 0.88rem;
    font-weight: 700;
}

.hotel-room-list {
    display: grid;
    gap: 14px;
}

.hotel-room {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--hotel-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.hotel-room__media {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 8px;
    background: #e2e8f0;
}

.hotel-room__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hotel-room__body {
    min-width: 0;
}

.hotel-room__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.hotel-room__head p,
.hotel-room__body p {
    margin: 0.25rem 0 0;
    color: var(--hotel-muted);
}

.hotel-room__head strong {
    color: var(--hotel-accent-dark);
    white-space: nowrap;
}

.hotel-room__form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--hotel-line);
}

.hotel-table-wrap {
    overflow-x: auto;
}

.hotel-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

.hotel-table th,
.hotel-table td {
    border-bottom: 1px solid var(--hotel-line);
    padding: 10px;
    text-align: right;
    vertical-align: top;
}

.hotel-table th {
    color: var(--hotel-muted);
    font-size: 0.85rem;
}

.hotel-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 0.82rem;
    font-weight: 800;
}

.hotel-status--published,
.hotel-status--accepted,
.hotel-status--completed {
    background: #dcfce7;
    color: #166534;
}

.hotel-status--pending {
    background: #fef9c3;
    color: #854d0e;
}

.hotel-status--rejected,
.hotel-status--cancelled {
    background: #ffe4e6;
    color: var(--hotel-rose);
}

.hotel-empty {
    padding: 26px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: var(--hotel-muted);
    text-align: center;
}

.hotel-alert {
    margin: 0 0 12px;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--hotel-line);
    background: #fff;
}

.hotel-alert--error {
    border-color: #fecdd3;
    background: #fff1f2;
    color: var(--hotel-rose);
}

.hotel-alert--success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: var(--hotel-success);
}

.hotel-footer {
    margin-top: 28px;
    min-height: 84px;
    box-sizing: border-box;
    padding: 1.5rem 0 1.25rem;
    border-top: 1px solid var(--hotel-line);
    color: var(--hotel-muted);
}

.hotel-footer__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px 24px;
}

.hotel-footer__copy {
    margin: 0;
    color: var(--hotel-muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.hotel-footer__services {
    display: flex;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    padding-block: 2px;
}

.hotel-footer__services a,
.hotel-footer__lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 0 0 auto;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--hotel-line);
    border-radius: 999px;
    color: var(--hotel-muted);
    text-decoration: none;
    background: #fff;
    font: inherit;
    font-size: 0.88rem;
    cursor: pointer;
}

.hotel-footer__services a.is-current { color: var(--hotel-primary); border-color: var(--hotel-primary); background: #eff6ff; font-weight: 700; }
.hotel-footer__service-icon { width: 16px; height: 16px; flex: 0 0 auto; }

@media (max-width: 720px) {
    .hotel-footer__inner { display: flex; flex-direction: column; text-align: center; }
    .hotel-footer__services { max-width: 100%; }
}

@media (max-width: 1040px) {
    .hotel-search,
    .hotel-search--wide {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hotel-search .hotel-button,
    .hotel-search--wide .hotel-button {
        grid-column: 1 / -1;
    }

    .hotel-form-grid--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 940px) {
    .hotel-topbar__inner {
        min-height: auto;
        padding: 12px 0;
        flex-wrap: wrap;
    }

    .hotel-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
    }

    .hotel-hero__grid,
    .hotel-detail,
    .hotel-grid,
    .hotel-grid--two,
    .hotel-room {
        grid-template-columns: 1fr;
    }

    .hotel-room__media {
        max-width: 360px;
    }
}

@media (max-width: 620px) {
    .hotel-container {
        width: min(100% - 20px, 1180px);
    }

    .hotel-hero h1 {
        font-size: 1.65rem;
    }

    .hotel-search,
    .hotel-search--wide,
    .hotel-form-grid,
    .hotel-form-grid--compact {
        grid-template-columns: 1fr;
    }

    .hotel-section__head,
    .hotel-userbar,
    .hotel-room__head {
        align-items: stretch;
        flex-direction: column;
    }

    .hotel-room__head strong {
        white-space: normal;
    }

    .hotel-button {
        width: 100%;
    }
}

/* Shared travel-footer responsive contract. */
@media (max-width: 768px) {
    .hotel-footer { min-height: 0; padding: 1rem 0; }
    .hotel-footer__inner { display: flex; flex-direction: column; align-items: center; gap: .75rem; text-align: center; }
    .hotel-footer__services { width: 100%; justify-content: flex-start; }
}
