/* Amaks property pages and reusable flat cards. */
:root {
    --p-text: var(--amaks-text);
    --p-muted: var(--amaks-muted);
    --p-surface: var(--amaks-surface);
    --p-surface-alt: var(--amaks-surface-soft);
    --p-surface-warm: var(--amaks-surface-warm);
    --p-border: var(--amaks-border);
    --p-yellow: var(--amaks-accent);
    --p-yellow-soft: #fff4d6;
    --p-navy: var(--amaks-accent-ink);
    --p-status-sale-bg: var(--amaks-status-sale-bg);
    --p-status-sale-text: var(--amaks-status-sale-text);
    --p-status-sale-dot: var(--amaks-status-sale-dot);
    --p-status-reserved-bg: var(--amaks-status-reserved-bg);
    --p-status-reserved-text: var(--amaks-status-reserved-text);
    --p-status-reserved-dot: var(--amaks-status-reserved-dot);
    --p-status-sold-bg: var(--amaks-status-sold-bg);
    --p-status-sold-text: var(--amaks-status-sold-text);
    --p-status-sold-dot: var(--amaks-status-sold-dot);
    --p-shadow-sm: var(--shadow-sm);
    --p-shadow-md: var(--shadow-md);
}

/* Keep page content, including transformed card controls, below the site header. */
#header {
    z-index: var(--z-header);
}

.property-building,
.property-flat-page,
.property-flat-card-column,
.property-flats-section,
.property-cta {
    color: var(--p-text);
    font-family: var(--font-body);
    line-height: 1.6;
}

.property-building *,
.property-flat-page *,
.property-flat-card-column * {
    box-sizing: border-box;
}

.property-eyebrow {
    margin: 0 0 6px;
    color: var(--p-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.property-building-hero {
    padding: 44px 0 40px;
    color: rgba(255, 255, 255, 0.86);
    border-bottom: 3px solid var(--amaks-accent);
    background: linear-gradient(110deg, rgba(var(--amaks-ink-rgb), 0.98), rgba(var(--amaks-ink-rgb), 0.92));
}

.property-building-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, 4vw, 56px);
}

.property-building-hero-copy {
    min-width: 0;
}

.property-building-hero .property-building-status {
    margin-top: 12px;
}

.property-building-hero h1,
.property-flat-hero h1 {
    margin: 0;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.property-building-hero h1::after {
    display: block;
    width: 48px;
    height: 4px;
    margin-top: 13px;
    border-radius: 2px;
    background: var(--amaks-accent);
    content: "";
}

.property-building-hero .property-eyebrow {
    color: var(--amaks-accent);
}

.property-building-subtitle {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
}

.property-building-hero-actions {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
}

.property-building-hero-actions .btn-amaks {
    display: inline-flex;
    min-width: 180px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.property-building-hero-arrow {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    animation: property-building-arrow-nudge 1.15s ease-in-out infinite;
}

@keyframes property-building-arrow-nudge {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(4px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .property-building-hero-arrow {
        animation: none;
    }
}

.property-building-status {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.property-building-hero .property-badge-preparation,
.property-flat-building .property-badge-preparation {
    color: var(--amaks-slate);
    background: #e7edf3;
}

.property-building-hero .property-badge-progress,
.property-flat-building .property-badge-progress {
    color: #7a5200;
    background: var(--p-yellow-soft);
}

.property-building-hero .property-badge-complete,
.property-flat-building .property-badge-complete {
    color: var(--p-status-sale-text);
    background: var(--p-status-sale-bg);
}

.property-building-overview-section {
    padding: 36px 0 40px;
    background: #fff;
}

.property-building-gallery,
.property-flat-gallery,
.property-flat-main-image,
.property-flat-no-image {
    overflow: hidden;
    border: 1px solid var(--p-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--p-shadow-sm);
}

.property-building-gallery {
    padding: 10px;
}

.property-building-gallery .fotorama,
.property-flat-gallery .fotorama {
    margin: 0 auto;
}

.property-building-gallery .fotorama__stage,
.property-flat-gallery .fotorama__stage {
    border-radius: 8px;
}

.property-gallery-empty,
.property-flat-no-image {
    display: flex;
    min-height: 320px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--p-muted);
    text-align: center;
}

.property-gallery-empty .fa {
    color: var(--p-navy);
    font-size: 48px;
}

.property-gallery-empty p,
.property-flat-no-image p {
    margin: 12px 0 0;
    font-weight: 600;
}

.property-info-card {
    overflow: hidden;
    border: 1px solid var(--p-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--p-shadow-sm);
}

.property-info-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--p-border);
    color: var(--p-text);
    background: var(--p-surface);
}

.property-info-card-header > .fa {
    color: var(--p-navy);
    font-size: 20px;
}

.property-info-card-header h2 {
    margin: 0;
    color: var(--p-text);
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 700;
}

.property-info-card-header h2::after {
    display: none;
}

.property-info-list {
    margin: 0;
    padding: 10px 22px 14px;
}

.property-info-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #edf0f2;
}

.property-info-row:last-child {
    border-bottom: 0;
}

.property-info-row dt,
.property-info-row dd {
    margin: 0;
    font-size: 13px;
}

.property-info-row dt {
    display: flex;
    align-items: center;
    color: var(--p-muted);
    font-weight: 600;
}

.property-info-row dt .fa {
    display: inline-flex;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    align-items: center;
    justify-content: center;
    margin-right: 9px;
    border-radius: 50%;
    color: var(--p-navy);
    background: var(--p-surface-alt);
    font-size: 12px;
}

.property-info-row dd {
    color: var(--p-text);
    font-weight: 600;
    text-align: right;
}

.property-info-row dd.is-muted {
    color: var(--p-muted);
    font-weight: 400;
    font-style: italic;
}

.property-contact-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.property-contact-actions .btn-amaks {
    flex: 1 1 0;
}

.property-contact-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin: 10px 0 0;
    color: #53616a;
    font-size: 12px;
}

.property-contact-numbers a {
    color: var(--p-navy);
    font-weight: 600;
}

.property-description-section {
    padding: 38px 0 42px;
    background: var(--p-surface-alt);
}

.property-section-heading {
    margin-bottom: 21px;
}

.property-section-heading h2 {
    margin: 0;
    color: var(--p-text);
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
}

.property-description-paragraph {
    max-width: 68ch;
    margin: 0 0 12px;
    color: var(--p-muted);
    font-size: 15px;
}

.property-street-flat-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.property-street-flat-links a {
    color: var(--amaks-ink);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(18, 38, 63, 0.35);
    text-underline-offset: 0.2em;
}

.property-street-flat-links a:hover {
    color: var(--amaks-accent-ink);
    text-decoration-color: currentColor;
}

.property-street-flat-links a:visited {
    color: var(--amaks-ink-hover);
}

.property-street-flat-links a:focus-visible {
    outline: 3px solid var(--amaks-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Street link inside the dark hero follows the dark theme. */
.property-building-hero .property-flat-street-link {
    margin: 0 0 12px;
}

.property-building-hero .property-flat-street-link a {
    color: var(--amaks-accent);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(252, 194, 54, 0.65);
    text-underline-offset: 0.2em;
}

.property-building-hero .property-flat-street-link a:hover {
    color: #fff;
    text-decoration-color: currentColor;
}

.property-building-hero .property-flat-street-link a:visited {
    color: var(--amaks-accent);
}

.property-building-hero .property-flat-street-link a:focus-visible {
    outline: 3px solid var(--amaks-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.property-specification-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.property-specification-list li {
    display: flex;
    min-height: 0;
    align-items: flex-start;
    gap: 11px;
    padding: 11px 4px;
    border-bottom: 1px solid var(--p-border);
    color: var(--p-text);
    background: transparent;
    font-size: 14px;
}

.property-specification-list .fa {
    display: inline-block;
    flex: 0 0 23px;
    margin-top: 3px;
    color: #1f7a4d;
    font-size: 12px;
}

.property-cta {
    padding: 20px 0;
    color: var(--p-text);
    background: var(--p-surface);
}

.property-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-left: 4px solid var(--p-yellow);
    border-radius: 9px;
    background: var(--p-yellow-soft);
}

.property-cta-copy {
    flex: 1 1 auto;
}

.property-cta-eyebrow {
    margin: 0 0 3px;
    color: var(--p-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.property-cta h2 {
    margin: 0;
    color: var(--p-text);
    font-family: var(--font-heading);
    font-size: 23px;
    font-weight: 700;
}

.property-cta h2::after {
    display: none;
}

.property-cta-copy > p:last-child {
    margin: 6px 0 0;
    color: var(--p-muted);
    font-size: 13px;
}

.property-cta-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.property-flats-section {
    padding: 45px 0 52px;
    color: var(--p-text);
    background: var(--p-surface-alt);
}

.property-flats-section .property-eyebrow {
    color: var(--p-muted);
}

.property-flats-heading {
    margin-bottom: 22px;
}

.property-status-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
    color: var(--p-muted);
    font-size: 14px;
}

.property-status-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.property-status-legend-item strong {
    color: var(--p-text);
}

.property-status-legend-separator {
    color: #89949a;
}

.property-status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.property-status-dot.status-on-sale {
    background: var(--p-status-sale-dot);
}

.property-status-dot.status-reserved {
    background: var(--p-status-reserved-dot);
}

.property-status-dot.status-sold {
    background: var(--p-status-sold-dot);
}

.property-floor-tabs-wrap {
    position: relative;
    overflow-x: auto;
    margin: 0 -15px;
    padding: 0 15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.property-floor-tabs-wrap::-webkit-scrollbar {
    display: none;
}

.property-floor-tabs {
    display: flex;
    width: max-content;
    min-width: 100%;
    gap: 8px;
    margin: 0;
    border: 0;
    white-space: nowrap;
}

.property-floor-tabs.nav-tabs {
    border-bottom: 0;
}

.property-floor-tabs > li {
    float: none;
}

.property-floor-tabs > li > a {
    margin: 0;
    padding: 9px 16px;
    border: 1px solid var(--p-border) !important;
    border-radius: 22px !important;
    color: var(--p-muted);
    background: var(--p-surface);
    font-size: 13px;
    font-weight: 600;
}

.property-floor-tabs > li > a:focus-visible {
    color: var(--p-text);
    border-color: var(--p-border) !important;
    background: var(--p-surface);
}

.property-floor-tabs > li.active > a,
.property-floor-tabs > li.active > a:focus-visible {
    color: var(--p-text);
    border-color: var(--p-border) !important;
    border-bottom: 2px solid var(--p-yellow) !important;
    background: var(--p-yellow-soft);
}

.property-floor-tabs > li > a .property-available-count {
    display: inline-block;
    min-width: 21px;
    margin-left: 5px;
    padding: 1px 6px;
    border-radius: 12px;
    color: var(--p-status-sale-text);
    background: var(--p-status-sale-bg);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.property-floor-tabs > li.active > a .property-available-count {
    color: var(--p-status-sale-text);
    background: var(--p-status-sale-bg);
}

.property-floor-content {
    min-height: 180px;
    padding: 18px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.property-empty-state {
    max-width: 520px;
    margin: 20px auto;
    padding: 22px;
    color: var(--p-muted);
    text-align: center;
}

.property-empty-state .fa {
    color: var(--p-navy);
    font-size: 34px;
}

.property-empty-state h3 {
    margin: 12px 0 7px;
    color: var(--p-text);
    font-size: 20px;
    font-weight: 700;
}

.property-empty-state p {
    margin-bottom: 16px;
    color: var(--p-muted);
}

/* Status tokens are shared by cards, summary, hero badge and legend. */
.property-building .status-on-sale,
.property-flat-page .status-on-sale,
.property-flat-card-column .status-on-sale,
.property-flats-section .status-on-sale {
    --status-color: var(--p-status-sale-dot);
    --status-text: var(--p-status-sale-text);
    --status-bg: var(--p-status-sale-bg);
}

.property-building .status-sold,
.property-flat-page .status-sold,
.property-flat-card-column .status-sold,
.property-flats-section .status-sold {
    --status-color: var(--p-status-sold-dot);
    --status-text: var(--p-status-sold-text);
    --status-bg: var(--p-status-sold-bg);
}

.property-building .status-reserved,
.property-flat-page .status-reserved,
.property-flat-card-column .status-reserved,
.property-flats-section .status-reserved {
    --status-color: var(--p-status-reserved-dot);
    --status-text: var(--p-status-reserved-text);
    --status-bg: var(--p-status-reserved-bg);
}

.property-building .status-unknown,
.property-flat-page .status-unknown,
.property-flat-card-column .status-unknown,
.property-flats-section .status-unknown {
    --status-color: var(--p-muted);
    --status-text: var(--p-text);
    --status-bg: var(--p-surface-alt);
}

.property-flat-card-column {
    position: relative;
    z-index: 0;
    padding: 8px;
}

.property-flat-card-standalone {
    width: 300px;
    max-width: 100%;
}

.property-flat-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--p-border);
    border-top: 3px solid var(--status-color, var(--p-muted));
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--p-shadow-sm);
    transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}

.property-flat-card:focus-within {
    box-shadow: var(--p-shadow-md);
    outline: 2px solid var(--amaks-primary);
    outline-offset: 3px;
}

.property-flat-card-link {
    display: block;
    height: 100%;
    color: var(--p-text) !important;
    text-decoration: none !important;
}

.property-flat-card-image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #fff;
}

.property-flat-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--duration-base) var(--ease-out), opacity var(--duration-fast) var(--ease-out), filter var(--duration-fast) var(--ease-out);
}

.property-flat-card.is-sold .property-flat-card-image img {
    opacity: .7;
    filter: grayscale(.5);
}

/* Stanovi grid (#stanovi): equal-height cards, uniform image frames, clean wrapping. */
.property-flats-section .tab-pane > .row,
.property-flats-section .container > .row {
    display: flex;
    flex-wrap: wrap;
}

.property-flats-section .tab-pane > .row::before,
.property-flats-section .tab-pane > .row::after,
.property-flats-section .container > .row::before,
.property-flats-section .container > .row::after {
    display: none;
}

.property-flats-section .property-flat-card-column {
    display: flex;
    float: none;
    min-width: 0;
}

.property-flats-section .property-flat-card {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
}

.property-flats-section .property-flat-card-link {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.property-flats-section .property-flat-card-image img {
    object-fit: contain;
}

.property-flats-section .property-flat-card-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.property-flats-section .property-flat-card-footer {
    margin-top: auto;
}

.property-flats-section .property-flat-card-heading,
.property-flats-section .property-flat-card-facts {
    overflow-wrap: anywhere;
}

.property-card-status {
    display: inline-flex;
    min-width: 0;
    max-width: 62%;
    min-height: 27px;
    align-items: center;
    flex: 0 0 auto;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid rgba(31, 45, 48, .05);
    border-radius: 20px;
    color: var(--status-text);
    background: var(--status-bg);
    box-shadow: var(--p-shadow-sm);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}

.property-card-status > span:not(.property-status-dot) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-card-status .property-status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
}

.property-flat-card-content {
    display: block;
    padding: 13px 14px 14px;
}

.property-flat-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 9px;
}

.property-flat-card-heading > strong {
    color: var(--p-text);
    font-family: var(--font-heading);
    font-size: 17px;
}

.property-flat-card-footer {
    display: block;
    margin-top: 10px;
}

.property-flat-card-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    color: var(--p-muted);
    font-size: 12px;
}

.property-flat-card-more {
    display: inline-block;
    flex: 0 0 auto;
    margin-top: 0;
    color: var(--p-navy);
    font-size: 11px;
    font-weight: 700;
}

.property-flat-card-more .fa {
    margin-left: 4px;
    transition: transform var(--duration-fast) var(--ease-out);
}

.property-flat-card-admin {
    position: absolute;
    z-index: 5;
    top: 9px;
    right: 9px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px;
    border-radius: 5px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--p-shadow-sm);
}

.property-flat-card-admin form {
    margin: 0;
}

.property-admin-toggle,
.property-admin-edit {
    display: inline-flex;
    min-width: 29px;
    min-height: 27px;
    align-items: center;
    justify-content: center;
    padding: 4px 7px;
    border: 0;
    border-radius: 3px;
    color: var(--p-text) !important;
    background: transparent;
    font-size: 11px;
    text-decoration: none !important;
}

.property-admin-toggle.is-special-offer {
    color: #9a6b00 !important;
}

.property-admin-edit {
    color: var(--p-navy) !important;
    background: var(--p-surface-alt);
}

.property-flat-hero {
    padding: 42px 0 46px;
    color: var(--p-text);
    border-bottom: 1px solid var(--p-border);
    background: var(--p-surface-warm);
}

.property-breadcrumb {
    padding: 5px 0 20px;
}

.property-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    color: var(--p-muted);
    font-size: 12px;
    list-style: none;
}

.property-breadcrumb li + li::before {
    margin-right: 7px;
    color: #89949a;
    content: "›";
}

.property-breadcrumb a {
    color: var(--p-navy);
    text-decoration: none;
}

.property-breadcrumb a:focus-visible {
    color: var(--amaks-primary-hover);
}

.property-flat-hero h1 {
    font-size: 32px;
}

.property-flat-hero h1::after {
    display: block;
    width: 48px;
    height: 4px;
    margin-top: 13px;
    border-radius: 2px;
    background: var(--p-yellow);
    content: "";
}

.property-flat-content {
    position: relative;
    z-index: 0;
    margin-top: -20px;
    padding-bottom: 38px;
}

.property-flat-main-image {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    padding: 12px;
}

.property-image-open {
    position: relative;
    display: block;
    width: 100%;
    max-height: 75vh;
    overflow: hidden;
    padding: 0;
    border: 0;
    aspect-ratio: 4 / 3;
    background: #fff;
    cursor: zoom-in;
}

.property-image-open img,
.property-flat-no-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.property-image-zoom {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-end;
    margin-top: 8px;
    padding: 6px 9px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    background: rgba(31, 45, 48, .82);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
}

.property-image-note {
    margin: 5px 0 0;
    color: var(--p-muted);
    font-size: 11px;
    text-align: left;
}

.property-flat-no-image {
    width: 100%;
    min-height: 300px;
    padding: 12px;
}

.property-flat-no-image img {
    max-height: 320px;
}

.property-flat-summary {
    position: sticky;
    top: 24px;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--p-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--p-shadow-sm);
}

.property-flat-status-banner {
    display: flex;
    min-height: 56px;
    align-items: center;
    gap: 11px;
    padding: 14px 22px;
    border-left: 4px solid var(--status-color);
    color: var(--status-text);
    background: var(--status-bg);
    font-size: 16px;
}

.property-flat-status-banner .fa {
    color: var(--status-color);
    font-size: 19px;
}

.property-flat-summary-body {
    padding: 21px 22px 23px;
}

.property-flat-alt-number {
    display: inline-block;
    margin: 0 0 6px;
    color: var(--p-muted);
    font-size: 12px;
    font-weight: 600;
}

.property-flat-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 20px;
}

.property-flat-facts > div {
    min-height: 91px;
    padding: 12px 13px;
    border-radius: 6px;
    background: var(--p-surface-alt);
}

.property-flat-facts span {
    display: block;
    margin-bottom: 4px;
    color: var(--p-muted);
    font-size: 12px;
}

.property-flat-facts strong {
    display: block;
    color: var(--p-text);
    font-family: var(--font-heading);
    font-size: 18px;
    line-height: 1.3;
}

.property-flat-facts > div:first-child strong {
    color: var(--p-text);
    font-size: 32px;
    line-height: 1.15;
}

.property-flat-facts strong small {
    font-size: 14px;
}

.property-flat-building {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 -22px 0;
    padding: 15px 22px;
    color: var(--p-text);
    background: var(--p-surface-alt);
}

.property-flat-building > .fa {
    margin-top: 4px;
    color: var(--p-navy);
    font-size: 20px;
}

.property-flat-building > div > span:first-child {
    display: block;
    color: var(--p-muted);
    font-size: 12px;
}

.property-flat-building .property-flat-building-detail {
    display: block;
    margin: 0 0 7px;
    color: var(--p-muted);
    font-size: 12px;
}

.property-flat-building a {
    display: block;
    margin: 2px 0 7px;
    color: var(--p-navy);
    font-weight: 700;
}

.property-flat-building a:focus-visible {
    color: var(--amaks-primary-hover);
}

@media (hover: hover) {
    .property-floor-tabs > li > a:hover {
        color: var(--p-text);
        border-color: var(--p-border) !important;
        background: var(--p-surface);
    }

    .property-floor-tabs > li.active > a:hover {
        color: var(--p-text);
        border-color: var(--p-border) !important;
        border-bottom: 2px solid var(--p-yellow) !important;
        background: var(--p-yellow-soft);
    }

    .property-breadcrumb a:hover,
    .property-flat-building a:hover {
        color: var(--amaks-primary-hover);
    }
}

.property-flat-building .property-building-status {
    padding: 4px 9px;
    font-size: 11px;
}

.property-flat-summary-body .property-contact-actions {
    margin-top: 17px;
}

.property-flat-summary-body .property-contact-numbers {
    margin-bottom: 0;
}

.property-flat-gallery-section {
    padding: 40px 0 46px;
    color: var(--p-text);
    background: var(--p-surface-alt);
}

.property-flat-gallery {
    padding: 12px;
    border-color: var(--p-border);
    background: var(--p-surface);
    box-shadow: var(--p-shadow-sm);
}

.property-other-flats-section {
    padding: 40px 0 46px;
    background: var(--p-surface);
}

.property-other-flats {
    padding-top: 0;
    padding-bottom: 0;
}

.property-image-viewer {
    position: fixed;
    z-index: var(--z-dialog);
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(9, 17, 20, .94);
}

.property-image-viewer[aria-hidden="false"] {
    display: flex;
}

.property-image-dialog {
    position: relative;
    display: flex;
    max-width: 100%;
    max-height: 100%;
    align-items: center;
    justify-content: center;
}

.property-image-dialog img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 48px);
    object-fit: contain;
}

.property-image-close {
    position: absolute;
    z-index: 1;
    top: -18px;
    right: -18px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: var(--p-text);
    background: var(--p-yellow);
    font-size: 20px;
}

.property-modal-open {
    overflow: hidden;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .property-other-flats .col-md-3 {
        width: 33.33333333%;
    }
}

@media (max-width: 991px) {
    .property-building-hero {
        padding: 34px 0;
    }

    .property-building-hero-inner {
        gap: 20px;
    }

    .property-building-overview > .row {
        display: flex;
        flex-direction: column;
    }

    .property-building-overview > .row > [class*="col-"] + [class*="col-"] {
        margin-top: 22px;
    }

    .property-flat-layout > [class*="col-"] + [class*="col-"] {
        margin-top: 22px;
    }

    .property-flat-summary {
        position: static;
    }

    .property-cta-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .property-cta-actions {
        width: 100%;
    }

    .property-cta-actions .btn-amaks {
        flex: 1 1 0;
    }
}

@media (max-width: 767px) {
    .property-flats-section .container,
    .property-other-flats-section .container,
    .property-flat-gallery-section .container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .property-floor-content .row,
    .property-other-flats .row {
        margin-right: 0;
        margin-left: 0;
    }

    .property-floor-content .property-flat-card-column,
    .property-other-flats .property-flat-card-column {
        padding-right: 0;
        padding-left: 0;
    }

    .property-street-flat-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .property-building-hero {
        padding: 28px 0;
    }

    .property-building-hero-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .property-building-hero-actions {
        width: 100%;
        justify-content: center;
    }

    .property-building-hero h1,
    .property-flat-hero h1 {
        font-size: 27px;
    }

    .property-building-subtitle {
        font-size: 14px;
    }

    .property-building-overview-section {
        padding: 22px 0 26px;
    }

    .property-info-card-header {
        padding: 15px 17px;
    }

    .property-info-list {
        padding: 8px 17px 11px;
    }

    .property-info-row {
        gap: 8px;
    }

    .property-info-row dt,
    .property-info-row dd {
        font-size: 12px;
    }

    .property-contact-actions {
        flex-direction: column;
    }

    .property-description-section {
        padding: 30px 0;
    }

    .property-section-heading h2 {
        font-size: 24px;
    }

    .property-specification-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .property-cta {
        padding: 23px 0;
    }

    .property-cta h2 {
        font-size: 21px;
    }

    .property-cta-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .property-flats-section {
        padding: 33px 0 38px;
    }

    .property-status-legend {
        gap: 6px;
        font-size: 12px;
    }

    .property-floor-content {
        padding-top: 12px;
    }

    .property-floor-tabs-wrap {
        padding-right: 32px;
    }

    .property-floor-tabs-wrap::after {
        position: absolute;
        z-index: 1;
        top: 0;
        right: 0;
        bottom: 0;
        width: 24px;
        background: linear-gradient(90deg, rgba(246, 247, 249, 0), var(--p-surface-alt));
        content: "";
        pointer-events: none;
    }

    .property-flat-card-standalone {
        width: 100%;
        max-width: none;
        flex: 0 0 100%;
    }

    .property-card-status {
        min-height: 27px;
        font-size: 12px;
    }

    .property-flat-card-admin {
        top: 7px;
        right: 7px;
        gap: 2px;
        padding: 3px;
    }

    .property-admin-toggle,
    .property-admin-edit {
        min-width: 44px;
        min-height: 44px;
        padding: 3px 8px;
        font-size: 12px;
    }

    .property-flat-hero {
        padding: 32px 0 32px;
    }

    .property-breadcrumb {
        padding: 5px 0 16px;
    }

    .property-breadcrumb ol {
        font-size: 11px;
    }

    .property-flat-content {
        margin-top: -16px;
        padding-bottom: 24px;
    }

    .property-flat-main-image {
        padding: 7px;
    }

    .property-image-open {
        max-height: 58vh;
    }

    .property-image-zoom-label {
        display: none;
    }

    .property-flat-summary-body {
        padding: 17px;
    }

    .property-flat-status-banner {
        min-height: 50px;
        padding: 12px 17px;
        font-size: 14px;
    }

    .property-flat-facts {
        gap: 8px;
    }

    .property-flat-facts > div {
        min-height: 82px;
        padding: 10px;
    }

    .property-flat-facts strong {
        font-size: 16px;
    }

    .property-flat-facts > div:first-child strong {
        font-size: 24px;
        white-space: nowrap;
    }

    .property-flat-building {
        margin-right: -17px;
        margin-left: -17px;
        padding-right: 17px;
        padding-left: 17px;
    }

    .property-flat-gallery-section,
    .property-other-flats-section {
        padding: 32px 0;
    }

    .property-flat-gallery {
        padding: 7px;
    }

    .property-image-viewer {
        padding: 16px;
    }

    .property-image-close {
        top: -12px;
        right: -8px;
    }
}

@media (max-width: 480px) {
    .property-street-flat-links {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 479px) {
    .property-card-status {
        gap: 5px;
        padding-right: 8px;
        padding-left: 8px;
    }

    .property-flat-card-admin {
        gap: 1px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .property-flat-card,
    .property-flat-card-image img,
    .btn-amaks {
        transition: none;
    }
}

.property-building-overview-section,
.property-description-section,
.property-flats-section,
.property-flat-gallery-section,
.property-other-flats-section {
    padding-block: var(--space-16);
}

@media (max-width: 767px) {
    .property-building-overview-section,
    .property-description-section,
    .property-flats-section,
    .property-flat-gallery-section,
    .property-other-flats-section {
        padding-block: var(--space-12);
    }
}

@media (max-width: 767px) {
    .property-eyebrow,
    .property-building-status,
    .property-flat-status-banner,
    .property-card-status,
    .property-info-row dt,
    .property-info-row dd,
    .property-contact-numbers,
    .property-cta-eyebrow,
    .property-cta-copy > p:last-child,
    .property-cta-actions .btn-amaks,
    .property-status-legend,
    .property-flat-alt-number,
    .property-flat-facts span,
    .property-flat-building > div > span:first-child,
    .property-flat-building .property-flat-building-detail,
    .property-flat-building .property-building-status,
    .property-floor-tabs > li > a,
    .property-floor-tabs > li > a .property-available-count,
    .property-flat-card-facts,
    .property-flat-card-more,
    .property-breadcrumb ol,
    .property-image-zoom,
    .property-image-note {
        font-size: 14px;
    }

    .property-info-row dt,
    .property-info-row dd,
    .property-cta-copy,
    .property-flat-card-facts,
    .property-flat-building > div,
    .property-breadcrumb li {
        min-width: 0;
        overflow-wrap: anywhere;
        hyphens: auto;
    }

    .property-card-status {
        max-width: 100%;
        min-height: 36px;
        white-space: normal;
    }

    .property-card-status > span:not(.property-status-dot) {
        overflow-wrap: anywhere;
        hyphens: auto;
    }

    .property-flat-card-heading {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .property-floor-tabs > li > a,
    .property-image-zoom {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .fotorama__arr,
    .fotorama__fullscreen-icon {
        min-width: 44px;
        min-height: 44px;
    }
}

.fotorama__arr:focus-visible,
.fotorama__fullscreen-icon:focus-visible,
.fotorama__nav__frame:focus-visible {
    outline: 2px solid var(--amaks-primary);
    outline-offset: 2px;
    box-shadow: var(--focus-ring);
}
