/* BAJ public accommodation pages: brand, breadcrumbs, destinations and the property page.
   Loads after booking-search.css and reuses its tokens. */

.skip-link {
    position: absolute;
    top: 8px;
    left: -9999px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: 8px;
    background: #111111;
    color: #ffffff;
    font-weight: 700;
}

.skip-link:focus {
    left: 16px;
}

.guest-brand {
    font: 800 20px 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -.3px;
}

.brand-mark {
    width: auto;
    min-width: 46px;
    height: 36px;
    padding: 0 8px;
    border-radius: 8px;
    background: #111111;
    font: 800 14px 'Plus Jakarta Sans', sans-serif;
    letter-spacing: .5px;
}

.brand-name small {
    margin-left: 4px;
    color: var(--muted);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumbs li + li::before {
    content: '/';
    margin-right: 6px;
    color: #b0b0b0;
}

.breadcrumbs a {
    color: var(--ink);
    text-underline-offset: 3px;
}

/* Static listings and destinations use the full width until live results bring the filters in. */
.results-layout:has(> .results-filters[hidden]) {
    grid-template-columns: minmax(0, 1fr);
}

a.hotel-photo {
    display: block;
    color: inherit;
    text-decoration: none;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.booking-page {
    flex: 1 0 auto;
}

.search-panel {
    grid-template-columns: minmax(210px, 1.2fr) minmax(145px, .8fr) minmax(145px, .8fr) minmax(270px, 1.3fr) 190px;
}

.search-button {
    white-space: nowrap;
}

.hotel-title-row h2 a {
    color: inherit;
    text-decoration: none;
}

.hotel-title-row h2 a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

a.view-rooms-button {
    text-decoration: none;
}

.property-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    text-underline-offset: 3px;
}

.room-options .property-link {
    grid-column: 1 / -1;
}

.destinations h2 {
    margin: 8px 0 14px;
    font: 800 22px 'Plus Jakarta Sans', sans-serif;
}

.destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.destination-card {
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    transition: border-color .15s ease;
}

.destination-card:hover,
.destination-card:focus-visible {
    border-color: #111111;
}

.destination-card strong {
    font-size: 18px;
}

.destination-card span {
    color: var(--muted);
    font-size: 14px;
}

/* Rate cards: the button that opens checkout */
.offer-button {
    background: #111111;
    color: #ffffff;
}

.offer-button:hover {
    background: #333333;
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.site-footer-inner {
    width: min(100%, 1510px);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 24px;
    margin: 0 auto;
    padding: 22px 32px;
    color: var(--muted);
    font-size: 14px;
}

.site-footer a {
    color: var(--ink);
}

@media (max-width: 1200px) {
    .search-panel {
        grid-template-columns: minmax(170px, 1.1fr) minmax(135px, .8fr) minmax(135px, .8fr) minmax(230px, 1.3fr) 180px;
    }
}

/* Legal pages */
.legal {
    max-width: 760px;
    margin: 8px auto 0;
    color: #222222;
    font-size: 16px;
    line-height: 1.7;
}

.legal-header h1 {
    margin: 6px 0 4px;
    font: 800 34px/1.15 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -.6px;
}

.legal-updated {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 14px;
}

.legal-draft {
    margin: 0 0 24px;
    padding: 14px 16px;
    border: 1px solid #111111;
    border-left-width: 4px;
    border-radius: 8px;
    background: #ffffff;
    font-size: 15px;
}

.legal section {
    padding: 4px 0 8px;
}

.legal h2 {
    margin: 20px 0 8px;
    font: 800 20px 'Plus Jakarta Sans', sans-serif;
}

.legal h3 {
    margin: 14px 0 4px;
    font-size: 16px;
}

.legal p,
.legal ul {
    margin: 0 0 12px;
}

.legal ul {
    padding-left: 22px;
}

.legal li + li {
    margin-top: 6px;
}

.legal a,
.checkout-legal a {
    color: var(--ink);
    text-underline-offset: 3px;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 15px;
    font-weight: 600;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.checkout-legal {
    grid-column: 1 / -1;
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 1000px) {
    .search-panel {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .search-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brand-name small {
        display: none;
    }

    .site-footer-inner {
        flex-direction: column;
        padding: 18px 16px;
    }

    .legal-header h1 {
        font-size: 28px;
    }
}

/* Customer account: sign in, my bookings, my details */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.guest-nav-actions .nav-link[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

.account-card {
    max-width: 520px;
    margin: 32px auto 48px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.account-card h1,
.account-header h1 {
    margin: 6px 0 10px;
    font: 800 30px/1.2 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -.5px;
    overflow-wrap: anywhere;
}

.account-card p,
.account-section > p {
    margin: 0 0 14px;
    color: #333333;
    font-size: 16px;
    line-height: 1.6;
}

.account-page .account-hint,
.account-card .account-hint {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.account-hint a,
.account-note a {
    color: var(--ink);
    font-weight: 700;
    text-underline-offset: 3px;
}

.account-card .account-note {
    margin: 16px 0 0;
    padding: 12px 14px;
    border: 1px dashed #111111;
    border-radius: 8px;
    font-size: 14px;
}

.account-form {
    display: grid;
    gap: 6px;
    margin-top: 18px;
}

.account-form label {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 700;
}

.account-form label small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

.account-form input:not([type="hidden"]) {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #8a8a8a;
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    font-size: 16px;
}

.account-form input[readonly] {
    border-color: var(--line-strong);
    background: #f3f3f3;
    color: var(--muted);
}

.account-form input[aria-invalid="true"] {
    border: 2px solid #111111;
}

.account-form input:focus-visible,
.account-button:focus-visible,
.account-tabs a:focus-visible,
.account-tabs button:focus-visible,
.account-hint a:focus-visible {
    outline: 2px solid #111111;
    outline-offset: 2px;
}

.account-form .account-error {
    margin: 2px 0 0;
    color: #111111;
    font-size: 14px;
    font-weight: 700;
}

.account-form .account-error::before {
    content: '! ';
}

.account-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 14px;
    padding: 0 20px;
    border: 1px solid #111111;
    border-radius: 10px;
    background: #111111;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.account-button:hover {
    background: var(--brand-hover);
}

.account-button-quiet {
    background: var(--surface);
    color: var(--ink);
}

.account-button-quiet:hover {
    background: #f1f1f1;
}

.account-page {
    max-width: 960px;
    margin: 12px auto 40px;
}

.account-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line-strong);
}

.account-header p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.account-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.account-tabs form {
    margin: 0;
}

.account-tabs a,
.account-tabs button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.account-tabs a[aria-current="page"] {
    border-color: #111111;
    background: #111111;
    color: #ffffff;
}

.account-status {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-left: 4px solid #111111;
    background: #f1f1f1;
    font-size: 15px;
    font-weight: 600;
}

.account-section {
    margin-top: 28px;
}

.account-section h2 {
    margin: 0 0 12px;
    font: 800 20px/1.3 'Plus Jakarta Sans', sans-serif;
}

.account-details {
    max-width: 520px;
}

.account-section + .account-section {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.account-section .account-status {
    margin: 0 0 4px;
}

.account-list {
    margin: 0 0 6px;
    padding-left: 20px;
    color: #333333;
    font-size: 15px;
    line-height: 1.6;
}

.account-list li + li {
    margin-top: 4px;
}

.account-form .account-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
}

.account-form .account-check input[type="checkbox"] {
    width: 22px;
    height: 22px;
    flex: none;
    margin: 0;
    padding: 0;
    accent-color: #111111;
}

.site-status {
    margin: 0 0 16px;
}

.account-empty {
    padding: 24px;
    border: 1px dashed var(--line-strong);
    border-radius: 14px;
    background: var(--surface);
}

.account-empty p {
    margin: 0;
    color: #333333;
}

.stay-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, auto);
    gap: 16px 24px;
    margin-bottom: 12px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.stay-card h3 {
    margin: 8px 0 2px;
    font: 800 19px/1.3 'Plus Jakarta Sans', sans-serif;
}

.stay-card p {
    margin: 0 0 4px;
    color: #333333;
    font-size: 15px;
    line-height: 1.5;
}

.stay-card .stay-place {
    color: var(--muted);
    font-size: 14px;
}

.stay-card .stay-dates {
    margin-top: 8px;
    color: var(--ink);
    font-weight: 700;
}

.stay-status {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid #111111;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.stay-status-strong {
    background: #111111;
    color: #ffffff;
}

.stay-status-muted {
    border-color: var(--line-strong);
    background: #f1f1f1;
    color: #333333;
}

.stay-card-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    text-align: right;
}

.stay-card-side strong {
    font: 800 19px 'Plus Jakarta Sans', sans-serif;
}

.stay-card-side span {
    color: var(--muted);
    font-size: 14px;
}

.stay-card-side .account-button {
    min-height: 42px;
    margin-top: 10px;
}

.checkout-account-note {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.checkout-account-note a {
    color: var(--ink);
    font-weight: 700;
    text-underline-offset: 3px;
}

@media (max-width: 640px) {
    .account-card {
        margin: 12px auto 28px;
        padding: 22px 18px;
    }

    .account-card h1,
    .account-header h1 {
        font-size: 25px;
    }

    .stay-card {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .stay-card-side {
        align-items: flex-start;
        text-align: left;
    }

    .stay-card-side .account-button,
    .account-form .account-button {
        width: 100%;
    }
}

.checkout-form .checkout-account-note {
    grid-column: 1 / -1;
}

/* The account link is a third item in the header, so keep each link on one line on small phones. */
.guest-nav-actions a {
    white-space: nowrap;
}

@media (max-width: 420px) {
    .guest-nav .brand-name {
        display: none;
    }

    .guest-nav .partner-link {
        padding: 8px 10px;
    }
}

/* Search results: sort order, "show more" and the pages of a city listing */
.results-sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5c5c5c;
    font-size: 13px;
    white-space: nowrap;
}

.results-sort select {
    min-height: 37px;
    padding: 0 10px 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #ffffff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}

.results-sort select:focus-visible,
.results-more-button:focus-visible,
.results-pager a:focus-visible,
.photo-all:focus-visible,
.help-topics a:focus-visible {
    outline: 2px solid #111111;
    outline-offset: 2px;
}

.results-more {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 10px 0 4px;
}

.results-more p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.results-more-button {
    min-height: 46px;
    padding: 0 26px;
    border: 1px solid #111111;
    border-radius: 999px;
    background: #ffffff;
    color: #111111;
    font-size: 15px;
    font-weight: 700;
}

.results-more-button:hover {
    background: #111111;
    color: #ffffff;
}

.results-pager {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 8px 4px;
    font-size: 15px;
}

.results-pager a {
    color: var(--ink);
    font-weight: 700;
    text-underline-offset: 3px;
}

.results-pager a[rel="next"] {
    justify-self: end;
}

.results-pager span {
    color: var(--muted);
}

/* Property page: photos open in a full-screen viewer */
.photo-open {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}

/* A white ring with a black edge shows on any photo. */
.photo-open:focus-visible {
    outline: none;
}

.photo-open:focus-visible::after {
    content: '';
    position: absolute;
    inset: 5px;
    border: 3px solid #ffffff;
    border-radius: 6px;
    outline: 2px solid #111111;
    pointer-events: none;
}

.photo-all {
    position: absolute;
    right: 14px;
    bottom: 14px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid #111111;
    border-radius: 999px;
    background: #ffffff;
    color: #111111;
    font-size: 14px;
    font-weight: 700;
}

.photo-all:hover {
    background: #111111;
    color: #ffffff;
}

.photo-count {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

html.photo-viewer-open {
    overflow: hidden;
}

.photo-viewer {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #0d0d0d;
    color: #ffffff;
}

.photo-viewer[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.photo-viewer::backdrop {
    background: #0d0d0d;
}

.photo-viewer-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    border-bottom: 1px solid #333333;
}

.photo-viewer-bar h2 {
    min-width: 0;
    flex: 1;
    margin: 0;
    overflow: hidden;
    font: 700 17px 'Plus Jakarta Sans', sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photo-viewer-count {
    color: #d0d0d0;
    font-size: 15px;
    white-space: nowrap;
}

.photo-viewer-close {
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid #ffffff;
    border-radius: 999px;
    background: #ffffff;
    color: #111111;
    font-size: 14px;
    font-weight: 700;
}

.photo-viewer-stage {
    min-height: 0;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    align-items: center;
    justify-items: center;
    padding: 16px 12px;
}

.photo-viewer-stage figure {
    grid-column: 2;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    justify-items: center;
    gap: 10px;
    margin: 0;
}

.photo-viewer-stage img {
    max-width: 100%;
    max-height: 100%;
    min-height: 0;
    align-self: center;
    object-fit: contain;
}

.photo-viewer-stage figcaption {
    max-width: 720px;
    color: #e6e6e6;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}

.photo-viewer-step {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    padding: 0 0 4px;
    border: 1px solid #ffffff;
    border-radius: 50%;
    background: rgba(13, 13, 13, .7);
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
}

.photo-viewer-step:hover {
    background: #ffffff;
    color: #111111;
}

.photo-viewer-step[data-photo-step="-1"] {
    grid-column: 1;
    grid-row: 1;
}

.photo-viewer-step[data-photo-step="1"] {
    grid-column: 3;
    grid-row: 1;
}

.photo-viewer-close:focus-visible,
.photo-viewer-step:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

/* Help page */
.help-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.help-topics a {
    padding: 8px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.help-topics a:hover {
    border-color: #111111;
}

.help section {
    scroll-margin-top: 16px;
}

.help h2 {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 24px;
}

.help h3 {
    margin: 22px 0 6px;
    font-size: 17px;
}

@media (max-width: 760px) {
    .results-sort {
        flex: 1 1 100%;
        justify-content: space-between;
    }

    .results-sort select {
        flex: 1;
        max-width: 260px;
    }

    .photo-viewer-bar {
        padding: 10px 14px;
    }

    /* The photo takes the full width and the arrows sit on top of it. */
    .photo-viewer-stage {
        position: relative;
        grid-template-columns: minmax(0, 1fr);
        padding: 10px 0;
    }

    .photo-viewer-stage figure {
        grid-column: 1;
    }

    .photo-viewer-stage figcaption {
        padding: 0 14px;
    }

    .photo-viewer-step {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .photo-viewer-step[data-photo-step="-1"] {
        left: 10px;
    }

    .photo-viewer-step[data-photo-step="1"] {
        right: 10px;
    }
}

/* Search results: guest rating */
.hotel-rating {
    display: inline-block;
    margin: 0;
    color: var(--ink);
    font-size: 14px;
    text-underline-offset: 3px;
}

/* Search results: the map, opened on request */
.map-toggle,
.map-popup-button {
    min-height: 37px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #ffffff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.map-toggle:hover,
.map-toggle[aria-expanded="true"],
.map-popup-button:hover {
    border-color: #111111;
    background: #111111;
    color: #ffffff;
}

.map-toggle:focus-visible,
.map-popup-button:focus-visible,
.map-price:focus-visible {
    outline: 2px solid #111111;
    outline-offset: 2px;
}

.results-map {
    margin-bottom: 12px;
}

.results-map-canvas {
    height: 440px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #f4f4f4;
    /* Keeps the map's own layers under the page header and dialogs. */
    isolation: isolate;
}

.results-map-canvas.leaflet-container {
    font: inherit;
}

.results-map-canvas.leaflet-container a {
    color: #111111;
}

.results-map-canvas .leaflet-tile-pane {
    filter: grayscale(1);
}

.results-map-note {
    margin: 8px 2px 0;
    color: var(--muted);
    font-size: 13px;
}

/* The price label is the marker: it sits centred just above the property's position. */
.map-price {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
}

.map-price span {
    display: block;
    padding: 5px 10px;
    border: 1px solid #111111;
    border-radius: 999px;
    background: #ffffff;
    color: #111111;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
    transform: translate(-50%, -100%);
}

/* Google Maps already sets its marker's bottom centre on the position. */
.map-price-google span {
    transform: none;
}

.map-price:hover span,
.map-price:focus span {
    background: #111111;
    color: #ffffff;
}

.map-popup {
    display: grid;
    gap: 5px;
    color: #5c5c5c;
    font-size: 13px;
}

.map-popup-name,
.map-popup-name a {
    color: #111111;
    font-size: 15px;
}

.map-popup-button {
    min-height: 34px;
    margin-top: 5px;
    justify-self: start;
}

@media (max-width: 760px) {
    .results-map-canvas {
        height: 340px;
    }
}

.results-map-canvas .leaflet-control-attribution {
    font-size: 11px;
}

/* Browser notifications switch on My details. */
.push-control {
    display: grid;
    justify-items: start;
    gap: 8px;
    margin-top: 12px;
}

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

/* A phone number in one box: the country code (its list names each country), a divider, then the number. */
.account-form .phone-input {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #8a8a8a;
    border-radius: 10px;
    background: var(--surface);
}

.account-form .phone-input:focus-within {
    outline: 2px solid #111111;
    outline-offset: 2px;
}

.account-form .phone-code {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px 0 14px;
    border-right: 1px solid #c7c7c7;
    color: var(--ink);
    font-weight: 700;
}

.account-form .phone-code::after {
    content: '';
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #737373;
}

.account-form .phone-code select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.account-form .phone-input input {
    flex: 1 1 auto;
    min-width: 0;
    height: 46px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    outline: none;
}

.account-form .phone-input:has(input[aria-invalid="true"]) {
    border: 2px solid #111111;
}

/* The same property on Booking.com or Agoda (affiliate links) */
.other-sites {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.other-sites[hidden],
.other-site-link[hidden] {
    display: none;
}

.other-sites-note {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

.other-sites-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.other-site-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    border: 1px solid var(--ink);
    border-radius: 9px;
    background: var(--surface);
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.other-site-link:hover {
    background: var(--sage);
}

.other-site-link:focus-visible {
    outline: 3px solid rgba(91, 91, 91, .35);
    outline-offset: 2px;
}

@media (max-width: 560px) {
    .other-site-link {
        width: 100%;
        justify-content: center;
    }
}

/* Search results: stays to book on Booking.com or Agoda */
.other-site-results {
    margin-top: 24px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.other-site-results[hidden] {
    display: none;
}

.other-site-results h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.other-site-list {
    display: grid;
    gap: 12px;
}

.other-site-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.other-site-photo {
    height: 90px;
    overflow: hidden;
    border-radius: 9px;
    background: var(--sage);
}

.other-site-photo img,
.other-site-photo .hotel-photo-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.other-site-details h3 {
    margin: 0 0 4px;
    font-size: 17px;
}

.other-site-details h3 a {
    color: var(--ink);
}

.other-site-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

@media (max-width: 560px) {
    .other-site-card {
        grid-template-columns: 1fr;
    }

    .other-site-photo {
        height: 150px;
    }
}
