/* =============================================================================
   Single Property template — matches Figma spec.
   Loaded only on is_singular('vaunt_sync_property').
   ============================================================================= */

/* .property-single {
    padding-block: var(--space-6) var(--space-9);
} */

/* ---- Breadcrumb -------------------------------------------------------- */
.property-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: var(--color-black);
    flex-wrap: wrap;
	padding-block: 50px;
	background: #fff;
}

.property-breadcrumb a:hover { color: var(--color-brand); }

.property-breadcrumb__sep {
    display: inline-block;
    width: 6px;
    height: 12px;
    color: var(--color-gray-strong);
    flex-shrink: 0;
}

.single-vaunt_sync_property .site-bg-lines span:nth-child(3) {
	display: none;
}

/* ---- Hero gallery — Swiper main image + thumbnail rail ---------------- */
.property-hero {
    margin-bottom: var(--space-8);
}

.property-hero__main {
    position: relative;
    width: 100%;
    height: 568px;
    margin-bottom: var(--space-4);
    background: var(--color-gray-100);
    overflow: hidden;
}

.property-hero__main-slide,
.property-hero__main-slide img {
    width: 100%;
    height: 100%;
}

.property-hero__main-slide img {
    object-fit: cover;
}

.property-hero__nav {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--color-gray-line);
    transform: translateY(-50%);
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.property-hero__nav:hover,
.property-hero__nav:focus-visible {
    background: var(--color-white);
    border-color: var(--color-brand);
}

.property-hero__nav-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 11px;
    border-top: 2px solid var(--color-black);
    border-right: 2px solid var(--color-black);
}

.property-hero__nav--prev {
    left: var(--space-4);
}

.property-hero__nav--prev .property-hero__nav-icon {
    transform: translate(-35%, -50%) rotate(-135deg);
}

.property-hero__nav--next {
    right: var(--space-4);
}

.property-hero__nav--next .property-hero__nav-icon {
    transform: translate(-65%, -50%) rotate(45deg);
}

.property-hero__thumbs-wrap {
    position: relative;
    padding-bottom: 20px;
}

.property-hero__thumbs {
    overflow: hidden;
}

.property-hero__thumb {
    height: 266px;
    border: 0;
    padding: 0;
    background: var(--color-gray-100);
    opacity: 0.72;
    overflow: hidden;
    transition: opacity var(--transition-fast);
}

.property-hero__thumb:hover,
.property-hero__thumb:focus-visible,
.property-hero__thumb.swiper-slide-thumb-active {
    opacity: 1;
}

.property-hero__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-hero__thumb-scrollbar {
    left: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 3px !important;
    background: var(--color-gray-line);
    border-radius: 0;
}

.property-hero[data-thumb-count="1"] .property-hero__thumb-scrollbar,
.property-hero[data-thumb-count="2"] .property-hero__thumb-scrollbar,
.property-hero[data-thumb-count="3"] .property-hero__thumb-scrollbar {
    display: none;
}

.property-hero__thumb-scrollbar .swiper-scrollbar-drag {
    background: var(--color-brand);
    border-radius: 0;
}

@media (max-width: 1024px) {
    .property-hero__main { height: 400px; }
    .property-hero__thumb { height: 180px; }
}

/* ---- Main 2-column body ------------------------------------------------ */
.property-body {
    display: grid;
    grid-template-columns: 410px minmax(0, 1fr);
    gap: 50px;
    align-items: start;
}

/* ============================ LEFT: SIDEBAR ============================ */

.property-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
    display: flex;
    flex-direction: column;
}

/* ---- Price card -------------------------------------------------------- */
.property-price-card {
    background: var(--color-brand-soft);
    border: var(--border-card);
    padding: 24px;
}

.property-price-card__price {
    font-family: var(--font-display);
    font-weight: var(--fw-medium);
    font-size: var(--fs-price);
    line-height: 48px;
    letter-spacing: var(--ls-tighter);
    color: var(--color-black);
    margin: 0;
}

.property-price-card__vat {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 24px;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-5);
}

.property-price-card__cta { width: 100%; margin-bottom: 32px; }

/* Specs list inside the price card */
.property-specs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.property-specs-list__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.property-specs-list__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: var(--fs-base);
    line-height: 24px;
}

.property-specs-list__label svg,
.property-specs-list__label .icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.property-specs-list__value {
    color: var(--color-black);
    font-size: var(--fs-base);
    line-height: 24px;
    text-align: right;
    white-space: nowrap;
}

.property-specs-list__sep {
    height: 1px;
    background: var(--color-gray-line);
    margin: 0;
    border: 0;
}

/* ---- Agent card -------------------------------------------------------- */
.property-agent-card {
    background: var(--color-brand-soft);
    border: var(--border-card);
    padding: 24px;
    margin-top: 20px;
}

.property-agent-card__top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--space-4);
}

.property-agent-card__top > div {
    min-width: 0;
}

.property-agent-card__avatar {
    width: 59px;
    height: 56px;
    object-fit: cover;
    flex-shrink: 0;
}

.property-agent-card__name {
    font-family: var(--font-body);
    font-size: var(--fs-lg);
    font-weight: var(--fw-regular);
    line-height: 30px;
    letter-spacing: var(--ls-snug-sm);
    color: var(--color-black);
    margin: 0;
    overflow-wrap: anywhere;
}

.property-agent-card__role {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 24px;
    color: var(--color-text-muted);
    margin: 0;
}

.property-agent-card__cta { width: 100%; }

/* ============================= RIGHT: MAIN ============================= */

.property-main {
    display: flex;
    flex-direction: column;
}

section.property-section.property-description{
	border-top: 1px solid var(--color-gray-line);
}

/* ---- Title block ------------------------------------------------------- */
.property-title {
    margin-bottom: var(--space-5);
}

.property-title h1 {
    font-family: var(--font-display);
    font-size: 3rem;       /* 48px-ish, scales down */
    font-weight: var(--fw-medium);
    line-height: 1.18;
    letter-spacing: var(--ls-tight);
    color: var(--color-black);
    margin: 0 0 var(--space-3);
}

.property-title__address {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 24px;
    color: var(--color-text-muted);
    margin: 0;
}

/* Quick info row (Compartimentare / Orientare / Tip bucătărie) */
.property-quick-info {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5) var(--space-7);
    margin-bottom: var(--space-7);
}

.property-quick-info__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-base);
    line-height: 24px;
}

.property-quick-info__item .icon { width: 20px; height: 20px; flex-shrink: 0; }

.property-quick-info__label { color: var(--color-black); }
.property-quick-info__value { color: var(--color-text-muted); margin-left: 6px; }

/* ---- Section heading shared style ------------------------------------- */
.property-section {
    padding-block: var(--space-6);
}

.property-section:first-of-type { border-top: 0; padding-top: 0; }

.premium-materials--contained .premium-materials__title {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-medium);
    line-height: 33.6px;
    letter-spacing: var(--ls-tight);
    color: var(--color-black);
    margin: 0 0 var(--space-5);
}

.property-section__title {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-medium);
    line-height: 33.6px;
    letter-spacing: var(--ls-tight);
    color: var(--color-black);
    margin: 0 0 var(--space-5);
}

/* ---- Description body text ------------------------------------------- */
.property-description__body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 24px;
    color: var(--color-text-muted);
}

.property-description__body p { margin-bottom: var(--space-4); }
.property-description__body p:last-child { margin-bottom: 0; }

/* ---- Floor plans ------------------------------------------------------- */
.property-floor-plan {
    border: 1px solid var(--color-gray-line);
    height: 391px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-page-bg);
    padding: var(--space-4);
}

.property-floor-plan img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.property-floor-plan--placeholder { background: var(--color-page-bg); }

/* ---- Location tabs + Leaflet map ------------------------------------- */
.property-location__address {
    margin: calc(var(--space-3) * -1) 0 var(--space-4);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 24px;
    color: var(--color-text-muted);
}

.property-location__tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.property-location__tab {
    padding: 12px 16px;
    background: transparent;
    color: #222;
    font-family: var(--font-display);
    font-size: var(--fs-md);
    font-weight: var(--fw-regular);
    line-height: 27px;
    border: 0;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color var(--transition-fast), border-color var(--transition-fast),
                background var(--transition-fast);
}

.property-location__tab:hover { color: var(--color-brand); }

.property-location__tab[aria-selected="true"] {
    background: var(--color-brand-soft);
    color: var(--color-black);
    border-bottom-color: var(--color-black);
}

.property-location__map-shell {
    position: relative;
    border: 1px solid var(--color-gray-line);
    border-top: 0;
    background: var(--color-gray-50);
}

.property-location__map {
    width: 100%;
    height: 480px;
    min-height: 360px;
    background: var(--color-gray-100);
}

.property-location .leaflet-container {
    font-family: var(--font-body);
    color: var(--color-black);
}

.property-location .leaflet-control-attribution {
    font-size: 10px;
}

.property-location__fallback {
    margin: 0;
    padding: var(--space-6);
    color: var(--color-text-muted);
}

.property-location__status {
    position: absolute;
    z-index: 500;
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
    max-width: 560px;
    margin: 0;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--color-gray-line);
    box-shadow: var(--shadow-sm);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    line-height: 1.4;
    color: var(--color-text-muted);
}

.property-location__status[hidden] { display: none; }

.property-location__status[data-state="error"] {
    color: #b32d2e;
    border-color: rgba(179, 45, 46, 0.28);
}

.property-location__status[data-state="loading"]::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border: 2px solid var(--color-gray-300);
    border-top-color: var(--color-brand);
    border-radius: 50%;
    vertical-align: -3px;
    animation: vault-spin 800ms linear infinite;
}

.property-location__marker {
    background: transparent;
    border: 0;
}

.property-location__marker-pin {
    position: relative;
    display: block;
    width: 30px;
    height: 30px;
    margin: 0 auto;
    background: #2f6fbd;
    border: 2px solid var(--color-white);
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
    transform: rotate(-45deg);
}

.property-location__marker-pin::after {
    content: '';
    position: absolute;
    inset: 9px;
    background: var(--color-white);
    border-radius: 50%;
}

.property-location__marker--property .property-location__marker-pin {
    width: 34px;
    height: 34px;
    background: var(--color-brand);
}

.property-location__marker--shop .property-location__marker-pin {
    background: #b36a00;
}

.property-location__cluster {
    background: transparent;
    border: 0;
}

.property-location__cluster span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #2f6fbd;
    border: 2px solid var(--color-white);
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.26);
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
}

.property-location__cluster--shops span {
    background: #b36a00;
}

.property-location .leaflet-popup-content {
    margin: 12px 14px;
    line-height: 1.4;
}

.property-location__popup {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 190px;
    font-family: var(--font-body);
}

.property-location__popup-title {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--color-black);
}

.property-location__popup-meta {
    display: block;
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
}

.property-location__popup-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.property-location__popup-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 10px;
    background: var(--color-brand);
    color: var(--color-white) !important;
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    line-height: 1.2;
}

.property-location__popup-action:hover,
.property-location__popup-action:focus-visible {
    background: var(--color-brand-hover);
    color: var(--color-white) !important;
}

.property-location__popup-action--secondary {
    background: var(--color-white);
    border: 1px solid var(--color-gray-line);
    color: var(--color-black) !important;
}

.property-location__popup-action--secondary:hover,
.property-location__popup-action--secondary:focus-visible {
    background: var(--color-brand-soft);
    color: var(--color-black) !important;
}

section.property-section.property-location {
    margin-bottom: 50px;
}

@keyframes vault-spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
    .property-body {
        grid-template-columns: 1fr;
        gap: var(--space-7);
    }

    .property-sidebar {
        position: static;
        top: auto;
    }
}

@media (max-width: 700px) {
    body.single-vaunt_sync_property {
        --header-height: 56px;
    }

    body.single-vaunt_sync_property .site-header {
        padding-block: 0;
    }

    body.single-vaunt_sync_property .site-header__inner {
        min-height: var(--header-height);
    }

    body.single-vaunt_sync_property .site-header__logo img,
    body.single-vaunt_sync_property .site-header__logo svg {
        height: 36px;
    }

    body.single-vaunt_sync_property .menu-toggle {
        width: 40px;
        height: 40px;
        border: 0;
    }

    .property-breadcrumb {
        gap: 6px;
        margin-bottom: var(--space-3);
        font-size: var(--fs-xs);
        line-height: 1.4;
		padding-block: 25px;
    }

    .property-breadcrumb__sep {
        width: 5px;
        height: 10px;
    }

    .property-hero {
        margin-bottom: var(--space-5);
    }

    .property-hero__main {
        height: clamp(260px, 84vw, 380px);
        margin-bottom: 10px;
    }

    .property-hero__thumbs-wrap {
        padding-bottom: 10px;
    }

    .property-hero__thumb {
        height: clamp(70px, 18vw, 94px);
    }

    .property-hero__nav {
        display: none;
    }

    .property-location__tab {
        flex: 1 1 auto;
        padding: 10px 12px;
        font-size: var(--fs-base);
        line-height: 24px;
    }

	.property-location__map-shell{
		left: -5%;
		width: 110%;
	}

	section.property-section.property-location {
		margin-bottom: 0;
		padding-bottom: 0;
	}

    .property-location__status {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }

    .property-body {
        gap: var(--space-6);
    }

    .property-price-card,
    .property-agent-card {
        padding: 20px;
    }

    .property-price-card__price {
        font-size: 2rem;
        line-height: 1.15;
        letter-spacing: 0;
    }

    .property-price-card__vat {
        margin-bottom: var(--space-4);
        font-size: var(--fs-sm);
        line-height: 1.4;
    }

    .property-price-card__cta {
        margin-bottom: var(--space-5);
    }

    .property-specs-list {
        gap: 14px;
    }

    .property-specs-list__row {
        align-items: flex-start;
        gap: var(--space-4);
    }

    .property-specs-list__label {
        min-width: 0;
        font-size: var(--fs-sm);
        line-height: 1.4;
    }

    .property-specs-list__label svg,
    .property-specs-list__label .icon {
        width: 18px;
        height: 18px;
    }

    .property-specs-list__value {
        flex-shrink: 0;
        font-size: var(--fs-sm);
        line-height: 1.4;
    }

    .property-agent-card__avatar {
        width: 52px;
        height: 52px;
    }

    .property-agent-card__name {
        font-size: var(--fs-base);
        line-height: 1.3;
        letter-spacing: 0;
    }

    .property-agent-card__role {
        font-size: var(--fs-sm);
        line-height: 1.4;
    }

    .property-main {
        min-width: 0;
    }

    .property-title {
        margin-bottom: var(--space-4);
    }

    .property-title h1 {
        font-size: 2rem;
        line-height: 1.12;
        letter-spacing: 0;
        margin-bottom: var(--space-2);
    }

    .property-title__address {
        font-size: var(--fs-sm);
        line-height: 1.45;
    }

    .property-quick-info {
        flex-direction: column;
        gap: var(--space-3);
        margin: var(--space-4) 0 var(--space-5);
    }

    .property-quick-info__item {
        align-items: flex-start;
        font-size: var(--fs-sm);
        line-height: 1.4;
    }

    .property-quick-info__label,
    .property-quick-info__value {
        letter-spacing: 0;
    }

    .property-section {
        padding-block: var(--space-5);
    }

    .property-section__title {
        margin-bottom: var(--space-4);
        font-size: var(--fs-xl);
        line-height: 1.2;
        letter-spacing: 0;
    }

    .property-description__body {
        font-size: var(--fs-sm);
        line-height: 1.55;
    }

    .property-floor-plan {
        height: auto;
        min-height: 220px;
        aspect-ratio: 4 / 3;
        padding: var(--space-3);
    }

    .property-location__tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow-x: auto;
    }

    .property-location__tab {
        min-width: 92px;
        padding: 10px 8px;
        font-size: var(--fs-sm);
        line-height: 1.3;
        letter-spacing: 0;
    }

    .property-location__map {
        height: 600px;
        min-height: 600px;
    }

    .premium-materials--contained {
        padding-block: var(--space-5);
    }

    .premium-materials--contained .premium-materials__header {
        margin-bottom: var(--space-4);
    }

    .premium-materials--contained .premium-materials__title {
        font-size: var(--fs-xl);
        line-height: 1.2;
        letter-spacing: 0;
    }

    .premium-materials--contained .premium-materials__grid {
        gap: var(--space-5);
    }

    .premium-materials--contained .premium-material {
        grid-template-columns: 24px minmax(0, 1fr);
        gap: var(--space-4);
		grid-template-columns: auto;
    }

    .premium-materials--contained .premium-material__icon {
        width: 24px;
        height: 24px;
    }

    .premium-materials--contained .premium-material__body h3 {
        font-size: var(--fs-base);
        line-height: 1.3;
        letter-spacing: 0;
    }

    .premium-materials--contained .premium-material__body p {
        font-size: var(--fs-sm);
        line-height: 1.45;
    }

    .property-single .contact-section {
        padding-block: var(--space-7);
    }

    .property-single .contact-section__inner {
        gap: var(--space-6);
    }

    .property-single .section-eyebrow {
        gap: var(--space-3);
        margin-bottom: var(--space-4);
    }

    .property-single .section-eyebrow__line {
        width: 36px;
    }

    .property-single .section-eyebrow__label {
        font-size: var(--fs-base);
        letter-spacing: 0;
    }

    .property-single .section-headline {
        font-size: 1.875rem;
        line-height: 1.08;
        letter-spacing: 0;
    }

    .property-single .contact-section__intro .section-headline {
        margin-bottom: var(--space-6);
    }

    .property-single .contact-section__office-title {
        margin-bottom: var(--space-4);
        font-size: var(--fs-lg);
        letter-spacing: 0;
    }

    .property-single .contact-info {
        gap: var(--space-4);
        align-items: flex-start;
    }

    .property-single .contact-info__icon {
        width: 48px;
        height: 48px;
    }

    .property-single .contact-info__icon svg {
        width: 26px;
        height: 26px;
    }

    .property-single .contact-info__primary {
        font-size: var(--fs-base);
        letter-spacing: 0;
        overflow-wrap: anywhere;
    }

    .property-single .contact-info__secondary {
        font-size: var(--fs-sm);
        line-height: 1.35;
        letter-spacing: 0;
    }

    .property-single .contact-form {
        gap: var(--space-4);
    }

    .property-single .contact-form input[type="text"],
    .property-single .contact-form input[type="email"],
    .property-single .contact-form input[type="tel"],
    .property-single .contact-form select,
    .property-single .contact-form textarea {
        padding: 13px 16px;
        font-size: var(--fs-sm);
        letter-spacing: 0;
    }

    .property-single .contact-form select {
        background-position: right 16px center;
        padding-right: 44px;
    }

    .property-single .contact-form__check {
        gap: var(--space-3);
    }

    .property-single .contact-form__submit {
        height: 52px;
        font-size: var(--fs-base);
        letter-spacing: 0;
    }

    .property-single .cta-section {
        min-height: 540px;
        padding-block: var(--space-7);
    }

    .property-single .cta-section__inner {
        min-height: 420px;
        gap: var(--space-7);
        justify-content: space-between;
    }

    .property-single .cta-section__feature {
        gap: var(--space-6);
    }

    .property-single .cta-feature-card {
        max-width: none;
        padding: 32px 24px 24px;
    }

    .property-single .cta-feature-card__badge {
        left: 24px;
        height: 40px;
        font-size: var(--fs-base);
        letter-spacing: 0;
    }

    .property-single .cta-feature-card__list {
        gap: 20px;
    }

    .property-single .cta-feature-card__list li {
        font-size: var(--fs-base);
        line-height: 1.25;
        letter-spacing: 0;
    }

    .property-single .cta-feature-card__list li + li {
        padding-top: 20px;
    }

    .property-single .cta-section__action {
        width: 100%;
        min-height: 52px;
        letter-spacing: 0;
    }
}

@media (max-width: 420px) {
    .property-price-card,
    .property-agent-card {
        padding: var(--space-4);
    }

    .property-price-card__price {
        font-size: 1.75rem;
    }

    .property-specs-list__row {
        gap: var(--space-3);
    }

    .property-title h1 {
        font-size: 1.75rem;
    }

    .property-location__tab {
        min-width: 86px;
        padding-inline: 6px;
    }

    .property-single .section-headline {
        font-size: 1.625rem;
    }
}
