.hc_single_property {
    padding-top: var(--hc_space_4);
    padding-bottom: var(--hc_space_6);
}

body:has(.hc_single_bar) {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom));
    scroll-padding-bottom: 5rem;
}

.hc_single_layout {
    display: grid;
    grid-template-columns: minmax(0, 2.06fr) minmax(0, 1fr);
    gap: var(--hc_space_4);
}

.hc_single_sticky {
    position: sticky;
    top: min(calc(var(--hc_header_scroll_offset, 90px) + var(--hc_space_3)), calc(100vh - var(--hc_single_sticky_height, 0px) - var(--hc_space_3)));
}

.hc_single_panel {
    padding: 24px 20px;
    border: 1px solid var(--hc_border_soft);
    border-radius: var(--hc_radius);
    background: var(--hc_white);
}

.hc_single_stage {
    --hc_single_gallery_inset: 12px;
    position: relative;
    aspect-ratio: 1.37;
    border-radius: var(--hc_radius);
    background: var(--hc_divider);
}

.hc_single_expand {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: var(--hc_radius);
    cursor: zoom-in;
}

.hc_single_outgoing { position: absolute; inset: 0; }
.hc_single_expand[hidden], .hc_single_tour[hidden] { display: none; }
.hc_single_tour { height: 100%; overflow: hidden; border-radius: var(--hc_radius); background: var(--hc_divider); }
.hc_single_tour iframe { display: block; width: 100%; height: 100%; border: 0; }

.hc_single_stage img, .hc_single_thumbs img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: var(--hc_radius);
    object-fit: cover;
}

.hc_single_badge {
    --hc_photo_badge_inset: var(--hc_single_gallery_inset);
    pointer-events: none;
}

.hc_single_arrow {
    position: absolute;
    top: 50%;
    translate: 0 -50%;
}

.hc_single_prev { inset-inline-start: var(--hc_single_gallery_inset); }
.hc_single_next { inset-inline-end: var(--hc_single_gallery_inset); }

.hc_single_thumb_row {
    --hc_thumb_gap: var(--hc_space_3);
    --hc_thumb_width: calc((100% - 4 * var(--hc_thumb_gap)) / 5);
    position: relative;
    margin-top: var(--hc_space_2);
}

.hc_single_thumb_arrow {
    position: absolute;
    z-index: 1;
    inset-block: 0;
    inline-size: 35px;
    block-size: auto;
}

.hc_single_thumb_arrow:first-child { left: 0; }
.hc_single_thumb_arrow:last-child { right: 0; }
.hc_single_thumb_arrow:disabled { opacity: 1; }
.hc_single_thumb_arrow:disabled svg { opacity: .55; }

.hc_single_thumbs {
    position: relative;
    display: flex;
    gap: var(--hc_thumb_gap);
    margin: 0;
    padding: 0;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

.hc_single_thumbs li { flex: 0 0 var(--hc_thumb_width); scroll-snap-align: start; }
.hc_single_thumbs a { display: block; aspect-ratio: 130 / 85; border-radius: var(--hc_radius); }
.hc_single_thumbs a:focus-visible { outline-offset: -3px; }
.hc_single_thumbs .hc_single_tour_thumb { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--hc_surface); color: var(--hc_ink); }
.hc_single_thumbs .hc_single_tour_thumb img { position: absolute; inset: 0; filter: blur(2px); opacity: .25; }
.hc_single_tour_thumb svg { position: relative; width: 44px; height: 44px; transition: scale .3s; }
.hc_single_tour_thumb:hover svg { scale: 1.15; }
.hc_single_video_thumb svg { width: 32px; height: 32px; }
.hc_single_thumbs [aria-current="true"]:not(:focus-visible) { outline: 2px solid var(--hc_accent); outline-offset: -2px; }

.hc_single_title_row {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: var(--hc_space_2);
}

.hc_single_title_row h1 { margin: 0; font-size: var(--hc_h3); overflow-wrap: anywhere; }
.hc_single_title_row .hc_single_utilities { padding-top: 2px; }
.hc_single_area { margin: 2px 0 0; color: var(--hc_text_soft); font-size: var(--hc_small_size); line-height: 1.5; }
.hc_single_price { margin: var(--hc_space_3) 0 0; color: var(--hc_heading_color); font-size: 32px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.hc_single_currency { color: var(--hc_heading_accent); font-size: 26px; }
.hc_single_price small { color: var(--hc_text_soft); font-size: 26px; font-weight: 500; }

.hc_single_utilities { display: flex; flex: none; gap: var(--hc_action_icon_gap); margin-inline-start: auto; }
.hc_single_share { display: flex; }
.hc_single_save, .hc_single_share_toggle {
    min-width: 22px;
    min-height: 22px;
    padding: 0;
    color: var(--hc_ink);
    transition: color .22s ease;
}

.hc_single_utilities :is(.hc_single_save, .hc_single_share_toggle):is(:hover, :focus-visible, [aria-pressed="true"], [aria-expanded="true"]) {
    color: var(--hc_accent);
}
.hc_single_save[aria-pressed="true"] .hc_icon_heart { fill: currentColor; }

.hc_single_share_panel {
    position: absolute;
    z-index: 2;
    inset: calc(100% + var(--hc_space_1)) 0 auto auto;
    width: max-content;
    max-width: 100%;
    padding: var(--hc_space_2) 12px;
    border: 1px solid var(--hc_border_soft);
    border-radius: var(--hc_radius);
    background: var(--hc_white);
    box-shadow: 0 4px 28px rgb(0 0 0 / .12);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s;
}

.hc_single_share_toggle[aria-expanded="true"] + .hc_single_share_panel {
    opacity: 1;
    visibility: visible;
}

.hc_single_share_title { margin-bottom: var(--hc_space_1); color: var(--hc_heading_color); font-weight: 500; }
.hc_single_share_options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--hc_space_1) 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hc_single_share_option {
    gap: 4px;
    padding-inline: 3px;
    border-radius: var(--hc_radius);
    color: var(--hc_ink);
    font: 400 .75rem/1.4 var(--hc_font);
    transition: color .22s ease;
}

.hc_single_share_option:is(:hover, :focus-visible) { color: var(--hc_heading_accent); }
.hc_single_share_option:not(:hover, :focus-visible) span { color: var(--hc_body_color); }
.hc_single_share_option:focus-visible { outline-offset: -3px; box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
    .hc_single_save, .hc_single_share_toggle, .hc_single_share_panel, .hc_single_share_option, .hc_single_resource, .hc_single_resource svg { transition: none; }
}

.hc_single_rooms, .hc_single_features, .hc_single_resources { padding: 0; margin: 0; list-style: none; }
.hc_single_rooms {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: var(--hc_space_1);
    margin-top: var(--hc_space_3);
    padding: 12px;
    border-radius: var(--hc_radius);
    background: var(--hc_surface);
}

.hc_single_room_count { display: flex; align-items: center; gap: var(--hc_space_1); color: var(--hc_heading_color); font-size: var(--hc_h6); font-weight: 600; line-height: 1.5; }
.hc_single_room_count svg { flex: none; color: var(--hc_ink); }
.hc_single_room_label { display: block; color: var(--hc_text_soft); font-size: var(--hc_small_size); line-height: 1.5; }

.hc_single_cta { display: grid; margin-top: var(--hc_space_3); }
.hc_single_panel_section { margin-top: var(--hc_space_3); }
.hc_single_panel_title { margin-bottom: var(--hc_space_1); font-size: var(--hc_h6); font-weight: 600; }

.hc_single_resources li { border-bottom: 1px solid var(--hc_border_soft); }
.hc_single_resource {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--hc_space_2);
    min-height: 44px;
    margin-inline: calc(-1 * var(--hc_space_1));
    padding: 10px var(--hc_space_1);
    border-radius: var(--hc_radius);
    color: var(--hc_ink);
    font-size: var(--hc_small_size);
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
    transition: background-color .22s ease;
}

.hc_single_resource svg { flex: none; color: var(--hc_text_soft); transition: color .22s ease; }
.hc_single_resource:is(:hover, :focus-visible) { background: var(--hc_surface); color: var(--hc_ink); }
.hc_single_resource:is(:hover, :focus-visible) svg { color: var(--hc_accent); }
.hc_single_resource:focus-visible { outline-offset: -2px; }

.hc_single_details { display: grid; gap: var(--hc_space_1); margin: 0; font-size: var(--hc_small_size); }
.hc_single_details div { display: grid; grid-template-columns: minmax(0, 45%) minmax(0, 1fr); gap: var(--hc_space_2); }
.hc_single_details dt { font-weight: 500; }
.hc_single_details dd { margin: 0; color: var(--hc_text_soft); overflow-wrap: anywhere; }

.hc_single_section { margin-top: var(--hc_space_4); }
#hc_property_map { scroll-margin-top: 110px; }
.hc_single_section h2, .hc_single_epc h2 { font-size: var(--hc_h5); }
.hc_single_features { display: flex; flex-wrap: wrap; gap: var(--hc_space_1); }
.hc_single_features li { padding: var(--hc_space_1) var(--hc_space_2); border-radius: var(--hc_radius); background: var(--hc_divider); }

.hc_single_epc { margin-top: var(--hc_space_4); }
.hc_single_epc_row {
    display: flex;
    justify-content: space-between;
    gap: var(--hc_space_1);
    width: max(9rem, var(--hc_epc_score));
    max-width: 100%;
    padding: 6px 12px;
    margin-bottom: var(--hc_space_1);
    border-radius: var(--hc_radius);
    background: var(--hc_epc_color);
    color: var(--hc_white);
    font-size: var(--hc_small_size);
}

.hc_single_epc_a { --hc_epc_color: #008150; }
.hc_single_epc_b { --hc_epc_color: #2ea849; }
.hc_single_epc_c { --hc_epc_color: #95c953; }
.hc_single_epc_d { --hc_epc_color: #ffcc00; }
.hc_single_epc_e { --hc_epc_color: #ff9e23; }
.hc_single_epc_f { --hc_epc_color: #f47739; }
.hc_single_epc_g { --hc_epc_color: #d73136; }

.hc_single_section iframe { display: block; width: 100%; height: clamp(270px, 40vw, 430px); border: 0; border-radius: var(--hc_radius); }
.hc_single_section a:not(.hc_button) { text-decoration: underline; }
.hc_single_map_action { display: flex; justify-content: center; margin-top: var(--hc_space_3); }

.hc_single_bar {
    position: fixed;
    z-index: 4;
    inset: auto 0 0;
    padding-block: .9375rem calc(.9375rem + env(safe-area-inset-bottom));
    background: var(--hc_white);
    box-shadow: 0 -4px 18px rgb(0 0 0 / .08);
}

.hc_single_bar .hc_container { display: flex; justify-content: center; gap: .9375rem; }

@media (max-width: 1024px) {
    .hc_single_layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .hc_single_main, .hc_single_aside, .hc_single_sticky { display: contents; }
    .hc_single_gallery { order: 1; }
    .hc_single_panel { order: 2; margin-top: var(--hc_space_3); }
    .hc_single_epc { order: 3; }
    .hc_single_features_section { order: 4; }
    .hc_single_summary { order: 5; }
}

@media (max-width: 767px) {
    .hc_single_thumb_row {
        --hc_thumb_gap: var(--hc_space_2);
        --hc_thumb_width: calc((100% - 3 * var(--hc_thumb_gap)) / 4);
    }
    .hc_single_bar .hc_container { gap: var(--hc_space_1); }
    .hc_single_bar .hc_button { flex: 1; }
}

@media (max-width: 420px) {
    .hc_single_rooms { gap: 4px; }
    .hc_single_room_label { font-size: .75rem; }
}
