:root { --surface: #FAFAFA; --ink: #1a1a1a; --line: rgba(26,26,26,.12); }
html, body { background: var(--surface); color: var(--ink); font-family: 'Montserrat', sans-serif; }
body, button, input, select, textarea { font-family: 'Montserrat', sans-serif; }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 400; overflow-wrap: break-word; }
h1 { font-size: clamp(2.8rem, 7.6vw, 7rem); line-height: 1.08; letter-spacing: -.045em; }
h2 { letter-spacing: -.035em; line-height: 1.18; }
section, footer { background-color: var(--surface); }
footer.bg-offWhite { background-color: #FAFAFA; }
footer.bg-offWhite h4 { font-size: 1.35rem; }
footer.bg-offWhite .text-sm { font-size: 1rem; line-height: 1.75; }
footer.bg-offWhite .text-xs { font-size: .85rem; }
footer.bg-offWhite ul.space-y-2 > li, footer.bg-offWhite ul.space-y-3 > li { padding: .1rem 0; }
header.header-glass { background: rgba(250,250,250,.95); box-shadow: 0 1px 18px rgba(26,26,26,.07); border-bottom-color: rgba(26,26,26,.08); }
.eyebrow { color: #9b7b40; font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.detail-title { font-size: clamp(2.6rem, 6.5vw, 6rem); max-width: 1000px; }
.detail-hero { height: clamp(380px, 54vw, 700px); position: relative; z-index: 5; will-change: width, height, margin; }
/* the section right after the hero must be able to visually cover it once
   the scroll-grow pin releases and the hero snaps back to its normal size -
   otherwise that snap is briefly visible. Stacking it above the hero (with
   its own opaque background) hides the reset regardless of exact timing. */
section:has(.detail-hero) + section { position: relative; z-index: 6; }
.detail-img-wrap { position: relative; z-index: 1; height: clamp(400px, 44vw, 620px); }
.detail-img-main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-img-accent {
    position: absolute; left: -1.5rem; bottom: -2rem; z-index: 2;
    width: 54%; height: 58%; object-fit: cover;
    border: 7px solid var(--surface);
    box-shadow: 0 30px 55px -18px rgba(0,0,0,.35);
}
.feature-list { display: grid; gap: .8rem; padding-left: 1.1rem; list-style: disc; color: #525252; line-height: 1.7; }
.spec-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.spec-grid > div {
    position: relative; padding: 1.6rem 1.5rem;
    background: #fff; border: 1px solid var(--line); border-radius: 1rem;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.spec-grid > div:hover {
    border-color: #9b7b40; transform: translateY(-3px);
    box-shadow: 0 16px 30px -14px rgba(26,26,26,.18);
}
.spec-grid > div::before {
    content: ""; position: absolute; left: 1.5rem; top: 0;
    width: 1.75rem; height: 3px; background: #9b7b40; border-radius: 2px;
}
.spec-grid dt { font-size: .95rem; color: #666; margin: 1rem 0 .6rem; letter-spacing: .03em; }
.spec-grid dd { font-size: 1.85rem; font-weight: 500; font-family: 'Playfair Display', serif; }
.spec-layout { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 3rem; align-items: stretch; }
.spec-layout-text { grid-column: span 7 / span 7; order: 2; }
.spec-layout-photo { grid-column: span 5 / span 5; order: 1; }
.spec-img-wrap { position: relative; height: 100%; min-height: 420px; }
.spec-img-main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 1.25rem; }
.spec-img-accent {
    position: absolute; left: -1.5rem; bottom: -2rem; z-index: 2;
    width: 54%; height: 58%; object-fit: cover; border-radius: 1rem;
    border: 7px solid var(--surface); box-shadow: 0 30px 55px -18px rgba(0,0,0,.35);
}
.spec-feature-list {
    position: relative; padding: 0; margin: 0; display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 2.75rem;
}
.spec-feature-list::before {
    content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
    background: var(--line); transform: translateX(-50%);
}
.spec-feature-item {
    list-style: none; padding: .85rem 0; border-bottom: 1px solid var(--line);
}
.spec-feature-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.spec-feature-label { font-size: 1rem; color: #444; }
.spec-feature-value { font-size: 1.15rem; font-weight: 500; font-family: 'Playfair Display', serif; white-space: nowrap; }
@media (max-width: 1023px) {
    .spec-layout-text { grid-column: span 12 / span 12; }
    .spec-layout-photo { grid-column: span 12 / span 12; order: -1; }
    .spec-img-wrap { min-height: 300px; }
}
@media (max-width: 640px) {
    .spec-img-accent { left: -.75rem; bottom: -1.25rem; width: 58%; height: 55%; border-width: 5px; }
}
.amenity-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 2rem; }
.amenity-grid li { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; line-height: 1.6; }
.distance-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: 2rem; }
.distance-grid li { padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .85rem; line-height: 1.4; color: #444; }
.location-map { position: relative; width: 100%; height: 440px; margin-bottom: .75rem; }
.location-map-image-wrap { position: absolute; inset: 0; border-radius: 1.25rem; overflow: hidden; border: 1px solid var(--line); }
.location-map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15) contrast(1.03); }
.map-hotspot { position: absolute; transform: translate(-50%,-50%); background: none; border: none; padding: 0; cursor: pointer; z-index: 2; }
.map-hotspot:hover, .map-hotspot.is-active, .map-hotspot:focus-visible { z-index: 1000; }
.map-hotspot-dot {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 2.35rem; height: 2.35rem; border-radius: 50%; background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.28);
}
.map-hotspot-dot img { width: 1.35rem; height: 1.35rem; object-fit: contain; }
.map-hotspot-dot::before {
    content: ""; position: absolute; inset: -6px; border-radius: 50%;
    border: 2px solid #9b7b40; opacity: .55; animation: mapPulse 1.8s ease-out infinite;
}
.map-hotspot-you .map-hotspot-dot { background: #9b7b40; }
.map-hotspot-you .map-hotspot-dot img { filter: brightness(0) invert(1); }
@keyframes mapPulse { 0% { transform: scale(.7); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
.map-hotspot-card {
    position: absolute; bottom: calc(100% + .85rem); left: 50%;
    transform: translateX(-50%) translateY(6px);
    width: 300px; background: #fff; border-radius: 1.1rem; overflow: hidden;
    box-shadow: 0 18px 34px -12px rgba(0,0,0,.2);
    opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
    text-align: center; font-family: 'Montserrat', sans-serif;
}
.map-hotspot:hover .map-hotspot-card,
.map-hotspot:focus-visible .map-hotspot-card,
.map-hotspot.is-active .map-hotspot-card {
    opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto;
}
.map-hotspot-card-body { position: relative; padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; align-items: center; }
.map-hotspot-photo { display: block; width: 100%; height: 130px; object-fit: cover; }
.map-hotspot-crown {
    display: flex; align-items: center; justify-content: center;
    width: 2.4rem; height: 2.4rem; border-radius: 50%;
    background: rgba(155,123,64,.1); margin-bottom: .7rem;
}
.map-hotspot-crown img { width: 1.25rem; height: 1.25rem; object-fit: contain; }
.map-hotspot-title { display: block; font-weight: 700; font-size: 1.05rem; color: var(--ink); line-height: 1.3; }
.map-hotspot-location { display: block; font-size: .72rem; color: #9ca3af; margin-top: .2rem; }
.map-hotspot-desc { display: block; font-size: .76rem; color: #6b7280; line-height: 1.5; margin-top: .6rem; }
.map-hotspot-features {
    display: flex; justify-content: center; flex-wrap: wrap;
    margin-top: .85rem; padding-top: .8rem; border-top: 1px solid var(--line); width: 100%;
}
.map-hotspot-feature {
    display: flex; flex-direction: column; align-items: center; min-width: 0; flex: 1;
    padding: 0 .4rem; border-left: 1px solid var(--line);
}
.map-hotspot-feature:first-child { border-left: none; }
.map-hotspot-feature-value {
    font-weight: 600; font-size: .76rem; color: var(--ink); line-height: 1.2;
    white-space: normal; overflow-wrap: break-word; word-break: break-word;
    -webkit-hyphens: auto; hyphens: auto;
}
.map-hotspot-feature-label { font-size: .6rem; color: #9ca3af; margin-top: .2rem; white-space: normal; }
@media (max-width: 640px) {
    .location-map { height: 320px; }
    .map-hotspot-card { width: 210px; }
    .map-hotspot-photo { height: 100px; }
}
.floor-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; }
.floor-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 3rem; }
.floor-item { text-align: center; }
.floor-icon { display: inline-flex; align-items: center; justify-content: center; color: #9b7b40; margin-bottom: 1.25rem; }
.floor-icon svg { width: 3rem; height: 3rem; }
.floor-item h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.floor-item p { font-size: .9rem; }
.why-belek-interactive { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.why-belek-list { display: flex; flex-direction: column; }
.why-belek-item {
    display: block; width: 100%; text-align: left; background: none; border: none;
    border-bottom: 1px solid var(--line); padding: 1.75rem 0; cursor: pointer;
}
.why-belek-item-top { display: flex; align-items: center; gap: 1.25rem; }
.why-belek-num { font-family: 'Playfair Display', serif; font-size: 2.75rem; color: rgba(155,123,64,.4); line-height: 1; transition: color .25s ease; }
.why-belek-item-title { flex: 1; font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--ink); transition: color .25s ease; }
.why-belek-chevron { width: 1.15rem; height: 1.15rem; color: #9ca3af; flex-shrink: 0; transition: transform .3s ease, color .25s ease; }
.why-belek-item-desc {
    display: block; max-height: 0; opacity: 0; overflow: hidden;
    transition: max-height .4s ease, opacity .3s ease, margin-top .4s ease;
}
.why-belek-item-desc-inner {
    display: block; color: #6b7280; font-family: 'Montserrat', sans-serif; font-weight: 300;
    line-height: 1.7; padding-right: 2.5rem;
}
.why-belek-item.is-active { border-bottom-color: transparent; }
.why-belek-item.is-active .why-belek-num,
.why-belek-item.is-active .why-belek-item-title { color: #9b7b40; }
.why-belek-item.is-active .why-belek-chevron { transform: rotate(90deg); color: #9b7b40; }
.why-belek-item.is-active .why-belek-item-desc { max-height: 6rem; opacity: 1; margin-top: .85rem; }
.why-belek-visual { position: relative; height: 420px; border-radius: 1.5rem; overflow: hidden; }
.why-belek-visual-img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: translateX(3%); transition: opacity .5s ease, transform .5s ease;
}
.why-belek-visual-img.is-active { opacity: 1; transform: translateX(0); }
.why-belek-credit {
    position: absolute; right: .75rem; bottom: .6rem; z-index: 2;
    font-size: .65rem; color: rgba(255,255,255,.85); background: rgba(0,0,0,.35);
    padding: .2rem .55rem; border-radius: 999px;
}
.why-belek-credit:empty { display: none; }
.final-cta { background: radial-gradient(ellipse at center, #ffffff 0%, #F8F6F1 100%); }
.final-cta-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
    padding: 1.05rem 2.25rem; border-radius: 999px; min-width: 240px;
    background: rgba(255,255,255,.55); backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255,255,255,.7); box-shadow: 0 10px 30px rgba(26,26,26,.08);
    color: var(--ink); font-family: 'Montserrat', sans-serif; font-size: .9rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .1em;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.final-cta-btn svg { width: 1.35rem; height: 1.35rem; flex-shrink: 0; }
.final-cta-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(26,26,26,.12); background: rgba(255,255,255,.8); }
.lang-switch { display: flex; align-items: center; font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: .04em; margin-right: 1.25rem; }
.lang-switch-link { color: #9ca3af; padding: .25rem .35rem; transition: color .2s ease; }
.lang-switch-link:not(:last-child) { border-right: 1px solid var(--line); }
.lang-switch-link.is-active { color: var(--ink); }
.lang-switch-link:hover { color: #9b7b40; }
@media (max-width: 640px) { .lang-switch { font-size: .78rem; } .lang-switch-link { padding: .2rem .25rem; } }
@media (max-width: 1023px) {
    .why-belek-interactive { grid-template-columns: 1fr; gap: 2rem; }
    .why-belek-visual { height: 260px; order: -1; }
}
.photo-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.2rem; }
.gallery-item { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: .75rem; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.035); }
#gallery-dialog { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; padding: 0; border: none; border-radius: 0; background: #ffffff; color: var(--ink); }
#gallery-dialog[open] { display: flex; align-items: center; justify-content: center; }
#gallery-dialog::backdrop { background: rgba(250,250,250,.96); }
#gallery-image { max-width: min(90vw, 1400px); max-height: 86dvh; width: auto; height: auto; object-fit: contain; margin: auto; border-radius: .5rem; box-shadow: 0 20px 60px -20px rgba(0,0,0,.25); }
.gallery-close-btn, .gallery-nav-btn {
    position: fixed; display: flex; align-items: center; justify-content: center;
    color: var(--ink); transition: opacity .2s ease, transform .2s ease; opacity: .7;
}
.gallery-close-btn:hover, .gallery-nav-btn:hover { opacity: 1; }
.gallery-close-btn { top: 1.75rem; right: 1.75rem; width: 2.5rem; height: 2.5rem; }
.gallery-close-btn:hover { transform: rotate(90deg); }
.gallery-close-btn svg { width: 2.5rem; height: 2.5rem; }
.gallery-nav-btn { top: 50%; transform: translateY(-50%); width: 3.5rem; height: 3.5rem; }
.gallery-nav-btn:hover { transform: translateY(-50%) scale(1.15); }
.gallery-nav-prev { left: 1.75rem; }
.gallery-nav-next { right: 1.75rem; }
.gallery-nav-btn svg { width: 3.5rem; height: 3.5rem; }
.gallery-counter-badge {
    position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    font-size: .75rem; letter-spacing: .08em; color: rgba(26,26,26,.6);
    background: rgba(26,26,26,.06); padding: .45rem 1rem; border-radius: 999px;
}
@media (max-width: 640px) {
    .gallery-close-btn { top: 1rem; right: 1rem; width: 1.9rem; height: 1.9rem; }
    .gallery-nav-btn { width: 2.4rem; height: 2.4rem; }
    .gallery-nav-prev { left: .6rem; }
    .gallery-nav-next { right: .6rem; }
    .gallery-close-btn svg { width: 1.9rem; height: 1.9rem; }
    .gallery-nav-btn svg { width: 2.4rem; height: 2.4rem; }
}
.sales-button { display: inline-flex; align-items: center; justify-content: center; padding: 1rem 1.5rem; border: 1px solid #9b7b40; color: var(--ink); font-size: .75rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; border-radius: .4rem; flex-shrink: 0; text-align: center; transition: background .2s; }
.sales-button:hover { background: #eae8e2; }
.sales-button.secondary { border-color: var(--line); }
.collection-rows { display: grid; gap: 1.5rem; }
.villa-panel-row { display: flex; gap: 1.5rem; min-height: 620px; }
.villa-panel-row > .architectural-panel { min-width: 0; }
.villa-panel-row:last-child:has(> :only-child) { max-width: calc((100% - 3rem)/3); }
.villa-panel-row h3 { font-size: 1.8rem; }
.villa-panel-row .line-clamp-2 { min-height: 2.5rem; }
.map-link { position: absolute; top: 1.25rem; right: 1.25rem; padding: .75rem 1rem; border: 1px solid var(--line); background: var(--surface); border-radius: .4rem; font-size: .75rem; }
#full-menu { background: var(--surface); color: var(--ink); overflow-y: auto; }
#full-menu > div { height: auto; }
#full-menu .grid { gap: .65rem; }
#full-menu .menu-item { min-width: 0; }
#full-menu .menu-item span { line-height: 1.3; }
.villa-menu-wrap { max-width: 780px; }
.villa-contact-panel { min-height: min(60vh, 520px); }
#full-menu > .villa-menu-col-right { height: 100%; }
.villa-contact-group { transform: translateY(-24px); }
.villa-contact-links-bottom {
    position: absolute; left: 0; right: 0; bottom: 8.75rem; color: #b89b5e;
}
.villa-contact-links-bottom a { color: inherit; }
.villa-menu-divider { position: relative; }
@media (min-width: 1024px) {
    .villa-menu-divider::before {
        content: ''; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px; background: rgba(26,26,26,.1);
    }
}
@media (max-width: 900px) {
    .villa-contact-group { transform: translateY(-10px); }
    .villa-contact-links-bottom { bottom: 2rem; }
}
.villa-menu-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.villa-menu-bg-img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.15); filter: blur(22px) saturate(1.05);
    transition: opacity .8s ease;
}
.villa-menu-bg-img.is-active { opacity: .7; }
.villa-menu-bg-scrim { position: absolute; inset: 0; background: rgba(250,250,250,.4); }
.villa-menu-col { position: relative; z-index: 1; }
.villa-menu-content { position: relative; z-index: 1; }
.villa-grid-3 {
    display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr);
    gap: .6rem; aspect-ratio: 4/3;
}
.villa-grid-tile {
    position: relative; display: block; overflow: hidden; border-radius: 14px;
    text-decoration: none; box-shadow: 0 10px 22px rgba(26,26,26,.14);
}
.villa-grid-tile img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .7s cubic-bezier(.22,1,.36,1);
}
.villa-grid-tile:hover img, .villa-grid-tile:focus-visible img { transform: scale(1.1); }
.villa-grid-overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
    padding: .7rem .55rem; text-align: center; align-items: center;
    background: linear-gradient(180deg, rgba(20,20,20,0) 30%, rgba(20,20,20,.84) 100%);
    opacity: 0; transition: opacity .5s cubic-bezier(.22,1,.36,1);
}
.villa-grid-tile:hover .villa-grid-overlay, .villa-grid-tile:focus-visible .villa-grid-overlay { opacity: 1; }
.villa-grid-name {
    display: block; color: #fff; font-family: 'Playfair Display', serif; font-size: 1.15rem; line-height: 1.15;
    margin-bottom: .3rem; transform: translateY(8px); transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.villa-grid-tile:hover .villa-grid-name, .villa-grid-tile:focus-visible .villa-grid-name { transform: translateY(0); }
.villa-grid-specs {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .28rem;
    color: rgba(255,255,255,.88); font-family: 'Montserrat', sans-serif; font-size: .5rem; font-weight: 600;
    letter-spacing: .03em; text-transform: uppercase;
}
.villa-grid-specs span:not(:last-child)::after { content: '·'; margin-left: .28rem; opacity: .55; }

/* Bento placement — fixed pattern for exactly 10 tiles: big left, 2x2 small right, mirrored below */
.villa-grid-tile:nth-child(1)  { grid-column: 1 / 3; grid-row: 1 / 3; }
.villa-grid-tile:nth-child(2)  { grid-column: 3 / 4; grid-row: 1 / 2; }
.villa-grid-tile:nth-child(3)  { grid-column: 4 / 5; grid-row: 1 / 2; }
.villa-grid-tile:nth-child(4)  { grid-column: 3 / 4; grid-row: 2 / 3; }
.villa-grid-tile:nth-child(5)  { grid-column: 4 / 5; grid-row: 2 / 3; }
.villa-grid-tile:nth-child(6)  { grid-column: 1 / 2; grid-row: 3 / 4; }
.villa-grid-tile:nth-child(7)  { grid-column: 2 / 3; grid-row: 3 / 4; }
.villa-grid-tile:nth-child(8)  { grid-column: 1 / 2; grid-row: 4 / 5; }
.villa-grid-tile:nth-child(9)  { grid-column: 2 / 3; grid-row: 4 / 5; }
.villa-grid-tile:nth-child(10) { grid-column: 3 / 5; grid-row: 3 / 5; }
.villa-grid-tile:nth-child(1) .villa-grid-name, .villa-grid-tile:nth-child(10) .villa-grid-name { font-size: 1.7rem; margin-bottom: .4rem; }
.villa-grid-tile:nth-child(1) .villa-grid-specs, .villa-grid-tile:nth-child(10) .villa-grid-specs { font-size: .62rem; gap: .35rem; }
.villa-grid-tile:nth-child(1) .villa-grid-overlay, .villa-grid-tile:nth-child(10) .villa-grid-overlay { padding: 1.1rem; }

@media (max-width: 700px) {
    .villa-grid-3 { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; aspect-ratio: auto; gap: .6rem; }
    .villa-grid-tile { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 1/1; }
    .villa-grid-tile:nth-child(1) .villa-grid-name, .villa-grid-tile:nth-child(10) .villa-grid-name { font-size: .95rem; margin-bottom: .25rem; }
    .villa-grid-tile:nth-child(1) .villa-grid-specs, .villa-grid-tile:nth-child(10) .villa-grid-specs { font-size: .5rem; }
    .villa-grid-tile:nth-child(1) .villa-grid-overlay, .villa-grid-tile:nth-child(10) .villa-grid-overlay { padding: .7rem .55rem; }
}
header .logo img { width: auto; max-width: 210px; }
footer img { max-width: 240px; width: auto; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #9b7b40; outline-offset: 4px; }
@media (max-width: 1023px) {
 .villa-panel-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); min-height: 0; }
 .villa-panel-row > .architectural-panel { min-height: 560px; }
 .villa-panel-row:last-child:has(> :only-child) { max-width: none; }
 .floor-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .floor-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2.5rem; }
 #full-menu { justify-content: flex-start; padding-top: 4rem; }
 #full-menu > div { flex-shrink: 0; width: 100%; overflow: visible; }
}
@media (max-width: 640px) {
 h1 { font-size: clamp(2.5rem,11vw,4rem); }
 h2 { font-size: 2.05rem !important; }
 .detail-title { font-size: 2.65rem; }
 .detail-hero { height: 460px; }
 .detail-img-wrap { height: 320px; }
 .detail-img-accent { left: -.75rem; bottom: -1.25rem; width: 58%; height: 55%; border-width: 5px; }
 .spec-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
 .spec-grid > div { padding: 1.1rem 1.15rem; }
 .spec-grid dt { font-size: .85rem; }
 .spec-grid dd { font-size: 1.45rem; }
 .spec-feature-list { grid-template-columns: 1fr; }
 .spec-feature-list::before { display: none; }
 .amenity-grid, .distance-grid, .floor-grid { grid-template-columns: 1fr; }
 .floor-list { grid-template-columns: 1fr; gap: 2rem; }
 .photo-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
 .villa-panel-row { grid-template-columns: 1fr; }
 .villa-panel-row > .architectural-panel { min-height: 520px; }
 #full-menu .menu-item span { font-size: .8rem; }
 header .logo img { max-width: 165px; }
 .sales-button { width: 100%; }
}
.villa-nav-link { position: relative; padding: .5rem 0; }
.villa-nav-preview {
    position: absolute; bottom: 100%; width: 160px; height: 110px; margin-bottom: .75rem;
    border-radius: .6rem; background-size: cover; background-position: center;
    opacity: 0; transform: scale(.92) translateY(6px); pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    box-shadow: 0 12px 30px rgba(0,0,0,.18); left: 0;
}
.villa-nav-preview-right { left: auto; right: 0; }
.villa-nav-link:hover .villa-nav-preview, .villa-nav-link:focus-visible .villa-nav-preview {
    opacity: 1; transform: scale(1.08) translateY(0);
}
.villa-side-cta {
    position: fixed; right: 0; top: 55%; z-index: 40;
    transform: translateY(-50%) translateX(100%);
    opacity: 0; pointer-events: none;
    transition: transform 1.1s cubic-bezier(.45,0,.2,1), opacity .8s ease .1s;
}
.villa-side-cta.is-visible {
    opacity: 1; pointer-events: auto;
    transform: translateY(-50%) translateX(0);
    transition: transform .6s cubic-bezier(.16,1,.3,1), opacity .35s ease;
}
.villa-side-cta-link {
    display: flex; align-items: center; gap: .85rem;
    background: rgba(244,244,242,.62);
    backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255,255,255,.45);
    border-radius: .9rem 0 0 .9rem;
    padding: 1rem 1.35rem; max-width: 280px;
    color: var(--ink); text-decoration: none;
    box-shadow: -10px 10px 34px rgba(0,0,0,.14);
}
.villa-side-cta-icon {
    flex-shrink: 0; width: 2.35rem; height: 2.35rem; border-radius: 50%;
    background: #25D366; display: flex; align-items: center; justify-content: center;
}
.villa-side-cta-icon svg { width: 1.15rem; height: 1.15rem; fill: #fff; }
.villa-side-cta-text { font-size: .8rem; line-height: 1.4; font-weight: 500; }
@media (max-width: 640px) {
 .villa-nav-preview { display: none; }
 .villa-side-cta-link { max-width: 240px; padding: .85rem 1.1rem; }
 .villa-side-cta-text { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
