/* ===== RE&MAR GROUP — theme ===== */
:root {
  --emerald-900: #061a17;
  --emerald-800: #0a2622;
  --emerald-700: #0e332d;
  --emerald-600: #14463d;
  --gold: #c9a24b;
  --gold-light: #e3c477;
  --gold-dark: #a9842f;
  --cream: #f4efe4;
  --ink: #0c0f0e;
  --text: #e9ecea;
  --text-muted: #a9b6b1;
  --line: rgba(201, 162, 75, 0.22);
  --card-bg: #0f2e29;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --maxw: 1180px;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--emerald-800);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; color: #fff; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 760px; }
.section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section-head { margin-bottom: 2rem; }
.section-head h1, .section-head h2 { margin-bottom: .35rem; }
.section-head p { color: var(--text-muted); margin: 0; }
.lead { font-size: 1.15rem; color: var(--cream); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink);
  padding: .6rem 1rem; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }

/* ===== buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: .2s ease; white-space: nowrap;
  font-family: var(--font-body);
}
.btn svg { flex: none; }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); color: #1a1407; }
.btn-gold:hover { filter: brightness(1.08); color: #1a1407; }
.btn-outline { border-color: var(--gold); color: var(--gold-light); background: transparent; }
.btn-outline:hover { background: rgba(201,162,75,.12); color: var(--gold-light); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-call { background: rgba(201,162,75,.12); border-color: var(--gold); color: var(--gold-light); }
.btn-call:hover { background: rgba(201,162,75,.2); color: var(--gold-light); }
.btn-block { width: 100%; }

/* ===== header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 26, 23, 0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: flex; align-items: center; flex: none; }
.brand-logo { height: 44px; width: auto; }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.primary-nav ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
.primary-nav a { color: var(--text); font-weight: 500; font-size: .95rem; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--gold-light); }
.header-call { font-size: .9rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--gold-light); transition: .25s; }

/* lang switch */
.lang-switch { position: relative; }
.lang-current { background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: .5rem .9rem; cursor: pointer; font: inherit; font-size: .9rem; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; background: var(--emerald-700);
  border: 1px solid var(--line); border-radius: 12px; padding: .4rem; display: none; box-shadow: var(--shadow);
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu a { display: block; padding: .55rem .8rem; border-radius: 8px; color: var(--text); font-size: .92rem; }
.lang-menu a:hover, .lang-menu a[aria-current="true"] { background: rgba(201,162,75,.14); color: var(--gold-light); }

/* ===== hero ===== */
.hero { position: relative; min-height: clamp(460px, 70vh, 640px); display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(6,26,23,.92) 0%, rgba(6,26,23,.7) 45%, rgba(6,26,23,.35) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 680px; padding-block: 3rem; }
.hero-kicker { color: var(--gold-light); letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; font-weight: 600; margin-bottom: .8rem; }
.hero h1 { margin-bottom: 1rem; }
.hero-sub { font-size: 1.15rem; color: var(--cream); margin-bottom: 1.8rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ===== services ===== */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.service-card {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; color: var(--text); transition: .25s; display: block;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--gold); color: var(--text); }
.service-icon { color: var(--gold-light); display: inline-flex; margin-bottom: .8rem; }
.service-card h3 { color: #fff; }
.service-card p { color: var(--text-muted); margin: 0; font-size: .92rem; }

.services-list { display: grid; gap: 1rem; margin-bottom: 2rem; }
.service-row { display: flex; gap: 1.2rem; align-items: flex-start; background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.service-row h2 { margin-bottom: .3rem; }
.service-row p { color: var(--text-muted); margin: 0; }

/* ===== section heads with link ===== */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.link-more { color: var(--gold-light); font-weight: 600; }

/* ===== cards grid ===== */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .25s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--emerald-700); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 12px; font-size: .72rem; font-weight: 600; padding: .3rem .65rem; border-radius: 999px; backdrop-filter: blur(4px); }
.badge-deal { left: 12px; background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); color: #1a1407; }
.badge-type { right: 12px; background: rgba(6,26,23,.8); color: var(--cream); border: 1px solid var(--line); }
.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-price { font-family: var(--font-head); font-size: 1.45rem; color: var(--gold-light); font-weight: 700; }
.card-title { font-size: 1.1rem; margin: 0; }
.card-title a { color: #fff; }
.card-title a:hover { color: var(--gold-light); }
.card-loc { color: var(--text-muted); font-size: .9rem; display: flex; align-items: center; gap: .35rem; margin: 0; }
.card-loc svg { color: var(--gold); }
.card-meta { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--text-muted); font-size: .88rem; margin-top: .2rem; }
.card-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.card-meta svg { color: var(--gold); }
.card-link { margin-top: auto; padding-top: .5rem; color: var(--gold-light); font-weight: 600; font-size: .92rem; }

/* ===== markets ===== */
.markets-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.market-card { background: linear-gradient(135deg, var(--emerald-700), var(--emerald-600)); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.market-card h3 { font-size: 1.5rem; }
.market-card p { color: var(--cream); margin: 0; }

/* ===== cta section ===== */
.cta-section { background: linear-gradient(135deg, var(--emerald-900), var(--emerald-700)); border-block: 1px solid var(--line); text-align: center; }
.cta-inner { max-width: 720px; }
.cta-inner h2 { margin-bottom: .3rem; }
.cta-inner > p { color: var(--text-muted); margin-bottom: 1.5rem; }
.contact-cta { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; }

/* ===== breadcrumb ===== */
.breadcrumb { padding-top: 1.1rem; }
.breadcrumb ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; font-size: .85rem; color: var(--text-muted); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .5rem; color: var(--line); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb li[aria-current] { color: var(--gold-light); }

/* ===== filters ===== */
.filters { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; align-items: end; background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; margin-bottom: 1.2rem; }
.filter-field { display: flex; flex-direction: column; gap: .35rem; }
.filter-field label { font-size: .8rem; color: var(--text-muted); }
.filters select, .filters input, .lead-form input, .lead-form textarea {
  background: var(--emerald-800); border: 1px solid var(--line); color: var(--text);
  border-radius: var(--radius-sm); padding: .6rem .7rem; font: inherit; font-size: .9rem; width: 100%;
}
.filters select:focus, .filters input:focus { border-color: var(--gold); outline: none; }
.btn-reset { align-self: end; }
.results-count { color: var(--text-muted); font-size: .9rem; margin-bottom: 1rem; }
.results-count span { color: var(--gold-light); font-weight: 600; }
.no-results { text-align: center; color: var(--text-muted); padding: 3rem 1rem; }
.filter-item.hide { display: none; }

/* ===== listing detail ===== */
.listing-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.listing-badges { display: flex; gap: .5rem; margin: 0 0 .6rem; }
.listing-badges .badge { position: static; }
.listing-head h1 { margin: 0 0 .4rem; }
.listing-loc { color: var(--text-muted); display: flex; align-items: center; gap: .4rem; margin: 0; }
.listing-loc svg { color: var(--gold); }
.listing-price { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--gold-light); font-weight: 700; white-space: nowrap; }
.listing-grid { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.listing-main { min-width: 0; }
.listing-block { margin-top: 2rem; }
.listing-desc { color: var(--cream); }

/* gallery */
.gallery-main { aspect-ratio: 10 / 7; border-radius: var(--radius); overflow: hidden; background: var(--emerald-700); border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .7rem; flex-wrap: wrap; }
.thumb { width: 90px; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--emerald-700); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--gold); }

/* specs */
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.spec { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1rem; display: flex; flex-direction: column; gap: .2rem; }
.spec svg { color: var(--gold); }
.spec span { font-size: .78rem; color: var(--text-muted); }
.spec strong { color: #fff; font-size: 1.05rem; }

/* map */
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 7; }
.map-embed iframe { width: 100%; height: 100%; display: block; }

/* aside lead box */
.listing-aside { position: sticky; top: 90px; }
.lead-box { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.lead-box h2 { font-size: 1.3rem; }
.lead-box > p { color: var(--text-muted); font-size: .92rem; }
.lead-box .contact-cta { justify-content: flex-start; margin-bottom: 1.2rem; }

/* ===== forms ===== */
.lead-form { display: grid; gap: .9rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .85rem; color: var(--text-muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.lead-form textarea { resize: vertical; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .82rem; color: var(--text-muted); }
.consent input { margin-top: .2rem; }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: .9rem; margin: 0; }
.form-status.ok { color: #7fd1a8; }
.form-status.err { color: #e89393; }

/* ===== values / about ===== */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1rem; }
.value-card { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.value-card h3 { color: var(--gold-light); }
.value-card p { color: var(--text-muted); margin: 0; }

/* ===== reviews / contacts ===== */
.reviews-empty { background: var(--card-bg); border: 1px dashed var(--line); border-radius: var(--radius); padding: 3rem 1.5rem; text-align: center; color: var(--text-muted); margin-bottom: 1.5rem; }
.contacts-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: start; }
.contacts-info { display: grid; gap: 1.1rem; }
.contact-row { display: flex; gap: .9rem; align-items: flex-start; }
.contact-row svg { color: var(--gold); margin-top: .2rem; flex: none; }
.contact-row span { display: block; font-size: .8rem; color: var(--text-muted); }
.contact-row a, .contact-row strong { color: #fff; }
.contacts-info .contact-cta { justify-content: flex-start; margin-top: .5rem; }
.contacts-form { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }

/* legal */
.legal h2 { margin-top: 1.6rem; }
.legal p { color: var(--cream); }

/* ===== footer ===== */
.site-footer { background: var(--emerald-900); border-top: 1px solid var(--line); padding-top: 3rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.footer-brand img { height: 46px; width: auto; margin-bottom: .8rem; }
.footer-brand p { color: var(--text-muted); font-size: .9rem; max-width: 30ch; }
.footer-col { display: flex; flex-direction: column; gap: .5rem; }
.footer-h { color: var(--gold-light); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .3rem; }
.footer-col a { color: var(--text-muted); font-size: .92rem; }
.footer-col a:hover { color: var(--gold-light); }
.footer-social { margin-top: 1rem; }
.social-icons { display: flex; gap: .6rem; }
.social-icons a { color: var(--text-muted); }
.social-icons a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 1.3rem; color: var(--text-muted); font-size: .85rem; }

/* ===== cookie banner ===== */
.cookie-banner {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: min(900px, calc(100% - 32px)); background: var(--emerald-700);
  border: 1px solid var(--gold); border-radius: var(--radius); padding: 1.1rem 1.3rem;
  display: flex; align-items: center; gap: 1.2rem; z-index: 150; box-shadow: var(--shadow); flex-wrap: wrap;
}
.cookie-banner p { margin: 0; font-size: .88rem; color: var(--cream); flex: 1; min-width: 240px; }
.cookie-actions { display: flex; gap: .6rem; }

/* ===== responsive ===== */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .listing-grid { grid-template-columns: 1fr; }
  .listing-aside { position: static; }
  .contacts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; order: 3; margin-left: auto; }
  .primary-nav {
    position: fixed; inset: 72px 0 auto 0; background: var(--emerald-900);
    flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.5rem 20px 2rem;
    border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s ease;
    margin-left: 0;
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav ul { flex-direction: column; gap: .2rem; }
  .primary-nav ul a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .lang-menu { position: static; box-shadow: none; display: block; background: transparent; border: 0; padding: 0; }
  .lang-current { display: none; }
  .lang-menu a { display: inline-block; }
  .lang-switch { display: flex; gap: .3rem; flex-wrap: wrap; }
  .header-call { width: 100%; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .markets-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .listing-head { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
