/* Jetinv Spain: brand, layout, components, responsive and Arabic RTL styles. */

:root {
  --navy: #0d1b2a;
  --navy2: #142a3e;
  --gold: #c69b48;
  --gold2: #e1c27b;
  --ink: #172230;
  --muted: #68727f;
  --line: #dfe4e8;
  --soft: #f4f5f6;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 18px 55px rgba(13, 27, 42, 0.16);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}
button,
input,
select {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.container {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
header {
  height: 76px;
  background: #fff;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(13, 27, 42, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  font:
    700 1.75rem "Playfair Display",
    serif;
  color: var(--navy);
  letter-spacing: -0.03em;
}
.logo-mark {
  width: 27px;
  height: 27px;
  border: 2px solid var(--gold);
  transform: rotate(45deg);
  margin-right: 13px;
  position: relative;
}
.logo-mark:after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--gold);
}
.nav-links {
  display: flex;
  gap: 30px;
  font-size: 0.9rem;
  font-weight: 600;
}
.nav-links a:hover {
  color: var(--gold);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn {
  border: 0;
  border-radius: 8px;
  padding: 12px 19px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  background: var(--navy);
  color: #fff;
}
.btn:hover {
  transform: translateY(-1px);
  background: #1b334a;
}
.btn.gold {
  background: var(--gold);
  color: var(--navy);
}
.btn.outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.menu-btn {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
}
.hero {
  min-height: 565px;
  display: grid;
  align-items: center;
  position: relative;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 20, 31, 0.70) 0%, rgba(7, 20, 31, 0.45) 50%, rgba(7, 20, 31, 0.20) 100%),
    url("../images/netherlands-hero.jpg") center/cover;
}
.hero-content {
  padding: 75px 0 135px;
  max-width: 720px;
}
.hero h1 {
  font:
    700 clamp(2.7rem, 6vw, 5rem)/1.02 "Playfair Display",
    serif;
  margin: 12px 0 18px;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}
.hero p {
  font-size: 1.1rem;
  max-width: 590px;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}
.search-card {
  position: relative;
  margin: -65px auto 0;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(6, 19, 31, 0.12), 0 2px 8px rgba(6, 19, 31, 0.06);
  padding: 20px 24px 22px;
  z-index: 5;
}
.search-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 13px;
}
.tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.tab.active {
  color: var(--navy);
  border-color: var(--gold);
}
.search-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.55fr 1fr auto;
  gap: 10px;
}
.field {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 62px;
}
.field label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--muted);
}
.field select,
.field input {
  border: 0;
  outline: 0;
  padding: 4px 0 0;
  background: transparent;
  color: var(--ink);
  width: 100%;
}
.search-grid .btn {
  padding-inline: 28px;
}
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 18px;
  background: var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.trust-item {
  background: #fff;
  padding: 13px 18px;
  font-size: 0.84rem;
  color: var(--muted);
}
.trust-item strong {
  display: block;
  color: var(--navy);
  font-size: 0.98rem;
}
section {
  padding: 82px 0;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-head h2,
.split-copy h2,
.about-copy h2 {
  font:
    700 clamp(2rem, 4vw, 3rem)/1.1 "Playfair Display",
    serif;
  color: var(--navy);
  margin: 8px 0;
}
.section-head p {
  max-width: 580px;
  color: var(--muted);
  margin: 0;
}
.text-link {
  color: var(--navy);
  font-weight: 700;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.property {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: 0.25s;
}
.property:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(13, 27, 42, 0.1);
}
.photo {
  height: 245px;
  position: relative;
}
.badge {
  position: absolute;
  left: 14px;
  top: 14px;
  background: var(--gold);
  color: var(--navy);
  padding: 7px 10px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.heart {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
}
.property-body {
  padding: 18px;
}
.location {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.property h3 {
  margin: 6px 0 12px;
  color: var(--navy);
  font:
    600 1.28rem "Playfair Display",
    serif;
}
.facts {
  display: flex;
  gap: 15px;
  padding: 13px 0;
  border-block: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}
.price-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-top: 14px;
}
.price {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--navy);
}
.yield {
  font-size: 0.75rem;
  color: #26734b;
  background: #eaf6ef;
  padding: 5px 8px;
  border-radius: 20px;
}
.regions {
  background: var(--soft);
}
.region-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 16px;
}
.region {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  color: #fff;
}
.region:first-child {
  grid-row: 1/3;
}
.region:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(4, 17, 29, 0.78),
    rgba(4, 17, 29, 0.02) 70%
  );
}
.region-content {
  position: absolute;
  z-index: 2;
  left: 22px;
  bottom: 19px;
}
.region h3 {
  font:
    700 1.55rem "Playfair Display",
    serif;
  margin: 0;
}
.region span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}
.split-image {
  min-height: 470px;
  background: url("../images/netherlands-hero.jpg") center/cover;
}
.split-copy {
  background: var(--navy);
  color: #fff;
  padding: 70px max(40px, calc((100vw - 1180px) / 2)) 70px 65px;
}
.split-copy h2 {
  color: #fff;
}
.split-copy > p {
  color: #bfc8d0;
}
.steps {
  margin-top: 30px;
  display: grid;
  gap: 20px;
}
.step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
}
.step-num {
  width: 34px;
  height: 34px;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.step h3 {
  margin: 0;
  font-size: 1rem;
}
.step p {
  margin: 4px 0 0;
  color: #aeb9c3;
  font-size: 0.88rem;
}
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.about-art {
  height: 460px;
  position: relative;
}
.about-art img {
  border-radius: 12px;
}
.stat-card {
  position: absolute;
  right: -25px;
  bottom: 25px;
  background: #fff;
  padding: 24px;
  width: 205px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}
.stat-card strong {
  font:
    700 2.2rem "Playfair Display",
    serif;
  color: var(--navy);
  display: block;
}
.stat-card span {
  font-size: 0.82rem;
  color: var(--muted);
}
.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin: 25px 0;
}
.check {
  font-weight: 600;
  font-size: 0.9rem;
}
.check:before {
  content: "✓";
  color: var(--gold);
  margin-right: 9px;
}
.faq-wrap {
  background: var(--soft);
}
.faq {
  max-width: 860px;
  margin: auto;
}
.faq h2 {
  text-align: center;
  font:
    700 2.6rem "Playfair Display",
    serif;
  color: var(--navy);
}
details {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 20px 22px;
}
details:first-of-type {
  border-radius: 10px 10px 0 0;
}
details:last-of-type {
  border-radius: 0 0 10px 10px;
  border: 0;
}
summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}
details p {
  color: var(--muted);
  margin: 12px 0 0;
}
.cta {
  background: linear-gradient(105deg, var(--gold), var(--gold2));
  padding: 52px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.cta h2 {
  font:
    700 2.2rem "Playfair Display",
    serif;
  color: var(--navy);
  margin: 0;
}
.cta p {
  margin: 5px 0 0;
  color: #4a3b20;
}
.cta .btn {
  white-space: nowrap;
}
footer {
  background: #091522;
  color: #b5bec7;
  padding: 58px 0 25px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 45px;
}
.footer-logo {
  color: #fff;
}
.footer-grid h4 {
  color: #fff;
  margin: 0 0 15px;
}
.footer-grid a {
  display: block;
  font-size: 0.86rem;
  margin: 8px 0;
}
.footer-grid a:hover {
  color: var(--gold);
}
.footer-note {
  max-width: 320px;
  font-size: 0.86rem;
}
.copyright {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: var(--navy);
  color: #fff;
  padding: 14px 18px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translateY(140%);
  transition: 0.3s;
  z-index: 30;
}
.toast.show {
  transform: translateY(0);
}
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .nav-actions .outline {
    display: none;
  }
  .search-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .property:last-child {
    display: none;
  }
  .region-grid {
    grid-template-columns: 1fr 1fr;
  }
  .region:first-child {
    grid-row: auto;
    grid-column: 1/3;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .split-copy {
    padding: 55px 40px;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1180px);
  }
  header {
    height: 66px;
  }
  .logo {
    font-size: 1.45rem;
  }
  .nav-actions .gold {
    display: none;
  }
  .hero {
    min-height: 520px;
  }
  .hero-content {
    padding: 70px 0 150px;
  }
  .hero h1 {
    font-size: 2.65rem;
  }
  .search-card {
    margin-top: -110px;
  }
  .search-grid {
    grid-template-columns: 1fr;
  }
  .trust-strip {
    grid-template-columns: 1fr;
  }
  .trust-item:not(:first-child) {
    display: none;
  }
  section {
    padding: 62px 0;
  }
  .section-head {
    display: block;
  }
  .section-head .text-link {
    display: inline-block;
    margin-top: 16px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .property:last-child {
    display: block;
  }
  .photo {
    height: 230px;
  }
  .region-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .region,
  .region:first-child {
    height: 220px;
    grid-column: auto;
  }
  .region:nth-child(n + 4) {
    display: none;
  }
  .split-copy {
    padding: 45px 24px;
  }
  .about-art {
    height: 360px;
  }
  .stat-card {
    right: 12px;
  }
  .checks {
    grid-template-columns: 1fr;
  }
  .cta-inner {
    display: block;
  }
  .cta .btn {
    margin-top: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .footer-grid > div:first-child {
    grid-column: 1/3;
  }
  .copyright {
    display: block;
  }
  .copyright span {
    display: block;
    margin-top: 8px;
  }
}

.hero {
  min-height: 330px;
  background:
    linear-gradient(90deg, rgba(7, 20, 31, 0.72), rgba(7, 20, 31, 0.38)),
    url("../images/netherlands-hero.jpg") center/cover;
}
.hero-content {
  padding: 48px 0 105px;
  max-width: 1180px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 760px;
}
.search-card {
  margin-top: -65px;
}
.search-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.field label {
  font-size: 0.78rem;
}
.search-grid .btn {
  grid-column: 4;
}
.hero p {
  max-width: 650px;
}
.logo img {
  width: 150px;
  height: auto;
}
.country-label {
  font:
    600 0.75rem "DM Sans",
    sans-serif;
  letter-spacing: 0.1em;
  margin-left: 14px;
  border-left: 1px solid #ccd0d5;
  padding-left: 14px;
}
.nav-links {
  gap: 22px;
}
.language {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}
.notice {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 14px 0 0;
}
.photo .badge {
  font-size: 0.8rem;
}
.facts {
  flex-wrap: wrap;
  font-size: 0.86rem;
  gap: 10px;
}
.location {
  color: #826121;
}
.yield {
  color: #52606b;
  background: #f1f3f5;
  font-size: 0.8rem;
}
.price-row {
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.property h3 {
  font-family: "DM Sans", sans-serif;
  font-size: 1.1rem;
}
.detail-btn {
  width: 100%;
  margin-top: 15px;
}
.cards {
  align-items: start;
}
.property:last-child {
  display: block;
}
.region-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
}
.city {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  text-align: left;
  cursor: pointer;
  color: var(--navy);
}
.city:hover {
  border-color: var(--gold);
}
.city strong {
  display: block;
  font-size: 1.25rem;
}
.city span {
  color: var(--muted);
}
.split {
  padding: 0;
}
.split-image {
  background: url("../images/netherlands-hero.jpg") center/cover;
}
.stat-card strong {
  font-size: 1.6rem;
}
.empty {
  grid-column: 1/-1;
  border: 1px dashed var(--line);
  padding: 40px;
  text-align: center;
}
.filter-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-actions select {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.reset {
  border: 0;
  background: transparent;
  text-decoration: underline;
  cursor: pointer;
  color: var(--navy);
}
dialog {
  border: 0;
  border-radius: 14px;
  padding: 30px;
  width: min(620px, calc(100% - 32px));
  max-height: 85vh;
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: #071522b8;
}
dialog h2 {
  margin-top: 0;
  color: var(--navy);
}
.dialog-close {
  float: right;
  border: 0;
  background: #eef0f2;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 1.2rem;
}
dialog img {
  height: 220px;
  border-radius: 8px;
}
dialog p {
  color: var(--muted);
}
:focus-visible {
  outline: 3px solid #997026;
  outline-offset: 4px;
}
.field:focus-within {
  outline: 2px solid #997026;
}
section {
  scroll-margin-top: 90px;
}
.heart {
  cursor: pointer;
}
.nav-links.open {
  display: flex;
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  background: white;
  padding: 20px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}
.copyright {
  gap: 20px;
}
.footer-grid {
  grid-template-columns: 2fr 1fr 1fr;
}
.about {
  gap: 60px;
}
.results-count {
  margin: 0 0 20px;
  color: var(--muted);
}
@media (max-width: 900px) {
  .search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .search-grid .btn {
    grid-column: auto;
  }
  .region-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .country-label {
    display: none;
  }
  .nav-actions .gold {
    display: none;
  }
}
@media (max-width: 620px) {
  .hero {
    min-height: 350px;
  }
  .hero-content {
    padding: 45px 0 100px;
  }
  .search-card {
    margin-top: -65px;
  }
  .search-grid {
    grid-template-columns: 1fr 1fr;
  }
  .field {
    padding: 8px;
    min-width: 0;
  }
  .field label {
    font-size: 0.72rem;
  }
  .field input,
  .field select {
    font-size: 0.88rem;
  }
  .search-grid .btn {
    grid-column: 1/-1;
  }
  .region-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .city {
    padding: 17px;
  }
  .city strong {
    font-size: 1.05rem;
  }
  .city span {
    font-size: 0.84rem;
  }
  .section-head {
    display: block;
  }
  .filter-actions {
    margin-top: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links.open {
    top: 66px;
  }
  .logo img {
    width: 130px;
  }
  .nav-actions {
    gap: 6px;
  }
  .split-image {
    min-height: 280px;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .about-art {
    height: 320px;
  }
  .trust-item {
    padding: 12px;
  }
  .trust-strip {
    grid-template-columns: 1fr;
  }
  .language {
    max-width: 85px;
  }
}

:root {
  --navy: #092a32;
  --navy2: #123d46;
  --gold: #c6a363;
  --gold2: #e7d5ab;
  --soft: #f3f6f6;
}
.hero {
  min-height: 410px;
  background-position: center 48%;
}
.hero h1 {
  max-width: 780px;
}
.hero-content {
  padding-block: 64px 120px;
}
.country-label {
  font-size: 0.85rem;
}
.split-image {
  background-position: center;
}
.city {
  text-align: start;
}
.language {
  max-width: none;
  min-width: 92px;
}
.hero .eyebrow {
  color: #ffdc8b;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.btn.gold:hover {
  background: #dcc18c;
}
.logo img {
  object-fit: contain;
}
html[dir="rtl"] body {
  font-family: Tahoma, Arial, sans-serif;
}
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  font-family: Tahoma, Arial, sans-serif;
  letter-spacing: normal;
  line-height: 1.4;
}
html[dir="rtl"] .hero {
  background-image:
    linear-gradient(270deg, rgba(7, 20, 31, 0.72), rgba(7, 20, 31, 0.38)),
    url("../images/netherlands-hero.jpg");
}
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .location,
html[dir="rtl"] .field label {
  letter-spacing: normal;
}
html[dir="rtl"] .country-label {
  margin: 0 14px 0 0;
  padding: 0 14px 0 0;
  border-left: 0;
  border-right: 1px solid #ccd0d5;
}
html[dir="rtl"] .check:before {
  margin-right: 0;
  margin-left: 9px;
}
html[dir="rtl"] .dialog-close {
  float: left;
}
html[dir="rtl"] .split-copy {
  padding: 65px;
}
html[dir="rtl"] .hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.7rem);
}
@media (max-width: 620px) {
  html[dir="rtl"] .split-copy {
    padding: 40px 24px;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  .country-label {
    display: none;
  }
}

/* Shared text alignment helper. */
.text-center {
  text-align: center;
}


/* ==========================================================================
   Spain Map & Regional Explorer Layout
   ========================================================================== */
.spain-map-layout {
  display: grid;
  grid-template-columns: 1.28fr 0.72fr;
  gap: 28px;
  align-items: stretch;
  margin-top: 24px;
}

/* Left Card: Map Container */
.spain-map-card {
  background: #ffffff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 4px 20px rgba(12, 26, 44, 0.04);
  display: flex;
  flex-direction: column;
  position: relative;
}

.spain-map-container {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  padding: 6px 0;
}

.spain-svg-map {
  width: 100%;
  height: auto;
  max-height: 560px;
  filter: drop-shadow(0 4px 14px rgba(14, 38, 62, 0.07));
}

.spain-region-path {
  fill: #e6edf4;
  stroke: #c8d5e2;
  stroke-width: 1.2;
  stroke-linejoin: round;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.spain-region-path:hover,
.spain-region-path.hovered {
  fill: #cba052 !important;
  stroke: #0e263e;
  stroke-width: 1.8;
  filter: drop-shadow(0 2px 8px rgba(203, 160, 82, 0.45));
}

.spain-region-path.active-region {
  fill: #0e263e !important;
  stroke: #cba052;
  stroke-width: 2.2;
  filter: drop-shadow(0 4px 12px rgba(14, 38, 62, 0.35));
}

.spain-enclave-badge {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.spain-enclave-badge:hover,
.spain-enclave-badge.hovered {
  transform: scale(1.15);
}

.spain-enclave-badge circle {
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.spain-enclave-badge:hover circle,
.spain-enclave-badge.hovered circle {
  fill: #cba052 !important;
  stroke: #ffffff !important;
}

.spain-map-tooltip {
  position: absolute;
  display: none;
  pointer-events: none;
  z-index: 100;
  background: rgba(12, 26, 44, 0.96);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(203, 160, 82, 0.45);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  min-width: 180px;
  max-width: 260px;
  font-size: 13px;
  transition: opacity 0.15s ease;
}

.spain-map-tooltip .tt-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.spain-map-tooltip .tt-code {
  background: #cba052;
  color: #0e263e;
  font-weight: 800;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.spain-map-tooltip .tt-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.spain-map-tooltip .tt-hubs {
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.4;
  margin-top: 2px;
}

.spain-map-tooltip .tt-action {
  font-size: 10.5px;
  color: #cba052;
  font-weight: 600;
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 4px;
}

.spain-map-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.map-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #64748b;
}

.legend-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cba052;
  box-shadow: 0 0 0 3px rgba(203, 160, 82, 0.2);
}

.btn-clear-map {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-clear-map:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Right Side: 19 Regions Sidebar */
.spain-regions-sidebar {
  background: #ffffff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(12, 26, 44, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 625px;
}

.regions-list-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line, #e2e8f0);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.regions-list-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.regions-list-title h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy, #0e263e);
}

.regions-total-badge {
  background: rgba(203, 160, 82, 0.15);
  color: #8c6819;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid rgba(203, 160, 82, 0.3);
}

.spain-regions-list {
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* Sleek custom scrollbar */
.spain-regions-list::-webkit-scrollbar {
  width: 6px;
}
.spain-regions-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.spain-regions-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.spain-regions-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.spain-region-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  color: var(--navy, #0e263e);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.spain-region-item:hover,
.spain-region-item.map-synced {
  background: #ffffff;
  border-color: #cba052;
  box-shadow: 0 4px 12px rgba(203, 160, 82, 0.15);
  transform: translateX(4px);
}

.spain-region-item.active {
  background: #0e263e !important;
  color: #ffffff !important;
  border-color: #cba052 !important;
  box-shadow: 0 4px 16px rgba(14, 38, 62, 0.3) !important;
}

.region-item-badge {
  font-size: 11px;
  font-weight: 800;
  color: #0e263e;
  background: #edf2f7;
  padding: 4px 7px;
  border-radius: 6px;
  min-width: 38px;
  text-align: center;
  transition: all 0.2s ease;
}

.spain-region-item:hover .region-item-badge,
.spain-region-item.map-synced .region-item-badge {
  background: #cba052;
  color: #ffffff;
}

.spain-region-item.active .region-item-badge {
  background: #cba052;
  color: #0e263e;
}

.region-item-info {
  flex: 1;
  min-width: 0;
}

.region-item-name {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.region-item-hubs {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spain-region-item.active .region-item-hubs {
  color: #cbd5e1;
}

.region-item-arrow {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, color 0.2s ease;
}

.spain-region-item:hover .region-item-arrow,
.spain-region-item.map-synced .region-item-arrow {
  color: #cba052;
  transform: translateX(3px);
}

.spain-region-item.active .region-item-arrow {
  color: #cba052;
}

/* Responsive queries */
@media (max-width: 991px) {
  .spain-map-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .spain-map-container {
    min-height: 380px;
  }
  .spain-regions-sidebar {
    max-height: 480px;
  }
}


/* =========================================================
   COUNTRY BRAND TAG & CIRCULAR FLAG
   ========================================================= */
.country-tag {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: 14px;
  border-left: 1px solid #ccd0d5;
  padding-left: 14px;
  line-height: 1;
  text-decoration: none;
  vertical-align: middle;
}
.country-tag .country-label {
  margin-left: 0 !important;
  border-left: none !important;
  padding-left: 0 !important;
  margin-bottom: 3px;
  line-height: 1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #0d1b2a;
  text-transform: uppercase;
}
.country-flag-disc {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.08);
  background: #ffffff;
  flex-shrink: 0;
}
.country-flag-disc svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: scale(1.18);
}
.footer-logo .country-tag {
  border-left-color: rgba(255, 255, 255, 0.28);
}
.footer-logo .country-tag .country-label {
  color: #ffffff !important;
}
