/* Home of Ibiza — main stylesheet */
:root {
  --paper: #faf7f2;
  --sand: #f1eadf;
  --line: #e3d9ca;
  --ink: #1f2a2f;
  --muted: #5f6b70;
  --sea: #1e4d5c;
  --sea-dark: #143843;
  --accent: #b5603b;
  --accent-dark: #974c2c;
  --white: #fff;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(31, 42, 47, .08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--paper); }
img, svg { max-width: 100%; display: block; }
a { color: var(--sea); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { max-width: 780px; }
.eyebrow { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: .8em; display: block; }
.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: var(--radius); border: 1px solid transparent;
  font: 600 .9rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-dark { background: var(--sea); color: #fff; }
.btn-dark:hover { background: var(--sea-dark); color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(250, 247, 242, .94); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo svg { width: 34px; height: 34px; }
.logo span { font-family: var(--serif); font-size: 1.45rem; letter-spacing: .01em; white-space: nowrap; }
.logo em { font-style: italic; color: var(--accent); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; color: var(--ink); font-size: .92rem; letter-spacing: .02em; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.lang { display: flex; gap: 2px; font-size: .8rem; font-weight: 600; letter-spacing: .08em; }
.lang a, .lang span { padding: 4px 7px; text-decoration: none; color: var(--muted); border-radius: 3px; }
.lang span { background: var(--ink); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }
@media (max-width: 1140px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 76px 0 0 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 30px 24px; gap: 24px;
    transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; }
  .nav.open { transform: none; }
  .nav ul { flex-direction: column; gap: 4px; width: 100%; }
  .nav { visibility: hidden; } .nav.open { visibility: visible; }
  .nav ul a { display: block; font-family: var(--serif); font-size: 1.6rem; padding: 6px 0; }
}

/* Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,30,36,.15) 0%, rgba(20,30,36,.15) 40%, rgba(20,30,36,.72) 100%); }
.hero-content { position: relative; z-index: 2; padding: 120px 0 60px; }
.hero h1 { max-width: 820px; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.2); }
.hero p { max-width: 620px; font-size: 1.15rem; opacity: .95; }
.page-hero { position: relative; color: #fff; overflow: hidden; padding: 120px 0 56px; }
.page-hero .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,30,36,.25), rgba(20,30,36,.7)); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; }
.page-hero p { max-width: 680px; opacity: .95; }

/* Search */
.search { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 34px; box-shadow: var(--shadow); max-width: 1000px; }
.search label { display: flex; flex-direction: column; background: #fff; padding: 12px 16px; color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.search select { border: 0; background: transparent; font: 400 1rem var(--sans); color: var(--ink); padding: 4px 0 0; outline: none; appearance: none; cursor: pointer; }
.search .btn { border-radius: 0; height: 100%; }
@media (max-width: 860px) { .search { grid-template-columns: 1fr 1fr; } .search .btn { grid-column: 1 / -1; padding: 16px; } }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-sand { background: var(--sand); }
.section-dark { background: var(--sea-dark); color: #e9eef0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: #e7a483; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head > div { max-width: 640px; }
.section-head p { margin: 0; color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.split-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-media img { aspect-ratio: 4/3; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 34px 0; margin-top: 50px; }
.stats strong { display: block; font-family: var(--serif); font-size: 2.2rem; font-weight: 500; color: var(--sea); line-height: 1.1; }
.stats span { font-size: .88rem; color: var(--muted); }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Cards */
.grid { display: grid; gap: 30px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--line); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card a { text-decoration: none; color: inherit; }
.card-media { position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-media img { transform: scale(1.04); }
.tag { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.94); color: var(--ink); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding: 6px 10px; border-radius: 2px; }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.25rem; margin-bottom: .4em; }
.card-loc { font-size: .82rem; color: var(--muted); letter-spacing: .04em; margin-bottom: 6px; }
.price { font-family: var(--serif); font-size: 1.45rem; color: var(--sea); margin-top: auto; padding-top: 12px; }
.facts { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.facts span { display: inline-flex; align-items: center; gap: 6px; }
.facts svg { width: 17px; height: 17px; opacity: .7; }

.service { padding: 34px 30px; background: #fff; border-radius: var(--radius); box-shadow: 0 1px 0 var(--line); }
.service .ico { width: 46px; height: 46px; color: var(--accent); margin-bottom: 18px; }
.service p { color: var(--muted); margin: 0; }
.section-dark .service { background: rgba(255,255,255,.05); box-shadow: none; border: 1px solid rgba(255,255,255,.1); }
.section-dark .service p { color: #c5d0d4; }

.area-card { position: relative; display: block; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; }
.area-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.area-card:hover img { transform: scale(1.05); }
.area-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(15,25,30,.75)); }
.area-card div { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; }
.area-card h3 { color: #fff; margin: 0; }
.area-card span { font-size: .82rem; opacity: .9; }
.area-card:hover { color: #fff; }

/* Filters */
.filters { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 14px; align-items: end; background: #fff; padding: 20px; border-radius: var(--radius); box-shadow: 0 1px 0 var(--line); margin-bottom: 34px; }
.filters label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 1000px) { .filters { grid-template-columns: 1fr 1fr; } }
.results-count { color: var(--muted); margin-bottom: 18px; font-size: .95rem; }
.no-results { padding: 40px; text-align: center; background: #fff; border-radius: var(--radius); }

/* Forms */
input, select, textarea { font: inherit; font-size: 1rem; color: var(--ink); width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sea); outline-offset: 1px; border-color: var(--sea); }
textarea { min-height: 140px; resize: vertical; }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form label.field { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); font-weight: 400; }
.form .check input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -5000px; }
.form-status { font-size: .95rem; padding: 0; border-radius: var(--radius); }
.form-status.ok { background: #e7f2ea; color: #245a35; padding: 14px 16px; }
.form-status.err { background: #f8e8e3; color: #8a2f17; padding: 14px 16px; }
.contact-box { background: #fff; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Property detail */
.breadcrumbs { font-size: .82rem; color: var(--muted); padding: 22px 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; margin: 22px 0 40px; }
.gallery button { padding: 0; border: 0; background: var(--sand); cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery button:first-child { grid-row: 1 / 3; aspect-ratio: 3/2; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; } .gallery button:first-child { grid-column: 1 / -1; grid-row: auto; } }
.prop-layout { display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: start; }
@media (max-width: 980px) { .prop-layout { grid-template-columns: 1fr; } }
.prop-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-end; }
.prop-head .price { font-size: 2rem; padding: 0; }
.keyfacts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); margin: 28px 0 36px; background: #fff; }
.keyfacts div { padding: 18px; border-right: 1px solid var(--line); }
.keyfacts div:last-child { border: 0; }
.keyfacts strong { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.keyfacts span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 600px) { .keyfacts { grid-template-columns: 1fr 1fr; } .keyfacts div:nth-child(2) { border-right: 0; } .keyfacts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.features { columns: 2; gap: 30px; list-style: none; padding: 0; margin: 0 0 30px; }
.features li { padding: 8px 0 8px 26px; position: relative; break-inside: avoid; border-bottom: 1px solid var(--line); }
.features li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
@media (max-width: 600px) { .features { columns: 1; } }
.sticky { position: sticky; top: 100px; }
.ref { font-size: .8rem; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }

.lightbox { position: fixed; inset: 0; background: rgba(12,18,22,.92); display: none; align-items: center; justify-content: center; z-index: 200; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; width: auto; max-width: 100%; }
.lightbox button { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }

/* Prose / FAQ */
.prose h2 { margin-top: 1.6em; font-size: 1.8rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.25rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 1.5rem; color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 14px 0 0; color: var(--muted); }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 22px; }
.steps li { counter-increment: step; position: relative; padding-left: 64px; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -4px; font-family: var(--serif); font-size: 2rem; color: var(--accent); }

/* CTA */
.cta { background: var(--sea); color: #fff; border-radius: var(--radius); padding: clamp(36px, 6vw, 70px); display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .2em; }
.cta p { margin: 0; color: #d6e1e4; max-width: 560px; }

/* Footer */
.site-footer { background: #17252b; color: #b9c5c9; padding: 70px 0 30px; font-size: .92rem; }
.site-footer a { color: #e3eaec; text-decoration: none; }
.site-footer a:hover { color: #e7a483; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-family: var(--sans); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; font-weight: 600; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .82rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.wa-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); z-index: 40; }
.wa-float svg { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .contact-box, .wa-float { display: none; } }
.form label.field input, .form label.field select, .form label.field textarea { font-weight: 400; }
.nav a.btn, .nav a.btn:hover { color: #fff; }
