/* =========================================================
   Jolie Village - Location Page
   assets/css/location.css
   ========================================================= */

:root {
  --arqa-indigo: #4D418A;
  --arqa-lavender: #9696DE;
  --arqa-peach: #C48B63;
  --arqa-surface: #F7F6FF;
  --arqa-surface-soft: #FBFAFF;
  --arqa-border: rgba(77, 65, 138, 0.14);
  --arqa-shadow: rgba(77, 65, 138, 0.10);
}


/* =========================================================
   0. Overflow guard / base fixes
   ========================================================= */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.location-page {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: #ffffff;
}

.location-page *,
.location-page *::before,
.location-page *::after {
  box-sizing: border-box;
}

.location-page img,
.location-page video,
.location-page iframe {
  max-width: 100%;
}

.location-hero,
.location-intro,
.location-map,
.location-landmarks,
.location-advantages,
.location-mature,
.location-project-gallery {
  position: relative;
  max-width: 100%;
  overflow-x: clip;
}

.section {
  padding-block: var(--section-padding-y);
}


/* =========================================================
   1. Shared elements
   ========================================================= */

.section-kicker {
  margin: 0 0 12px;
  color: var(--color-primary, var(--arqa-indigo));
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.location-intro h2,
.location-mature h2 {
  margin: 0;
  color: var(--color-primary-dark, #3D3470);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.section-heading p,
.location-intro p,
.location-mature p {
  margin: 18px 0 0;
  color: var(--color-muted);
  font-size: var(--font-body);
  line-height: 1.7;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: var(--color-primary, var(--arqa-indigo));
  box-shadow: 0 16px 34px rgba(77, 65, 138, 0.22);
}

.btn-primary:hover {
  color: #ffffff;
  background: var(--color-primary-dark, #3D3470);
  transform: translateY(-1px);
}

.btn-outline {
  color: var(--color-primary, var(--arqa-indigo));
  background: transparent;
  border-color: rgba(77, 65, 138, 0.42);
}

.btn-outline:hover {
  color: var(--color-primary-dark, #3D3470);
  background: var(--arqa-peach);
  border-color: var(--arqa-peach);
  transform: translateY(-1px);
}


/* =========================================================
   2. Breadcrumbs
   ========================================================= */

.location-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--color-muted);
  font-size: 13px;
}

.location-breadcrumbs a {
  color: var(--color-primary, var(--arqa-indigo));
  text-decoration: none;
}

.location-breadcrumbs a:hover {
  text-decoration: underline;
}

.location-breadcrumbs span::before {
  content: "/";
  margin-right: 8px;
  color: rgba(23, 23, 33, 0.32);
}


/* =========================================================
   3. Hero
   ========================================================= */

.location-hero {
  padding-block: 48px 56px;
  background:
    radial-gradient(circle at 90% 18%, rgba(150, 150, 222, 0.20), transparent 34%),
    radial-gradient(circle at 10% 92%, rgba(196, 139, 99, 0.14), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--arqa-surface-soft) 100%);
  border-bottom: 1px solid var(--arqa-border);
}

.location-hero__grid {
  display: grid;
  gap: 34px;
  align-items: center;
}

.location-hero__content {
  max-width: 700px;
}

.location-hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--color-primary-dark, var(--arqa-indigo-dark));
  font-size: clamp(34px, 4.4vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.location-hero h1 span {
  display: block;
  color: #A87552;
}

.location-hero__lead {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--color-muted);
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.6;
}

.location-hero__text {
  max-width: 640px;
  margin: 16px 0 0;
  color: var(--color-muted);
  font-size: var(--font-body);
  line-height: 1.7;
}

.location-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.location-hero__media {
  min-height: 280px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(77, 65, 138, 0.10), rgba(77, 65, 138, 0.02)),
    var(--arqa-surface);
  border: 1px solid var(--arqa-border);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(23, 23, 33, 0.08);
}

.location-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}


/* =========================================================
   4. Intro
   ========================================================= */

.location-intro {
  background: #ffffff;
}

.location-intro__grid {
  display: grid;
  gap: 34px;
  align-items: start;
}

.location-intro__content {
  max-width: 760px;
}

.location-intro__items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.location-feature-card {
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--arqa-border);
  border-radius: 22px;
  box-shadow: 0 16px 38px rgba(77, 65, 138, 0.05);
}

.location-feature-card h3 {
  margin: 0;
  color: var(--color-primary-dark, #3D3470);
  font-size: 18px;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.location-feature-card p {
  margin: 10px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.6;
}


/* =========================================================
   5. Illustrated map
   ========================================================= */

.location-map {
  background:
    linear-gradient(180deg, var(--arqa-surface-soft) 0%, #ffffff 100%);
  border-block: 1px solid var(--arqa-border);
}

.location-map__frame {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--arqa-border);
  border-radius: 28px;
  box-shadow: 0 22px 58px rgba(77, 65, 138, 0.08);
}

.location-map__scroll {
  width: 100%;
  overflow: hidden;
  background: #edeaf8;
}

.location-map__image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.location-map__hint {
  display: none;
  margin: 0;
}


/* =========================================================
   6. Landmarks
   ========================================================= */

.location-landmarks {
  background: #ffffff;
}

.location-landmarks__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.location-landmark-card {
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--arqa-border);
  border-radius: 22px;
  box-shadow: 0 16px 38px rgba(77, 65, 138, 0.05);
}

.location-landmark-card h3 {
  margin: 0 0 16px;
  color: var(--color-primary-dark, #3D3470);
  font-size: 21px;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.location-landmark-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.location-landmark-card li {
  position: relative;
  padding-left: 24px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.55;
}

.location-landmark-card li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--arqa-peach);
  border: 2px solid var(--color-primary, var(--arqa-indigo));
  border-radius: 999px;
  transform: translateY(-50%);
}

.location-landmarks__note {
  margin: 22px 0 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.82;
}


/* =========================================================
   7. Advantages band
   ========================================================= */

.location-advantages {
  color: #ffffff;
  background:
    radial-gradient(circle at 100% 0%, rgba(150, 150, 222, 0.28), transparent 28%),
    radial-gradient(circle at 0% 100%, rgba(196, 139, 99, 0.18), transparent 32%),
    linear-gradient(135deg, var(--color-primary-dark, #3D3470), var(--arqa-indigo));
}

.location-advantages__inner {
  max-width: 1180px;
  margin-inline: auto;
}

.location-advantages .section-kicker {
  color: rgba(255, 255, 255, 0.72);
}

.location-advantages .section-heading h2 {
  color: #ffffff;
}

.location-advantages__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.location-advantage-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(23, 23, 33, 0.08);
  backdrop-filter: blur(8px);
}

.location-advantage-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.location-advantage-card p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.65;
}


/* =========================================================
   8. Mature area
   ========================================================= */

.location-mature {
  background: #ffffff;
}

.location-mature__grid {
  display: grid;
  gap: 34px;
  align-items: center;
}

.location-mature__media {
  overflow: hidden;
  min-height: 280px;
  background: var(--arqa-surface);
  border: 1px solid var(--arqa-border);
  border-radius: 26px;
  box-shadow: 0 18px 44px rgba(77, 65, 138, 0.055);
}

.location-mature__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.location-mature__content {
  max-width: 680px;
}


/* =========================================================
   9. Project gallery reused on location page
   ========================================================= */

.location-project-gallery,
.apartment-project-gallery.location-project-gallery {
  background:
    radial-gradient(circle at 0% 0%, rgba(150, 150, 222, 0.14), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(196, 139, 99, 0.10), transparent 32%),
    var(--arqa-surface-soft);
  border-block: 1px solid var(--arqa-border);
}

.apartment-project-gallery__heading {
  display: grid;
  gap: 22px;
  align-items: end;
  margin-bottom: 30px;
}

.apartment-project-gallery__heading h2 {
  margin: 0;
  color: var(--color-primary-dark, #3D3470);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.apartment-project-gallery__heading p:not(.section-kicker) {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--color-muted);
  font-size: var(--font-body);
  line-height: 1.7;
}

.apartment-project-gallery__controls {
  display: flex;
  gap: 10px;
}

.apartment-project-gallery__control {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--color-primary, var(--arqa-indigo));
  border: 0;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(77, 65, 138, 0.20);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.apartment-project-gallery__control:hover {
  background: var(--color-primary-dark, #3D3470);
  transform: translateY(-1px);
}

.apartment-project-gallery__rail {
  display: flex;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  padding: 0 2px 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.apartment-project-gallery__rail::-webkit-scrollbar {
  height: 8px;
}

.apartment-project-gallery__rail::-webkit-scrollbar-track {
  background: rgba(77, 65, 138, 0.08);
  border-radius: 999px;
}

.apartment-project-gallery__rail::-webkit-scrollbar-thumb {
  background: rgba(77, 65, 138, 0.32);
  border-radius: 999px;
}

.apartment-project-gallery__item {
  flex: 0 0 82%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--arqa-border);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(77, 65, 138, 0.06);
  scroll-snap-align: start;
}

.apartment-project-gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}


/* =========================================================
   10. Contact form spacing
   ========================================================= */

.location-page > .site-contact-section,
.location-page > .site-contact,
.location-page > .project-contact,
.location-page > .contact-section,
.location-page > .global-contact,
.location-page > .contact-form-section {
  margin-block: 0;
}

/* =========================================================
   10.1 Section CTA buttons
   ========================================================= */

.location-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.location-section-actions--center {
  justify-content: center;
  text-align: center;
}

.location-landmarks .location-section-actions {
  justify-content: center;
  text-align: center;
  margin-top: 34px;
}

.location-section-actions--content {
  margin-top: 38px;
}

/* Desktop / tablet: butoanele din harta si repere sunt centrate */
.location-map .location-section-actions,
.location-landmarks .location-section-actions {
  justify-content: center;
}

/* Desktop / tablet: butoanele din rutina zilnica raman aliniate cu textul */
.location-mature .location-section-actions {
  justify-content: flex-start;
}


/* Mobile: toate CTA-urile la fel ca in hero */
@media (max-width: 767px) {
  .location-hero__actions,
  .location-section-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    margin-top: 28px;
    justify-items: stretch;
  }

  .location-hero__actions .btn,
  .location-section-actions .btn {
    width: 100%;
    min-height: 46px;
    padding-inline: 18px;
    text-align: center;
  }

  .location-map .location-section-actions {
    margin-top: 26px;
  }

  .location-landmarks .location-section-actions {
    margin-top: 28px;
  }

  .location-mature .location-section-actions {
    margin-top: 30px;
  }
}
/* =========================================================
   11. Mobile fine tuning
   ========================================================= */

@media (max-width: 767px) {
  .location-hero {
    padding-top: 34px;
  }

  .location-breadcrumbs {
    margin-bottom: 20px;
    font-size: 12px;
  }

  .location-hero h1 {
    font-size: clamp(38px, 10vw, 48px);
    line-height: 0.98;
  }

  .location-hero__actions .btn {
    width: 100%;
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .location-map__frame {
    margin-inline: -1px;
    border-radius: 24px;
  }

  .location-map__scroll {
    aspect-ratio: 9 / 16;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .location-map__scroll::-webkit-scrollbar {
    display: none;
  }

  .location-map__image {
    width: auto;
    height: 100%;
    max-width: none;
    min-width: 240vw;
    scroll-snap-align: center;
  }

  .location-map__hint {
    display: block;
    padding: 12px 20px 16px;
    color: rgba(61, 52, 112, 0.68);
    background: #ffffff;
    border-top: 1px solid var(--arqa-border);
    font-size: 12px;
    line-height: 1.5;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
  }

  .location-landmark-card {
    padding: 22px;
  }

  .location-advantages__grid {
    gap: 14px;
  }

  .apartment-project-gallery__controls {
    display: none;
  }

  .apartment-project-gallery__item {
    flex-basis: 86%;
  }
}


/* =========================================================
   12. 480px+
   ========================================================= */

@media (min-width: 480px) {
  .location-intro__items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .location-landmarks__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* =========================================================
   13. 640px+
   ========================================================= */

@media (min-width: 640px) {
  .apartment-project-gallery__item {
    flex-basis: 58%;
  }
}


/* =========================================================
   14. 768px+
   ========================================================= */

@media (min-width: 768px) {
  .location-hero {
    padding-block: 72px 82px;
  }

  .location-hero__grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 56px;
  }

  .location-hero__media,
  .location-hero__media img {
    min-height: 390px;
  }

  .location-intro__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 56px;
  }

  .location-intro__items {
    grid-template-columns: 1fr;
  }

  .location-landmarks__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

@media (min-width: 768px) {
  .location-advantages__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .location-advantages__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
  .location-mature__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 56px;
  }

  .location-mature__media,
  .location-mature__media img {
    min-height: 420px;
  }

  .apartment-project-gallery__heading {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .apartment-project-gallery__item {
    flex-basis: 44%;
  }
}


/* =========================================================
   15. 1024px+
   ========================================================= */

@media (min-width: 1024px) {
  .location-hero {
    padding-block: 86px 96px;
  }

  .location-hero__grid {
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
    gap: 72px;
  }

  .location-hero__media,
  .location-hero__media img {
    min-height: 460px;
  }

  .location-intro__grid,
  .location-mature__grid {
    gap: 72px;
  }

  .location-landmarks__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .location-landmark-card {
    min-height: 100%;
  }

  .apartment-project-gallery__item {
    flex-basis: 34%;
  }
}


/* =========================================================
   16. 1280px+
   ========================================================= */

@media (min-width: 1280px) {
  .location-hero__media,
  .location-hero__media img {
    min-height: 500px;
  }

  .location-feature-card,
  .location-landmark-card,
  .location-advantage-card {
    padding: 26px;
  }

  .location-mature__media,
  .location-mature__media img {
    min-height: 460px;
  }
}


/* =========================================================
   17. 1440px+
   ========================================================= */

@media (min-width: 1440px) {
  .location-hero {
    padding-block: 100px 110px;
  }

  .location-hero__grid {
    gap: 86px;
  }

  .location-hero__media,
  .location-hero__media img {
    min-height: 540px;
  }
}


/* =========================================================
   18. Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .btn,
  .apartment-project-gallery__control {
    transition: none;
  }

  .btn-primary:hover,
  .btn-outline:hover,
  .apartment-project-gallery__control:hover {
    transform: none;
  }

  .apartment-project-gallery__rail {
    scroll-behavior: auto;
  }
}