:root {
    --portal-bg: #f4f6f8;
    --portal-surface: #ffffff;
    --portal-primary: #1a4d6d;
    --portal-primary-strong: #123a55;
    --portal-header-from: var(--portal-primary);
    --portal-header-to: var(--portal-primary-strong);
    --portal-accent-soft: #eef4f9;
    --portal-text: #1c2733;
    --portal-muted: #5c6b7a;
    --portal-border: #d9dee4;
    --portal-countdown: #FF4300;
    --portal-danger: #a1263d;
    --portal-success: #1f7a3d;
    --portal-radius: 10px;
    --portal-shadow: 0 6px 18px rgba(20, 40, 60, 0.06);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body.portal-body {
    margin: 0;
    background: var(--portal-bg);
    color: var(--portal-text);
    line-height: 1.5;
}

.portal-header {
    background: linear-gradient(90deg, var(--portal-header-from), var(--portal-header-to));
    color: #fff;
}

.portal-header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.portal-brand {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: auto;
}

.portal-tabbar {
    background: var(--portal-surface);
    border-bottom: 1px solid var(--portal-border);
}

.portal-tabbar-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}

.portal-lang {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
}

.portal-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border: 1px solid #d5dde6;
    border-radius: 999px;
    background: #fff;
    color: #5c6b7a;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.portal-lang-btn.is-active {
    background: var(--portal-primary);
    border-color: var(--portal-primary);
    color: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--portal-primary) 28%, transparent);
}

.portal-richtext {
    margin: 0.75rem 0 1rem;
    line-height: 1.5;
}

.portal-richtext p:first-child { margin-top: 0; }
.portal-richtext p:last-child { margin-bottom: 0; }

.portal-policy-text {
    max-height: 6em;
    overflow: hidden;
    line-height: 1.5;
}

.portal-policy-text.is-expanded {
    max-height: none;
}

.portal-policy-text .portal-richtext {
    margin: 0;
}

.portal-policy-text .portal-richtext + .portal-richtext {
    margin-top: 0.75rem;
}

.portal-policy-toggle {
    margin: 6px 0 1rem;
}

.portal-policy-toggle[hidden] {
    display: none;
}

.portal-flag {
    width: 18px;
    height: 12px;
    max-width: 18px;
    max-height: 12px;
    flex: 0 0 auto;
    border-radius: 2px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
    display: block;
}

.portal-tabbar .portal-tab {
    display: inline-block;
    text-decoration: none;
    color: var(--portal-primary);
    background: transparent;
    padding: 12px 14px;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    font-weight: 700;
    font-size: 1rem;
}

.portal-tabbar .portal-tab.is-active,
.portal-tabbar .portal-tab:hover {
    color: var(--portal-primary-strong);
    background: transparent;
    border-bottom-color: var(--portal-primary);
}

.portal-nav {
    display: flex;
    gap: 16px;
}

.portal-nav a {
    color: #dbe6ee;
    text-decoration: none;
    font-weight: 500;
}

.portal-nav a:hover {
    color: #fff;
}

.portal-logout {
    margin: 0;
}

.portal-linkbtn {
    background: none;
    border: 0;
    color: #dbe6ee;
    font: inherit;
    cursor: pointer;
    padding: 4px 6px;
}

.portal-linkbtn:hover {
    color: #fff;
    text-decoration: underline;
}

a.portal-linkbtn {
    text-decoration: none;
}

.portal-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}

.portal-main--widget {
    max-width: 1120px;
}

.portal-widget-frame {
    display: block;
    width: 100%;
    min-height: 70vh;
    border: 0;
    background: var(--portal-surface);
}

.portal-card {
    background: var(--portal-surface);
    border-radius: var(--portal-radius);
    box-shadow: var(--portal-shadow);
    padding: 28px;
    margin-bottom: 24px;
}

.portal-card--narrow {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.portal-card h1 {
    margin-top: 0;
    font-size: 1.6rem;
}

.portal-card h2 {
    font-size: 1.15rem;
    margin-top: 24px;
}

.portal-lead {
    color: var(--portal-muted);
    margin-top: 0;
}

.portal-flashes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.portal-flash {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--portal-border);
    background: #eef4f9;
    color: var(--portal-text);
    font-size: 0.95rem;
}

.portal-flash--success {
    background: #e6f4eb;
    border-color: #b2d9c0;
    color: var(--portal-success);
}

.portal-flash--error {
    background: #fbe7ec;
    border-color: #e6b6c1;
    color: var(--portal-danger);
}

.portal-discount {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--portal-border);
}

.portal-discount h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.portal-discount__preview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.75rem 0;
    padding: 0.75rem;
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    background: #f4f7f4;
}

.portal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.portal-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 500;
}

.portal-form [hidden] {
    display: none !important;
}

.portal-form label span {
    font-size: 0.9rem;
    color: var(--portal-muted);
}

.portal-form input,
.portal-form select,
.portal-form textarea {
    font: inherit;
    padding: 10px 12px;
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    background: #fff;
    color: var(--portal-text);
}

.portal-form--inline {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
}

.portal-form--inline label {
    flex: 1 1 180px;
}

.portal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid var(--portal-border);
    background: #fff;
    color: var(--portal-text);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.portal-btn:hover {
    background: var(--portal-accent-soft);
}

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

.portal-btn--primary:hover {
    background: var(--portal-primary-strong);
    border-color: var(--portal-primary-strong);
}

.portal-btn--pay {
    background: #FF4300;
    border-color: #FF4300;
    color: #fff;
}

.portal-btn--pay:hover {
    background: #e03c00;
    border-color: #e03c00;
    color: #fff;
}

.portal-hint {
    margin-top: 16px;
    color: var(--portal-muted);
    font-size: 0.9rem;
}

.portal-empty {
    padding: 20px 0;
    color: var(--portal-muted);
}

.portal-booking-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.portal-booking-item {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr) auto;
    grid-template-areas:
        "thumb summary countdown"
        "thumb summary actions";
    column-gap: 16px;
    row-gap: 8px;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid var(--portal-border);
    border-radius: 10px;
    background: #fbfcfd;
}

.portal-booking-thumb {
    grid-area: thumb;
    position: relative;
    width: 148px;
    height: 92px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #d7e2ea, #eef3f7);
}

.portal-booking-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portal-booking-side {
    display: contents;
}

.portal-booking-summary {
    grid-area: summary;
}

.portal-booking-countdown {
    grid-area: countdown;
    justify-self: end;
    align-self: start;
    background: var(--portal-countdown, #FF4300);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.portal-booking-countdown--cancelled {
    background: #dc2626;
    color: #fff;
}

.portal-booking-countdown--checked-out {
    background: #1d4ed8;
    color: #fff;
}

.portal-booking-countdown--checked-in {
    background: #7dd3fc;
    color: #0c4a6e;
}

.portal-booking-summary p {
    margin: 0 0 4px 0;
}

.portal-booking-dates {
    font-weight: 600;
    font-size: 1.05rem;
}

.portal-booking-meta {
    color: var(--portal-muted);
    font-size: 0.9rem;
}

.portal-booking-actions {
    grid-area: actions;
    justify-self: end;
    align-self: end;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.portal-booking-item--group {
    border-color: #b8c9d6;
    background: #f7fafc;
}

.portal-booking-objects {
    list-style: disc;
    margin: 6px 0 8px 1.2rem;
    padding: 0;
    color: var(--portal-text);
}

.portal-booking-objects li {
    margin: 2px 0;
}

.portal-object-list {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.portal-object-block {
    margin: 1.25rem 0;
    padding: 14px;
    border: 1px solid var(--portal-border);
    border-radius: 10px;
    background: #fbfcfd;
}

.portal-object-block__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.portal-party {
    margin-top: 1rem;
}

.portal-party h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
}

.portal-party-main {
    margin: 0 0 0.35rem;
}

.portal-companion {
    margin: 0 0 0.85rem;
}

.portal-companion[hidden] {
    display: none;
}

.portal-companion-extra {
    margin-top: 0.45rem;
    padding: 0.75rem;
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    background: #fbfcfd;
}

.portal-companion-extra[hidden] {
    display: none;
}

.portal-check {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin: 0 0 0.65rem;
}

.portal-check input {
    margin-top: 0.2rem;
}

.portal-address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 0.75rem;
}

.portal-object-block h2 {
    margin: 0;
    font-size: 1.05rem;
}

.portal-energy-title,
.portal-energy-summary h3 {
    margin: 1rem 0 0.45rem;
    font-size: 1rem;
}

.portal-energy {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
}

.portal-energy th,
.portal-energy td {
    padding: 0.4rem 0.35rem;
    border-bottom: 1px solid var(--portal-border);
    text-align: left;
}

.portal-energy th:not(:first-child),
.portal-energy td:not(:first-child) {
    text-align: right;
}

.portal-energy-summary dl {
    margin: 0;
}

.portal-energy-summary div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 0.28rem 0;
}

.portal-energy-summary dt {
    margin: 0;
    color: var(--portal-muted, #5c6b76);
}

.portal-energy-summary dd {
    margin: 0;
    text-align: right;
}

.portal-object-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    flex-wrap: wrap;
}

.portal-object-item p {
    margin: 4px 0 0;
}

.portal-muted {
    color: var(--portal-muted);
    font-size: 0.9rem;
}

.portal-cost-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.portal-cost-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--portal-border);
}

.portal-cost-list__total {
    font-weight: 600;
    border-bottom: none;
    margin-top: 6px;
}

.portal-cost-list--nested {
    margin: 0 0 0.5rem;
}

.portal-cost-list--nested li {
    border-bottom: none;
    padding: 4px 0;
    color: var(--portal-muted);
    font-size: 0.92rem;
}

.portal-stay-title {
    margin: 0.85rem 0 0.15rem;
    font-size: 1.05rem;
    color: var(--portal-primary);
}

.portal-stay-subtitle {
    margin: 0 0 0.65rem;
    font-weight: 700;
}

.portal-cost-section {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--portal-border);
}

.portal-cost-section__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.portal-pay-scope {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.portal-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e3ecf3;
    color: var(--portal-primary-strong);
    font-size: 0.8rem;
    font-weight: 500;
}

.portal-badge--checked_in {
    background: #dcefe1;
    color: #1f6a37;
}

.portal-badge--cancelled {
    background: #f4d7dd;
    color: var(--portal-danger);
}

.portal-detail-grid {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 20px;
    margin: 12px 0 20px;
}

.portal-detail-grid dt {
    color: var(--portal-muted);
    font-weight: 500;
}

.portal-detail-grid dd {
    margin: 0;
}

.portal-list {
    padding-left: 20px;
    margin: 8px 0 20px;
}

.portal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.portal-back {
    color: var(--portal-primary);
    text-decoration: none;
    font-size: 0.95rem;
}

.portal-back:hover {
    text-decoration: underline;
}

.portal-footer {
    text-align: center;
    color: var(--portal-muted);
    font-size: 0.85rem;
    padding: 16px 20px 32px;
}

.portal-dl {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: 0.35rem 0.75rem;
    margin: 0.75rem 0 1rem;
}
.portal-dl dt { color: var(--portal-muted); }
.portal-dl dd { margin: 0; }
.portal-dl code { word-break: break-all; }
.portal-logo {
    display: block;
    max-height: 3rem;
    max-width: 10rem;
    object-fit: contain;
    margin-bottom: 0.75rem;
}
.portal-results {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    border: 1px solid var(--portal-border);
    border-radius: 8px;
}
.portal-results a, .portal-results button {
    display: block;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 0;
    border-bottom: 1px solid var(--portal-border);
    padding: 0.55rem 0.75rem;
    color: inherit;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
}
.portal-results li:last-child a, .portal-results li:last-child button { border-bottom: 0; }
.portal-results a:hover, .portal-results button:hover { background: #f4f7fb; }

.portal-offer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--portal-border);
}
.portal-offer:last-child { border-bottom: 0; }
.portal-offer h2 { margin: 0 0 4px; font-size: 1.05rem; }

.portal-main:has(.portal-booking) {
    max-width: 1100px;
}

.portal-booking {
    margin-bottom: 32px;
}

.portal-booking__title {
    margin: 0 0 18px;
    font-size: 1.75rem;
    line-height: 1.25;
    color: var(--portal-primary);
    font-weight: 700;
}

.portal-booking-layout {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.portal-booking-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 12px;
}

.portal-summary-card,
.portal-check-card,
.portal-panel {
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    box-shadow: var(--portal-shadow);
    overflow: hidden;
}

.portal-summary-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #d7e2ea, #eef3f7);
}

.portal-summary-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portal-summary-card__media--empty {
    min-height: 140px;
}

.portal-summary-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--portal-countdown, #FF4300);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}

.portal-summary-card__badge--cancelled {
    background: #dc2626;
}

.portal-summary-card__badge--checked-out {
    background: #1d4ed8;
}

.portal-summary-card__badge--checked-in {
    background: #7dd3fc;
    color: #0c4a6e;
}

.portal-summary-card__body {
    padding: 14px 16px 16px;
}

.portal-summary-card__object {
    margin: 0 0 12px;
    font-weight: 600;
}

.portal-summary-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.portal-summary-dates > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.portal-summary-dates__label {
    font-size: 0.8rem;
    color: var(--portal-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.portal-summary-dates strong {
    font-size: 0.98rem;
}

.portal-summary-meta {
    margin: 0 0 4px;
    color: var(--portal-muted);
    font-size: 0.9rem;
}

.portal-summary-total {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--portal-border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: baseline;
    justify-content: space-between;
}

.portal-summary-link {
    color: var(--portal-primary);
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 600;
}

.portal-summary-link:hover {
    text-decoration: underline;
}

.portal-check-card {
    padding: 14px 16px 8px;
}

.portal-check-card h2 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.portal-check-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.portal-check-list li {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--portal-border);
}

.portal-check-list li:first-child {
    border-top: 0;
}

.portal-check-list__icon,
.portal-panel-row__icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--portal-accent-soft);
    color: var(--portal-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.portal-check-list li > span:not(.portal-check-list__icon) {
    flex: 1;
    min-width: 0;
    color: inherit;
}

.portal-btn--small {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 6px 12px;
    font-size: 0.85rem;
}

.portal-check-list strong,
.portal-panel-row strong {
    display: block;
    color: var(--portal-text);
}

.portal-check-list span,
.portal-panel-row span:not(.portal-panel-row__icon) {
    display: block;
    color: var(--portal-muted);
    font-size: 0.92rem;
}

.portal-booking-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.portal-panel {
    padding: 16px 18px 18px;
}

.portal-panel h2 {
    margin: 0 0 12px;
    font-size: 1.15rem;
}

.portal-panel-sub {
    margin: 12px 0 8px;
    font-size: 1rem;
}

.portal-panel-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-top: 1px solid var(--portal-border);
}

.portal-panel-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.portal-panel-row p {
    margin: 4px 0 0;
}

.portal-read-more {
    display: inline-flex;
    margin-top: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--portal-btn, var(--portal-primary));
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.portal-read-more:hover {
    color: var(--portal-primary-strong);
}

.portal-modal {
    display: none;
    flex-direction: column;
    width: min(36rem, calc(100vw - 2rem));
    max-height: min(80vh, 40rem);
    padding: 0;
    border: 0;
    border-radius: 12px;
    color: var(--portal-text);
    background: var(--portal-surface);
    box-shadow: 0 18px 48px rgba(16, 32, 48, 0.28);
    overflow: hidden;
}

.portal-modal[open] {
    display: flex;
}

.portal-modal--sheet {
    width: min(40rem, calc(100vw - 1.5rem));
}

.portal-modal--sheet .portal-form {
    display: grid;
    gap: 10px;
}

@media (max-width: 640px) {
    .portal-modal--sheet {
        width: calc(100vw - 1rem);
        max-height: calc(100vh - 1rem);
    }
}

.portal-modal::backdrop {
    background: rgba(16, 28, 40, 0.55);
}

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

.portal-modal__head h3 {
    margin: 0;
    font-size: 1.15rem;
}

.portal-modal__close {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: var(--portal-accent-soft);
    color: var(--portal-text);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.portal-modal__photo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 0 12px;
    border-radius: 8px;
    background: #eef3f7;
}

.portal-modal__body {
    margin: 0;
    padding: 12px 16px 18px;
    line-height: 1.55;
    overflow: auto;
    min-height: 0;
}

.portal-modal__text {
    white-space: pre-wrap;
}

.portal-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.portal-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--portal-border);
    background: #eef3f7;
}

.portal-timeline {
    margin: 8px 0 4px;
}

.portal-timeline__scale {
    position: relative;
    margin: 0 46px;
    padding-top: 34px;
}

.portal-timeline__today {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    background: #e85d04;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3;
    border-radius: 6px;
    padding: 2px 7px;
    white-space: nowrap;
    z-index: 3;
}

.portal-timeline__today::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    height: 16px;
    border-left: 1px dashed #e85d04;
}

.portal-timeline__track {
    display: flex;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: #e6e8ee;
}

.portal-timeline__seg {
    flex: 1 1 0%;
}

.portal-timeline__seg.is-free {
    background: #2e9b4f;
}

.portal-timeline__seg.is-low {
    background: #d4a017;
}

.portal-timeline__seg.is-mid {
    background: #e8870a;
}

.portal-timeline__seg.is-high {
    background: #e05a2b;
}

.portal-timeline__seg.is-full,
.portal-timeline__seg.is-fee {
    background: #e23b2f;
}

.portal-timeline__marks {
    position: relative;
    height: 0;
}

.portal-timeline__mark {
    position: absolute;
    top: -14px;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    border-radius: 50%;
    display: block;
    background: #fff;
    border: 3px solid #c5ced6;
    box-sizing: border-box;
    z-index: 2;
}

.portal-timeline__mark.is-free { border-color: #2e9b4f; }
.portal-timeline__mark.is-low { border-color: #d4a017; }
.portal-timeline__mark.is-mid { border-color: #e8870a; }
.portal-timeline__mark.is-high { border-color: #e05a2b; }
.portal-timeline__mark.is-full { border-color: #e23b2f; }

.portal-timeline__dates {
    position: relative;
    height: 2.7rem;
    margin-top: 16px;
}

.portal-timeline__datepoint {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    white-space: nowrap;
    text-align: center;
}

.portal-timeline__caption {
    display: block;
    min-height: 1.15em;
    font-size: 0.78rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.portal-timeline__date {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    color: #111;
    line-height: 1.25;
}

.portal-timeline__labels {
    display: flex;
    margin-top: 8px;
}

.portal-timeline__label {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.25;
    color: #667;
}

.portal-timeline__label.is-free { color: #1d7a3a; }
.portal-timeline__label.is-low { color: #8a6a00; }
.portal-timeline__label.is-mid { color: #b86a08; }
.portal-timeline__label.is-high { color: #c2410c; }
.portal-timeline__label.is-full { color: #c62828; }

.portal-cancel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
}

.portal-cancel-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 16rem;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.portal-cancel-link:hover {
    border-color: var(--portal-primary);
}

.portal-cancel-link__icon {
    flex: 0 0 auto;
    color: #1aa6b8;
}

.portal-cancel-link strong {
    display: block;
    color: var(--portal-text);
}

.portal-cancel-link__chevron {
    margin-left: auto;
    color: #1aa6b8;
    font-size: 1.4rem;
    line-height: 1;
}

.portal-agree {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 14px;
}

.portal-agree input {
    margin-top: 4px;
}

.portal-agree span {
    display: block;
    color: var(--portal-text);
}

.portal-booking .portal-object-block {
    margin-top: 12px;
    background: #fbfcfd;
}

.portal-booking .portal-actions {
    margin-top: 12px;
}

@media (max-width: 900px) {
    .portal-booking-layout {
        grid-template-columns: 1fr;
    }
    .portal-booking-aside {
        position: static;
    }
}

@media (max-width: 640px) {
    .portal-detail-grid {
        grid-template-columns: 1fr;
    }
    .portal-detail-grid dt {
        margin-top: 6px;
    }
    .portal-booking-item {
        grid-template-columns: 112px minmax(0, 1fr);
        grid-template-areas:
            "thumb countdown"
            "summary summary"
            "actions actions";
        align-items: start;
    }
    .portal-booking-thumb {
        width: 112px;
        height: 76px;
    }
    .portal-booking-actions {
        justify-self: stretch;
        justify-content: flex-end;
    }
    .portal-summary-dates,
    .portal-gallery {
        grid-template-columns: 1fr;
    }
    .portal-booking__title {
        font-size: 1.4rem;
    }
}
