/* =========================================================
   Bigist Invest – Light Theme CSS
   ========================================================= */

:root {
    --brand-gold-surface: #d49520;
    --brand-gold-hover: #d49520;
    --brand-gold-text: #d49520;
    --brand-gold-on-dark: #d49520;
}

[x-cloak] { display: none !important; }

html { scroll-behavior: smooth; }

html.property-filters-open { overflow: hidden; }

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    body *,
    body *::before,
    body *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Shared public-page spacing rhythm */
.section-space {
    padding-top: clamp(3.5rem, 5vw, 5rem);
    padding-bottom: clamp(3.5rem, 5vw, 5rem);
}

.section-space-compact {
    padding-top: clamp(2.25rem, 3.5vw, 3.5rem);
    padding-bottom: clamp(2.25rem, 3.5vw, 3.5rem);
}

/* Standard vertical rhythm for public inner pages. Homepage sections keep
   their more generous editorial spacing through the legacy classes above. */
.page-hero-space {
    padding-top: clamp(1.75rem, 2.8vw, 2.5rem);
    padding-bottom: clamp(1.75rem, 2.8vw, 2.5rem);
}

.page-section-space {
    padding-top: clamp(2.25rem, 3.6vw, 3.25rem);
    padding-bottom: clamp(2.25rem, 3.6vw, 3.25rem);
}

.page-section-compact {
    padding-top: clamp(1.5rem, 2.5vw, 2.25rem);
    padding-bottom: clamp(1.5rem, 2.5vw, 2.25rem);
}

.page-media-space {
    padding-top: clamp(1.75rem, 2.8vw, 2.25rem);
    padding-bottom: clamp(1rem, 1.8vw, 1.75rem);
}

/* Mobile gallery uses intrinsic rows so every image remains a full-size touch
   target. Desktop restores the fixed two-row editorial collage. */
@media (min-width: 768px) {
    .property-gallery-collage {
        grid-template-rows: repeat(2, minmax(0, 1fr));
    }

    .property-gallery-collage__main,
    .property-gallery-collage__thumb {
        aspect-ratio: auto;
    }
}

.footer-space {
    padding-top: clamp(2.75rem, 4vw, 3.5rem);
    padding-bottom: clamp(2.75rem, 4vw, 3.5rem);
}

.property-hero-reference {
    margin-left: 2.5rem;
}

.property-related-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 2rem;
    row-gap: .75rem;
}

.property-related-links a {
    display: inline-flex;
}

@media (max-width: 640px) {
    .section-space { padding-top: 3rem; padding-bottom: 3rem; }
    .section-space-compact { padding-top: 2rem; padding-bottom: 2rem; }
    .page-hero-space { padding-top: 1.75rem; padding-bottom: 1.75rem; }
    .page-section-space { padding-top: 2rem; padding-bottom: 2rem; }
    .page-section-compact { padding-top: 1.5rem; padding-bottom: 1.5rem; }
    .page-media-space { padding-top: 1.5rem; padding-bottom: 1rem; }
    .footer-space { padding-top: 2.5rem; padding-bottom: 2.5rem; }
    .property-hero-reference { margin-left: .75rem; }
    .property-related-links { column-gap: 1.25rem; row-gap: .65rem; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f7f8fa; }
::-webkit-scrollbar-thumb { background: #b3bcc9; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #566377; }

/* Native <select> options - light theme readable */
select option,
select optgroup {
    color: #141a28 !important;
    background-color: #ffffff !important;
    padding: 6px 10px;
}
select option:checked,
select option:hover {
    background: #d49520 !important;
    color: #ffffff !important;
}

/* Static Tailwind build additions used by accessible group states. */
.group:hover .group-hover\:text-gold-700 { color: var(--brand-gold-text); }
.group[open] .group-open\:text-gold-700 { color: var(--brand-gold-text); }
.group[open] .group-open\:text-navy-900 { color: #141a28; }

/* Custom select chevron for light wrapper */
.select-wrap-light {
    position: relative;
}
.select-wrap-light::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    transform: translateY(-70%) rotate(45deg);
    border-right: 2px solid #566377;
    border-bottom: 2px solid #566377;
    pointer-events: none;
}

/* Animated underline */
.link-underline { position: relative; }
.link-underline::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 2px;
    background: #d49520;
    transition: width .3s ease;
}
.link-underline:hover::after { width: 100%; }

/* Property card hover */
.property-card {
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.property-card:hover {
    transform: translateY(-2px);
}

/* Map dots */
.region-dot { transition: transform .3s ease; cursor: pointer; }

/* Province explorer property markers */
.property-map-marker-wrap {
    background: transparent;
    border: 0;
}
.property-map-marker {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    background: #d49520;
    border: 3px solid #ffffff;
    border-radius: 50% 50% 50% 8px;
    box-shadow: 0 8px 20px rgba(20, 26, 40, .28);
    transform: rotate(-45deg);
    transition: transform .18s ease, background-color .18s ease;
}
.property-map-marker svg {
    width: 20px;
    height: 20px;
    transform: rotate(45deg);
}
.property-map-marker-wrap:hover .property-map-marker,
.property-map-marker-wrap:focus .property-map-marker {
    background: #141a28;
    transform: rotate(-45deg) scale(1.1);
}
.property-map-marker-wrap.is-selected .property-map-marker {
    background: #141a28;
    box-shadow: 0 0 0 5px rgba(212, 149, 32, .32), 0 10px 24px rgba(20, 26, 40, .34);
    transform: rotate(-45deg) scale(1.12);
}
.province-leaflet-map .leaflet-control-zoom a,
.istanbul-property-map .leaflet-control-zoom a {
    color: #141a28;
}
.province-leaflet-map .leaflet-popup-content-wrapper,
.istanbul-property-map .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(20, 26, 40, .24);
}
.province-leaflet-map .leaflet-popup-content,
.istanbul-property-map .leaflet-popup-content {
    width: 250px !important;
    margin: 0;
}
.province-leaflet-map .leaflet-popup-close-button,
.istanbul-property-map .leaflet-popup-close-button {
    top: 7px;
    right: 7px;
    width: 28px;
    height: 28px;
    color: #141a28;
    background: rgba(255, 255, 255, .94);
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(20, 26, 40, .15);
    z-index: 2;
}
.property-map-popup {
    overflow: hidden;
    color: #141a28;
    font-family: 'Inter', system-ui, sans-serif;
}
.property-map-popup__image {
    display: block;
    width: 100%;
    height: 128px;
    object-fit: cover;
    background: #eef0f4;
}
.property-map-popup__body {
    padding: 14px 15px 15px;
}
.property-map-popup__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    color: #566377;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.property-map-popup__current {
    padding: .2rem .38rem;
    border-radius: 999px;
    background: #fff5dc;
    color: #9a6812;
    font-size: .56rem;
    line-height: 1;
}
.property-map-popup__title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #141a28;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.property-map-popup__price {
    margin: 8px 0 10px;
    color: var(--brand-gold-text);
    font-size: 16px;
    font-weight: 900;
}
.property-map-popup__location {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 5px 8px;
    color: #566377;
    background: #f7f8fa;
    border: 1px solid #eef0f4;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}
.property-map-popup__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 9px 12px;
    color: #ffffff !important;
    background: #141a28;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
    transition: background-color .18s ease;
}
.property-map-popup__link:hover {
    background: #d49520;
    color: #ffffff !important;
}

/* Prose customization */
.prose-custom :where(h1,h2,h3,h4) {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #141a28;
}
.prose-custom :where(a) {
    color: var(--brand-gold-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.prose-custom :where(a:hover) { color: var(--brand-gold-surface); }
.prose-custom :where(p, li) { color: #3d485b; line-height: 1.7; }

/* Properties result toolbar */
.property-results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1.5rem;
}
.property-results-actions { display: flex; min-width: 0; align-items: center; gap: .5rem; }
.property-results-actions .istanbul-property-map--listing { flex: 0 0 auto; }
.property-results-actions .istanbul-map-launch {
    width: auto;
    min-height: 2.75rem;
    gap: .45rem;
    padding: .45rem .7rem;
}
.property-results-actions .istanbul-map-launch__icon { width: 1.8rem; height: 1.8rem; border-radius: .45rem; }
.property-results-actions .istanbul-map-launch__icon svg { width: 1rem; height: 1rem; }
.property-results-actions .istanbul-map-launch__copy small,
.property-results-actions .istanbul-map-launch__arrow { display: none; }
.property-results-actions .istanbul-map-launch__copy strong { font-size: .8rem; }
.property-results-sort { min-width: 0; }
.properties-sort-select {
    width: 10rem;
    min-width: 10rem;
    height: 2.75rem;
    padding: 0 2.5rem 0 1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 639px) {
    .property-results-toolbar { align-items: stretch; flex-direction: column; }
    .property-results-actions { width: 100%; }
    .property-results-sort { margin-left: auto; }
    .property-results-actions .istanbul-map-launch { min-height: 2.75rem; padding-inline: .55rem; }
    .properties-sort-select {
        width: 8.25rem;
        min-width: 8.25rem;
        padding-right: 2rem;
        padding-left: .875rem;
    }
}

@media (max-width: 359px) {
    .property-results-actions .istanbul-map-launch__icon { display: none; }
    .properties-sort-select { width: 7.5rem; min-width: 7.5rem; }
}

/* Editor-driven public page content */
.editorial-page__content {
    display: flow-root;
    width: 100%;
    max-width: 56rem;
    margin-right: auto;
    margin-left: auto;
}
.editorial-page[data-page-slug="about-us"] .editorial-page__content {
    max-width: 68rem;
}

/* Counters */
.counter {
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
}

/* Footer email subscription */
.footer-newsletter {
    display: grid;
    width: 100%;
    max-width: 28rem;
    gap: .45rem;
}
.footer-newsletter > label {
    color: #fff;
    font-size: .75rem;
    font-weight: 750;
}
.footer-newsletter__controls {
    display: flex;
    min-width: 0;
    gap: .5rem;
}
.footer-newsletter__controls input {
    width: 100%;
    min-width: 0;
    height: 2.75rem;
    padding: 0 .85rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: .55rem;
    outline: 0;
    background: rgba(255, 255, 255, .07);
    color: #fff;
    font-size: .82rem;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.footer-newsletter__controls input::placeholder { color: #8c9bb0; }
.footer-newsletter__controls input:focus {
    border-color: #d49520;
    background: rgba(255, 255, 255, .1);
    box-shadow: 0 0 0 3px rgba(212, 149, 32, .18);
}
.footer-newsletter__controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 6.6rem;
    height: 2.75rem;
    padding: 0 1rem;
    border: 1px solid #d49520;
    border-radius: .55rem;
    background: #d49520;
    color: #fff;
    font-size: .78rem;
    font-weight: 750;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease;
}
.footer-newsletter__controls button:hover { border-color: var(--brand-gold-surface); background: var(--brand-gold-surface); }
.footer-newsletter__controls button:disabled { opacity: .62; cursor: wait; }
.footer-newsletter__message {
    min-height: 1rem;
    margin: 0;
    color: #a9b6c8;
    font-size: .7rem;
    line-height: 1.35;
}
.footer-newsletter__message:empty { display: none; }
.footer-newsletter__message.is-success { color: #8fe0aa; }
.footer-newsletter__message.is-error { color: #ffaaa5; }
.footer-newsletter__privacy {
    margin: -.2rem 0 0;
    color: #7f8da2;
    font-size: .64rem;
    line-height: 1.4;
}
.footer-newsletter__privacy a { color: #b6c0ce; text-decoration: underline; text-underline-offset: 2px; }
.footer-newsletter__privacy a:hover { color: #d49520; }
.footer-newsletter__honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 420px) {
    .footer-newsletter__controls { align-items: stretch; flex-direction: column; }
    .footer-newsletter__controls button { width: 100%; }
}

/* Homepage story video */
.home-story {
    position: relative;
    overflow: hidden;
    padding: clamp(5rem, 8vw, 8rem) 0;
    isolation: isolate;
    background: #111827;
    color: #fff;
}
.home-story::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(212,149,32,.13), transparent 30rem),
        linear-gradient(125deg, rgba(255,255,255,.025), transparent 46%);
    content: "";
}
.home-story::after {
    position: absolute;
    top: 0;
    left: 0;
    width: clamp(5rem, 12vw, 10rem);
    height: 3px;
    background: #d49520;
    content: "";
}
.home-story__shell {
    display: grid;
    width: min(100% - 3rem, 80rem);
    margin: 0 auto;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    align-items: center;
    gap: clamp(3rem, 6vw, 6rem);
}
.home-story__copy { max-width: 33rem; }
.home-story__eyebrow {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.35rem;
    color: var(--brand-gold-on-dark);
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
}
.home-story__eyebrow > span { width: 2.6rem; height: 1px; background: currentColor; }
.home-story__eyebrow strong { font-weight: 750; }
.home-story__copy h2 {
    margin: 0;
    color: #fff;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(2.7rem, 4.3vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.03;
}
.home-story__copy p {
    max-width: 31rem;
    margin: 1.5rem 0 0;
    color: #b8c2d2;
    font-size: 1rem;
    line-height: 1.75;
}
.home-story__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 3rem;
    margin-top: 2rem;
    padding: .7rem 1.2rem;
    border: 1px solid #d49520;
    border-radius: 999px;
    background: #d49520;
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .16s ease, border-color .16s ease;
}
.home-story__cta:hover { border-color: var(--brand-gold-surface); background: var(--brand-gold-surface); }
.home-story__cta svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-story__visual {
    position: relative;
    min-width: 0;
    padding: 1rem;
}
.home-story__visual::before,
.home-story__visual::after {
    position: absolute;
    width: clamp(4rem, 8vw, 6.5rem);
    height: clamp(4rem, 8vw, 6.5rem);
    color: rgba(212,149,32,.78);
    content: "";
    pointer-events: none;
}
.home-story__visual::before {
    top: 0;
    left: 0;
    border-top: 1px solid currentColor;
    border-left: 1px solid currentColor;
}
.home-story__visual::after {
    right: 0;
    bottom: 0;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
}
.home-story__frame {
    position: relative;
    z-index: 1;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 10;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: .9rem;
    background: #080d15;
    box-shadow: 0 28px 70px rgba(0,0,0,.34);
}
.home-story__frame video,
.home-story__frame iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: #080d15;
    object-fit: cover;
}
.home-story__frame iframe { border: 0; }
.home-story__frame video[hidden],
.home-story__frame iframe[hidden],
.home-story__video-toggle[hidden] { display: none; }
.home-story__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,9,15,.48), transparent 38%);
    pointer-events: none;
}
.home-story__video-toggle {
    position: absolute;
    z-index: 2;
    left: 1rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 2.4rem;
    padding: .45rem .8rem;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 999px;
    background: rgba(7,12,20,.72);
    color: #fff;
    font: inherit;
    font-size: .72rem;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(8px);
}
.home-story__video-toggle:hover { background: rgba(7,12,20,.9); }
.home-story__video-toggle:focus-visible { outline: 2px solid var(--brand-gold-on-dark); outline-offset: 2px; }
.home-story__video-toggle-icon {
    display: grid;
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    place-items: center;
}
.home-story__video-toggle-icon svg {
    grid-area: 1 / 1;
    width: 1rem;
    height: 1rem;
    fill: currentColor;
    stroke: none;
}
.home-story__video-toggle .home-story__play-icon { display: none; }
.home-story__video-toggle[data-playback="paused"] .home-story__play-icon { display: block; }
.home-story__video-toggle[data-playback="paused"] .home-story__pause-icon { display: none; }

@media (max-width: 767px) {
    .home-story { padding: 4.25rem 0 4.75rem; }
    .home-story__shell {
        display: flex;
        width: min(100% - 2rem, 32rem);
        flex-direction: column;
        align-items: stretch;
        gap: 2.75rem;
    }
    .home-story__copy { max-width: none; }
    .home-story__eyebrow { margin-bottom: 1rem; font-size: .66rem; }
    .home-story__eyebrow > span { width: 2rem; }
    .home-story__copy h2 { font-size: clamp(2.2rem, 11vw, 3.25rem); line-height: 1.04; }
    .home-story__copy p { margin-top: 1.2rem; font-size: .94rem; line-height: 1.65; }
    .home-story__cta { width: 100%; margin-top: 1.6rem; }
    .home-story__visual { width: min(100%, 26rem); margin: 0 auto; padding: .65rem; }
    .home-story__visual::before,
    .home-story__visual::after { width: 3.75rem; height: 3.75rem; }
    .home-story__frame { aspect-ratio: 9 / 16; border-radius: .75rem; }
    .home-story__video-toggle { left: .75rem; bottom: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
    .home-story__cta { transition: none; }
}

/* Homepage testimonials carousel */
.home-testimonials__carousel { position: relative; min-width: 0; }
.home-testimonials__controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    margin-bottom: .85rem;
}
.home-testimonials__arrow {
    display: grid;
    width: 2.55rem;
    height: 2.55rem;
    place-items: center;
    padding: 0;
    border: 1px solid #d9dee8;
    border-radius: 999px;
    background: #fff;
    color: #141a28;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, opacity .18s ease;
}
.home-testimonials__arrow svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-testimonials__arrow:hover:not(:disabled) { border-color: var(--brand-gold-surface); background: var(--brand-gold-surface); color: #fff; }
.home-testimonials__arrow:focus-visible { outline: 2px solid var(--brand-gold-surface); outline-offset: 2px; }
.home-testimonials__arrow:disabled { color: #9aa4b3; cursor: default; opacity: .45; }
.home-testimonials__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    padding: .15rem 0 .5rem;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}
.home-testimonials__viewport::-webkit-scrollbar { display: none; }
.home-testimonials__viewport:focus-visible { outline: 2px solid var(--brand-gold-surface); outline-offset: 4px; border-radius: .75rem; }
.home-testimonials__track { display: flex; align-items: stretch; gap: 1.5rem; min-width: 100%; }
.home-testimonials__slide {
    display: flex;
    min-width: 0;
    flex: 0 0 calc((100% - 3rem) / 3);
    flex-direction: column;
    padding: 1.75rem;
    border: 1px solid #e5e9f0;
    border-radius: .75rem;
    background: #fff;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
.home-testimonials__rating { display: flex; gap: .22rem; margin-bottom: 1rem; color: var(--brand-gold-surface); }
.home-testimonials__rating svg { width: 1rem; height: 1rem; flex: 0 0 auto; fill: currentColor; }
.home-testimonials__quote { flex: 1; margin: 0; color: #344054; font-size: .96rem; line-height: 1.72; }
.home-testimonials__quote p { margin: 0; }
.home-testimonials__author { display: grid; gap: .18rem; margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid #e5e9f0; }
.home-testimonials__author strong { color: #141a28; font-size: .88rem; }
.home-testimonials__author span { color: #667085; font-size: .78rem; line-height: 1.4; }

.property-whatsapp-link { background: #148447; }
.property-whatsapp-link:hover { background: #116c3a; }

.property-specification-matrix {
    overflow: hidden;
    min-width: 0;
    border: 1px solid #e5e9f0;
    border-radius: .7rem;
    background: #f7f8fa;
}
.property-specification-matrix__header,
.property-specification-matrix__row { display: grid; grid-template-columns: repeat(4, minmax(0, .82fr)) minmax(8rem, 1.15fr); align-items: center; }
.property-specification-matrix__header { min-height: 2.1rem; border-bottom: 1px solid #e5e9f0; background: #eef0f4; color: #64748b; }
.property-specification-matrix__header > span { min-width: 0; padding: .35rem .7rem; font-size: .62rem; font-weight: 750; letter-spacing: .035em; text-transform: uppercase; }
.property-specification-matrix__body { display: grid; }
.property-specification-matrix__row { min-height: 3.15rem; transition: background-color .16s ease; }
.property-specification-matrix__row + .property-specification-matrix__row { border-top: 1px solid #e5e9f0; }
.property-specification-matrix__row:hover { background: #f1f3f6; }
.property-specification-matrix__cell { min-width: 0; padding: .55rem .7rem; }
.property-specification-matrix__cell > span { display: none; color: #64748b; font-size: .64rem; font-weight: 700; }
.property-specification-matrix__cell > strong { display: block; overflow-wrap: anywhere; color: #243047; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .9rem; font-weight: 700; line-height: 1.35; }
.property-specification-matrix__cell--price > strong { color: var(--brand-gold-surface); font-size: 1rem; font-weight: 800; }
.property-specification-expand { display: none; }

.istanbul-map-launch {
    display: flex;
    width: min(100%, 31rem);
    min-height: 4rem;
    align-items: center;
    gap: .8rem;
    padding: .65rem .75rem;
    border: 1px solid #d9dee8;
    border-radius: .7rem;
    background: #fff;
    color: #172033;
    text-align: left;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.istanbul-map-launch:hover { border-color: var(--brand-gold-surface); background: #fffaf0; }
.istanbul-map-launch:focus-visible { outline: 2px solid var(--brand-gold-surface); outline-offset: 2px; }
.istanbul-map-launch__icon {
    display: grid;
    width: 2.7rem;
    height: 2.7rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: .55rem;
    background: #fff5dc;
    color: var(--brand-gold-surface);
}
.istanbul-map-launch__icon svg { width: 1.45rem; height: 1.45rem; }
.istanbul-map-launch__copy { display: grid; min-width: 0; gap: .18rem; }
.istanbul-map-launch__copy strong { font-size: .88rem; font-weight: 800; line-height: 1.25; }
.istanbul-map-launch__copy small { overflow: hidden; color: #64748b; font-size: .69rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.istanbul-map-launch__arrow { display: grid; width: 1.75rem; height: 1.75rem; flex: 0 0 auto; margin-left: auto; place-items: center; color: #64748b; }
.istanbul-map-launch__arrow svg { width: 1rem; height: 1rem; }
.istanbul-map-dialog[hidden] { display: none; }
.istanbul-map-dialog {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    padding: clamp(1rem, 3vw, 2.5rem);
    place-items: center;
    opacity: 0;
    transition: opacity .18s ease;
}
.istanbul-map-dialog.is-open { opacity: 1; }
.istanbul-map-dialog__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .72); backdrop-filter: blur(4px); }
.istanbul-map-dialog__panel {
    position: relative;
    display: flex;
    width: min(78rem, 100%);
    height: min(52rem, calc(100dvh - clamp(2rem, 6vw, 5rem)));
    min-height: 28rem;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .32);
    transform: translateY(.75rem) scale(.99);
    transition: transform .18s ease;
}
.istanbul-map-dialog.is-open .istanbul-map-dialog__panel { transform: translateY(0) scale(1); }
.istanbul-map-dialog__panel:focus { outline: 0; }
.istanbul-map-dialog__header {
    display: flex;
    min-height: 4.5rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1.1rem;
    border-bottom: 1px solid #e5e9f0;
}
.istanbul-map-dialog__header h2 { margin: 0; color: #172033; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.15rem; font-weight: 800; }
.istanbul-map-dialog__header span { display: block; margin-top: .15rem; color: #64748b; font-size: .68rem; font-weight: 650; }
.istanbul-map-dialog__close {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #d9dee8;
    border-radius: .55rem;
    background: #fff;
    color: #475569;
}
.istanbul-map-dialog__close:hover { border-color: #b8c0cd; background: #f7f8fa; color: #172033; }
.istanbul-map-dialog__close:focus-visible { outline: 2px solid var(--brand-gold-surface); outline-offset: 2px; }
.istanbul-map-dialog__close svg { width: 1rem; height: 1rem; }
.istanbul-map-dialog .istanbul-property-map__frame { min-height: 0; flex: 1 1 auto; border: 0; border-radius: 0; }
.istanbul-map-dialog .istanbul-property-map__canvas { height: 100%; min-height: 0; }
.istanbul-map-dialog-open,
.istanbul-map-dialog-open body { overflow: hidden; }
.istanbul-property-map { min-width: 0; }
.istanbul-property-map__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.istanbul-property-map__header h2 {
    margin: 0;
    color: #0f172a;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
}
.istanbul-property-map__header p {
    margin: .3rem 0 0;
    color: #64748b;
    font-size: .82rem;
    font-weight: 650;
}
.istanbul-property-map__header > span {
    flex: 0 0 auto;
    color: #64748b;
    font-size: .76rem;
    font-weight: 700;
}
.istanbul-property-map__frame {
    position: relative;
    overflow: hidden;
    border: 1px solid #dfe4ec;
    border-radius: .8rem;
    background: #eef1f5;
}
.istanbul-property-map__canvas {
    width: 100%;
    height: clamp(25rem, 48vw, 35rem);
    background: #eef1f5;
}
.istanbul-property-map--detail {
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid #e5e9f0;
}
.istanbul-property-map--detail .istanbul-property-map__canvas { height: clamp(20rem, 38vw, 27rem); }
.istanbul-property-map__loading,
.istanbul-property-map__error {
    position: absolute;
    inset: 0;
    z-index: 500;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: #eef1f5;
    color: #526076;
    font-size: .82rem;
    font-weight: 700;
    text-align: center;
}
.istanbul-property-map__error { color: #9f3a38; }
.istanbul-property-map__loading[hidden],
.istanbul-property-map__error[hidden] { display: none; }
.istanbul-property-map .leaflet-container { color: #172033; font-family: 'Plus Jakarta Sans', sans-serif; }
.istanbul-property-map .leaflet-control-attribution { font-size: .62rem; }

@media (min-width: 1024px) {
    .home-testimonials__carousel[data-total="1"] .home-testimonials__track,
    .home-testimonials__carousel[data-total="2"] .home-testimonials__track { justify-content: center; }
    .home-testimonials__carousel[data-total="1"] .home-testimonials__slide { flex-basis: min(100%, 28rem); }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .home-testimonials__slide { flex-basis: calc((100% - 1.5rem) / 2); }
}

@media (max-width: 639px) {
    .istanbul-map-dialog { padding: 0; }
    .istanbul-map-dialog__panel { width: 100%; height: 100dvh; min-height: 0; border: 0; border-radius: 0; }
    .istanbul-map-dialog__header { min-height: 4.1rem; padding: .7rem .85rem; }
    .istanbul-map-dialog__header h2 { font-size: 1rem; }
    .istanbul-property-map__header { align-items: center; margin-bottom: .8rem; }
    .istanbul-property-map__header h2 { font-size: 1.3rem; }
    .istanbul-property-map__canvas { height: 22rem; }
    .istanbul-property-map--detail { margin-top: 1.5rem; padding-top: 1.35rem; }
    .istanbul-property-map--detail .istanbul-property-map__canvas { height: 19rem; }
    .property-specification-matrix__header { display: none; }
    .property-specification-matrix__row { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; padding: .35rem 0; }
    .property-specification-matrix__row--additional { display: none; }
    .property-specification-matrix__row--additional.is-expanded { display: grid; }
    .property-specification-matrix__cell { padding: .38rem .55rem; }
    .property-specification-matrix__cell > span { display: block; margin-bottom: .16rem; }
    .property-specification-matrix__cell--price { grid-column: 2 / 4; }
    .property-specification-expand {
        display: flex;
        width: 100%;
        min-height: 2.6rem;
        align-items: center;
        justify-content: center;
        gap: .4rem;
        margin-top: .55rem;
        border: 1px solid #d9dee8;
        border-radius: .5rem;
        background: #fff;
        color: #243047;
        font-size: .72rem;
        font-weight: 750;
    }
    .property-specification-expand:hover { background: #f7f8fa; }
    .property-specification-expand:focus-visible { outline: 2px solid var(--brand-gold-surface); outline-offset: 2px; }
    .property-specification-expand svg { width: .9rem; height: .9rem; transition: transform .18s ease; }
    .property-specification-expand svg.is-expanded { transform: rotate(180deg); }
    .home-testimonials__controls { margin-bottom: .65rem; }
    .home-testimonials__arrow { width: 2.35rem; height: 2.35rem; }
    .home-testimonials__track { gap: .85rem; }
    .home-testimonials__slide { flex-basis: 88%; padding: 1.35rem; }
    .home-testimonials__quote { font-size: .9rem; line-height: 1.65; }
}

@media (prefers-reduced-motion: reduce) {
    .istanbul-map-dialog,
    .istanbul-map-dialog__panel,
    .istanbul-map-launch { transition: none; }
    .home-testimonials__viewport { scroll-behavior: auto; }
    .home-testimonials__arrow { transition: none; }
}

/* Print */
@media print {
    header, footer, .no-print { display: none !important; }
}
