/* A-Estate — EU real estate agency */
:root {
  --green-dark: #1b4332;
  --green: #2d6a4f;
  --green-mid: #40916c;
  --green-light: #52b788;
  --green-soft: #d8f3dc;
  --gray-900: #212529;
  --gray-700: #495057;
  --gray-500: #6c757d;
  --gray-200: #e9ecef;
  --gray-100: #f8f9fa;
  --white: #ffffff;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-dark);
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--green);
  color: var(--white);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 45%, var(--green-mid) 100%);
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(27, 67, 50, 0.25);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.header-inner > nav {
  display: flex;
  align-items: center;
  align-self: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  color: inherit;
  text-decoration: none;
  margin-left: -1.25rem;
  margin-right: 0.25rem;
  padding: 0.35rem 1rem 0.35rem 1.25rem;
  border-radius: 0 14px 14px 0;
  background: #fff;
  box-shadow: 4px 0 18px rgba(15, 42, 30, 0.12);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.logo:hover {
  background: #fff;
  box-shadow: 4px 0 22px rgba(15, 42, 30, 0.18);
}

.logo:focus-visible {
  outline: 2px solid var(--green-soft);
  outline-offset: -2px;
}

.logo-img {
  display: block;
  height: clamp(2.45rem, 4.5vw, 3rem);
  width: auto;
}

.logo:hover .logo-img,
.logo:focus-visible .logo-img {
  opacity: 0.96;
}

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

.lang-panel {
  display: inline-flex;
  padding: 0.22rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lang-switch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  padding: 0.38rem 0.48rem;
  border-radius: 9px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.lang-switch-link:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.lang-switch-link:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  outline: 2px solid var(--green-soft);
  outline-offset: 2px;
}

.lang-switch-link[aria-current="page"] {
  background: #fff;
  color: var(--green-dark);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.lang-switch-link[aria-current="page"]:focus-visible {
  outline-color: var(--green-dark);
}

.lang-nav {
  position: relative;
}

.lang-dropdown {
  position: relative;
}

.lang-dropdown > summary {
  list-style: none;
}

.lang-dropdown > summary::-webkit-details-marker {
  display: none;
}

.lang-dropdown-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  user-select: none;
  min-height: 2.75rem;
  padding: 0.38rem 0.65rem 0.38rem 0.75rem;
  border-radius: 10px;
  background: #fff;
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.15s ease, background 0.15s ease;
}

.lang-dropdown-summary:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}

.lang-dropdown-summary:focus-visible {
  outline: 2px solid var(--green-soft);
  outline-offset: 3px;
}

.lang-dropdown-chevron {
  display: block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--green-dark);
  opacity: 0.75;
  transition: transform 0.2s ease, opacity 0.15s ease;
}

.lang-dropdown[open] .lang-dropdown-chevron {
  transform: rotate(180deg);
}

.lang-dropdown-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 60;
  min-width: 11rem;
  animation: lang-dropdown-in 0.16s ease-out;
}

@keyframes lang-dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lang-panel--dropdown {
  padding: 0.35rem;
  background: #fff;
  border: 1px solid rgba(27, 67, 50, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 42, 30, 0.22);
}

.lang-switch--dropdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.28rem;
}

.lang-switch-link--dropdown {
  min-width: 0;
  width: 100%;
  color: var(--green-dark);
  border-color: transparent;
}

.lang-switch-link--dropdown:hover {
  background: var(--gray-100);
  color: var(--green-dark);
}

.lang-switch-link--dropdown:focus-visible {
  background: var(--gray-100);
  color: var(--green-dark);
  outline-color: var(--green-dark);
}

.lang-switch-link--dropdown[aria-current="page"] {
  background: var(--green-dark);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 1px 4px rgba(27, 67, 50, 0.35);
}

.lang-switch-link--dropdown[aria-current="page"]:focus-visible {
  outline-color: var(--green-soft);
}

@media (prefers-reduced-motion: reduce) {
  .lang-dropdown-chevron {
    transition: none;
  }

  .lang-dropdown-panel {
    animation: none;
  }
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.hero {
  padding: 2.75rem 0 2rem;
  border-bottom: 1px solid var(--gray-200);
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--green-dark);
  line-height: 1.2;
}

.hero-lead {
  margin: 0;
  font-size: 1.125rem;
  color: var(--gray-700);
  max-width: 42rem;
}

section {
  padding: 2.25rem 0;
}

section h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  color: var(--green-dark);
  letter-spacing: -0.02em;
}

section p {
  margin: 0 0 1rem;
  color: var(--gray-700);
}

section p:last-child {
  margin-bottom: 0;
}

.map-section {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  min-width: 0;
}

@media (min-width: 768px) {
  .map-section {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.europe-map {
  background: var(--gray-100);
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid var(--gray-200);
  min-width: 0;
  max-width: 100%;
}

.europe-map svg {
  width: 100%;
  height: auto;
  display: block;
}

.eu-map-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 505 / 424;
  max-height: min(72vh, 520px);
  border-radius: 12px;
  overflow: hidden;
  background: var(--gray-100);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.eu-map-frame object {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border: 0;
  display: block;
  pointer-events: auto;
}

.europe-map--embed {
  padding: 0.75rem;
}

.map-legend {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 0.75rem;
  line-height: 1.45;
}

@media (max-width: 639px) {
  .map-section {
    gap: 1.1rem;
  }

  .europe-map--embed {
    padding: 0.5rem 0.45rem;
    border-radius: 12px;
  }

  .europe-map--embed .eu-map-frame {
    border-radius: 10px;
    max-height: min(52vh, 340px);
    min-height: 200px;
  }

  .europe-map--embed .map-legend {
    font-size: 0.8125rem;
    margin-top: 0.55rem;
  }
}

.partner-dot {
  cursor: pointer;
  transition: transform 0.15s ease;
}

.partner-dot:hover {
  transform: scale(1.15);
}

.partners-grid {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 480px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.partner-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.partner-card:hover {
  border-color: var(--green-light);
  box-shadow: 0 4px 16px rgba(45, 106, 79, 0.08);
}

.partner-card strong {
  display: block;
  color: var(--green-dark);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.partner-card a {
  font-size: 0.9rem;
  font-weight: 600;
}

.eu-list {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
  columns: 2;
  column-gap: 1.5rem;
}

@media (min-width: 640px) {
  .eu-list {
    columns: 3;
  }
}

.cta-box {
  background: linear-gradient(135deg, var(--green-soft) 0%, var(--white) 60%);
  border: 1px solid var(--green-light);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.cta-box p {
  margin-bottom: 1rem;
}

.cta-box:has(.request-form) {
  text-align: left;
}

.cta-box:has(.request-form) > h2,
.cta-box:has(.request-form) > p:first-of-type {
  text-align: center;
}

.request-form {
  margin: 1.35rem auto 0;
  max-width: 36rem;
  text-align: left;
}

.request-form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .request-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.request-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.request-field span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-dark);
}

.request-field input,
.request-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font: inherit;
  color: var(--gray-900);
  background: var(--white);
}

.request-field input:focus,
.request-field textarea:focus {
  outline: 2px solid var(--green-mid);
  outline-offset: 1px;
  border-color: var(--green-light);
}

.request-field textarea {
  min-height: 7rem;
  resize: vertical;
}

.request-field--full {
  grid-column: 1 / -1;
}

.request-form-actions {
  margin: 1.15rem 0 0;
  text-align: center;
}

.request-form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.request-alt {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.btn {
  display: inline-block;
  background: var(--green);
  color: var(--white) !important;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.25);
}

.btn:hover {
  background: var(--green-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(45, 106, 79, 0.35);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(45, 106, 79, 0.2);
}

.hero-cta {
  margin-top: 1.5rem;
}

.site-footer {
  background: var(--gray-900);
  color: var(--gray-200);
  padding: 2rem 1.25rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--green-light);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.site-footer p {
  margin: 0 0 0.5rem;
  color: var(--gray-200);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: 0.75rem;
}

.site-footer .footer-brand {
  margin: 0;
  flex: 1 1 12rem;
  max-width: 32rem;
}

.footer-contact {
  margin: 0;
  font-style: normal;
  flex: 0 1 auto;
}

.footer-contact-dl {
  margin: 0;
  display: grid;
  gap: 0.35rem 1.25rem;
}

.footer-contact-pair {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
}

.footer-contact-dl dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.footer-contact-dl dd {
  margin: 0;
}

.footer-contact a {
  color: var(--green-light);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-contact a:hover {
  color: var(--green-soft);
}

.footer-copy {
  margin: 0 0 0.35rem;
  color: var(--gray-400);
}

.footer-copy small {
  font-size: 0.8125rem;
}

.footer-legal {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin: 0.5rem 0 0;
  list-style: none;
  padding: 0;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--gray-500);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--green-light);
}

/* GDPR form notice */
.request-form-gdpr {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin: 0.75rem 0 0;
  text-align: center;
  line-height: 1.5;
}

.request-form-gdpr a {
  color: var(--green-mid);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--gray-900);
  color: var(--gray-200);
  padding: 1rem 1.25rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.875rem;
}

.cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 200px;
  color: var(--gray-200);
}

.cookie-banner a {
  color: var(--green-light);
}

.cookie-banner-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-btn-accept {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.cookie-btn-accept:hover {
  background: var(--green-dark);
}

.cookie-btn-decline {
  background: transparent;
  color: var(--gray-500);
  border: 1px solid var(--gray-500);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.875rem;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
}

.cookie-btn-decline:hover {
  border-color: var(--gray-200);
  color: var(--gray-200);
}

.cookie-banner.hidden {
  display: none;
}

/* Partner card micro-animation */
.partner-card {
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.partner-card:hover {
  border-color: var(--green-light);
  box-shadow: 0 4px 16px rgba(45, 106, 79, 0.12);
  transform: translateY(-2px);
}

.partner-card strong {
  transition: color 0.15s;
}

.partner-card:hover strong {
  color: var(--green-mid);
}

/* Privacy policy page */
.privacy-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
}

.privacy-content h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--green-dark);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.privacy-content .privacy-updated {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin: 0 0 2rem;
}

.privacy-content h2 {
  font-size: 1.1rem;
  color: var(--green-dark);
  margin: 2rem 0 0.5rem;
}

.privacy-content p,
.privacy-content ul {
  color: var(--gray-700);
  margin: 0 0 1rem;
  line-height: 1.7;
}

.privacy-content ul {
  padding-left: 1.4rem;
}

.privacy-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.privacy-back:hover {
  color: var(--green-dark);
}

.form-feedback {
  margin: 0 0 0.75rem;
  min-height: 1.25rem;
  font-size: 0.9rem;
}

.form-feedback--ok {
  color: var(--green-dark);
}

.form-feedback--err {
  color: #b42318;
}
