@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(--bb-line); border-radius:10px; background:var(--bb-panel); color:var(--bb-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(--bb-panel); border:1px solid var(--bb-line); border-radius:10px; box-shadow:var(--bb-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(--bb-accent-dark); }

* {
    box-sizing: border-box;
}

:root {
    --bb-font-family: "Vazirmatn", "Segoe UI", "Tahoma", "Arial", -apple-system, BlinkMacSystemFont, sans-serif;
    --bb-bg: #f6f8fb;
    --bb-panel: #ffffff;
    --bb-text: #102033;
    --bb-muted: #64748b;
    --bb-line: #dbe3ee;
    --bb-accent: #0f766e;
    --bb-accent-dark: #115e59;
    --bb-blue: #2563eb;
    --bb-rose: #be123c;
    --bb-success: #15803d;
    --bb-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(--bb-bg);
    color: var(--bb-text);
    font-family: var(--bb-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;
}

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

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

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

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

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

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

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

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

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

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

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

.bb-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;
}

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

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

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

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

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

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

.bb-hero {
    padding: 34px 0 26px;
    background: #eef7f6;
    border-bottom: 1px solid var(--bb-line);
}

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

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

.bb-hero h1 {
    max-width: 720px;
    font-size: 2.2rem;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.bb-panel__body {
    padding: 18px;
}

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

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

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

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

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

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

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

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

.bb-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

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

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

.bb-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;
}

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

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

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

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

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

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

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

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

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

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

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

.bb-footer__services a,
.bb-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(--bb-line);
    border-radius: 999px;
    color: var(--bb-muted);
    text-decoration: none;
    background: #fff;
    font: inherit;
    font-size: 0.88rem;
    cursor: pointer;
}

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

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

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

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

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

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

    .bb-search .bb-button {
        grid-column: 1 / -1;
    }
}

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

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

    .bb-search,
    .bb-form-grid {
        grid-template-columns: 1fr;
    }

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

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

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