/* ── LOCATION & LANDING SEO CONTENT ───────────────────────────────────────────
 * Added for the Long Term Villas Mallorca repositioning (theme v1.1.0).
 * Used by taxonomy-villa_location.php and page-landing.php.
 * ─────────────────────────────────────────────────────────────────────────── */

.page-intro {
  margin-top: 18px;
  max-width: 52ch;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.72);
}

.results-bar .results-note {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}

/* ── Shared section shell ──────────────────────────────────────────────────── */
.loc-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}
.loc-section-inner--cta {
  padding-top: 32px;
  text-align: center;
}

.loc-h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.loc-h2 em { font-style: italic; }

.loc-lead {
  margin-top: 12px;
  max-width: 58ch;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--stone);
}

/* ── Editorial content blocks ──────────────────────────────────────────────── */
.loc-content {
  padding: 90px 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.loc-content-inner {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.loc-block { display: block; }
.loc-block .loc-h2 { margin-bottom: 20px; }

.loc-body p,
.loc-content-inner > p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--stone);
  margin-bottom: 18px;
}
.loc-body p:last-child { margin-bottom: 0; }

.loc-body h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 56px 0 20px;
}
.loc-body > h2:first-child { margin-top: 0; }

.loc-body h3,
.loc-content-inner h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 34px 0 12px;
}

.loc-body ul,
.loc-body ol,
.loc-content-inner ul,
.loc-content-inner ol {
  margin: 0 0 18px 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.loc-body li,
.loc-content-inner li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--stone);
}
.loc-body li::before,
.loc-content-inner li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 1px;
  background: var(--gold);
}

.loc-body a,
.loc-content-inner a {
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
  transition: color 0.25s, border-color 0.25s;
}
.loc-body a:hover,
.loc-content-inner a:hover { color: var(--gold); }

.loc-body strong { font-weight: 500; color: var(--navy); }

/* ── Nearby villas strip ───────────────────────────────────────────────────── */
.loc-nearby-villas {
  background: var(--sand);
  padding: 80px 0 90px;
  margin-top: 40px;
}
.loc-nearby-villas .loc-section-inner { margin-bottom: 36px; }

/* ── Nearby areas ──────────────────────────────────────────────────────────── */
.loc-nearby { padding: 90px 0; }
.loc-nearby .loc-h2 { margin-bottom: 36px; }

.loc-nearby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--sand-dark);
  border: 1px solid var(--sand-dark);
}
.loc-nearby-card {
  background: var(--white);
  padding: 30px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.3s;
}
.loc-nearby-card:hover { background: var(--sand); }
.loc-nearby-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.1;
}
.loc-nearby-text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--stone);
}
.loc-nearby-link {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── FAQ ───────────────────────────────────────────────────────────────────── */
.loc-faq {
  background: var(--navy);
  padding: 90px 0 100px;
}
.loc-faq .loc-h2 { color: var(--white); margin-bottom: 40px; }

.faq-list {
  max-width: 780px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.14); }

.faq-q {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  position: relative;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.5;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 20px;
  font-size: 20px;
  font-weight: 300;
  color: var(--gold-light);
  transition: transform 0.25s;
}
.faq-item[open] .faq-q::after { content: "–"; }
.faq-q:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.faq-a { padding: 0 44px 26px 0; }
.faq-a p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255,255,255,0.66);
  margin-bottom: 14px;
}
.faq-a p:last-child { margin-bottom: 0; }
.faq-a a { color: var(--gold-light); border-bottom: 1px solid rgba(212,176,106,0.5); }

/* ── Sidebar price on request ──────────────────────────────────────────────── */
.sidebar-price--request {
  font-size: 26px;
  letter-spacing: 0.01em;
}

@media (prefers-reduced-motion: reduce) {
  .loc-nearby-card,
  .faq-q::after { transition: none; }
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .loc-content { padding: 60px 28px 30px; }
  .loc-content-inner { gap: 44px; }
  .loc-section-inner { padding: 0 28px; }
  .loc-nearby { padding: 60px 0; }
  .loc-nearby-villas { padding: 56px 0 64px; }
  .loc-faq { padding: 60px 0 70px; }
}
@media (max-width: 560px) {
  .loc-content { padding: 48px 20px 24px; }
  .loc-section-inner { padding: 0 20px; }
  .loc-nearby-grid { grid-template-columns: 1fr; }
  .page-intro { font-size: 14px; }
}

/* ── Indicative price note ─────────────────────────────────────────────────── */
.sidebar-price-note {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--stone);
}

/* ── LOCATIONS DROPDOWN IN THE HEADER ─────────────────────────────────────── */
.nav-dd { position: relative; display: inline-flex; }

.nav-dd__trigger {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--sans);
  color: rgba(255,255,255,0.82); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 400;
  transition: color 0.2s;
}
.nav-dd__trigger:hover,
.nav-dd:hover .nav-dd__trigger,
.nav-dd.is-open .nav-dd__trigger,
.nav-dd__trigger.current-menu-item { color: var(--gold-light); }
.nav-dd__trigger:focus-visible { outline: 1px solid var(--gold-light); outline-offset: 6px; }

.nav-dd__chev { transition: transform 0.25s; margin-top: 1px; }
.nav-dd:hover .nav-dd__chev,
.nav-dd.is-open .nav-dd__chev { transform: rotate(180deg); }

.nav-dd__panel {
  position: absolute; top: 100%; left: 50%;
  transform: translate(-50%, 8px);
  margin-top: 18px;
  min-width: 460px;
  background: var(--white);
  border-top: 2px solid var(--gold);
  box-shadow: 0 24px 60px rgba(13,47,69,0.22);
  padding: 26px 30px 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 34px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
  z-index: 210;
}
.nav-dd:hover .nav-dd__panel,
.nav-dd:focus-within .nav-dd__panel,
.nav-dd.is-open .nav-dd__panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
}
/* Keeps the pointer from falling through the gap under the trigger */
.nav-dd__panel::before {
  content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px;
}

.nav-dd__label {
  display: block;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 12px;
}

.nav-dd__list { list-style: none; margin: 0 0 4px; padding: 0; }
.nav-dd__list li { margin: 0; }
.nav-dd__list a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(13,47,69,0.07);
  transition: color 0.18s;
}
.nav-dd__list li:last-child a { border-bottom: 0; }

.nav-dd__name {
  font-family: var(--serif); font-size: 18px; font-weight: 400;
  color: var(--navy); letter-spacing: 0; text-transform: none; line-height: 1.2;
}
.nav-dd__count {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--stone); white-space: nowrap;
}
.nav-dd__list a:hover .nav-dd__name { color: var(--gold); }
.nav-dd__list a:hover .nav-dd__count { color: var(--gold); }

.nav-dd__list--featured .nav-dd__name { font-size: 20px; }

.nav-dd__group--other .nav-dd__name { font-size: 16px; color: var(--stone); }
.nav-dd__group--other .nav-dd__list a:hover .nav-dd__name { color: var(--navy); }

.nav-dd__all {
  grid-column: 1 / -1;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid rgba(13,47,69,0.1);
  font-size: 10px !important; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--navy) !important; text-align: center;
}
.nav-dd__all:hover { color: var(--gold) !important; }

/* ── LANGUAGE SWITCHER IN THE HEADER ──────────────────────────────────────── */
.nav-lang { display: inline-flex; align-items: center; gap: 0; }
.nav-lang__item {
  font-size: 11px !important; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.45) !important;
  padding: 3px 7px;
  transition: color 0.2s;
}
.nav-lang__item + .nav-lang__item { border-left: 1px solid rgba(255,255,255,0.22); }
.nav-lang__item:hover { color: var(--white) !important; }
.nav-lang__item.is-active { color: var(--gold-light) !important; }

/* ── MOBILE ───────────────────────────────────────────────────────────────── */
.mobile-locations { margin-bottom: 32px; }
.mobile-locations__label {
  display: block; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 14px;
}
.mobile-locations__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
}
.mobile-locations__list a {
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.75);
}
.mobile-locations__list a:hover { color: var(--gold-light); }

.mobile-lang {
  display: inline-flex; align-items: center; margin-top: 22px;
}
.mobile-lang__item {
  font-size: 12px; letter-spacing: 0.16em; padding: 4px 10px;
  color: rgba(255,255,255,0.45);
}
.mobile-lang__item + .mobile-lang__item { border-left: 1px solid rgba(255,255,255,0.22); }
.mobile-lang__item.is-active { color: var(--gold-light); }

@media (max-width: 1080px) {
  .nav-dd__panel { min-width: 380px; grid-template-columns: 1fr; gap: 0; }
  .nav-dd__group--other { margin-top: 16px; }
}
@media (max-width: 900px) {
  .nav-dd, .nav-lang { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-dd__panel, .nav-dd__chev { transition: none; }
}
