html, body, .location-page {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}

.location-page * {
  box-sizing: border-box;
}

.location-page {
  background: var(--ivory, #f8f3eb);
  color: var(--ink, #181613);
}

.location-hero {
  position: relative;
  padding: 24px 0 60px;
  background: radial-gradient(ellipse at 15% 15%, #ede1d0 0%, transparent 55%),
              linear-gradient(135deg, #fbf7f1 0%, #ede2d1 100%);
  border-bottom: 1px solid var(--line, #e7dac8);
  overflow: hidden;
  width: 100%;
}

.location-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 55px;
  align-items: center;
  padding: 10px 0 20px;
  width: 100%;
}

.location-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(187, 146, 87, 0.12);
  border: 1px solid rgba(187, 146, 87, 0.35);
  color: #8c642e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 16px;
}

.location-hero h1 {
  font: 500 clamp(44px, 5.2vw, 70px) / 1.05 var(--font-heading, 'Cormorant Garamond', serif);
  letter-spacing: -0.5px;
  margin: 0 0 18px;
  color: var(--ink, #181613);
}

.location-hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold, #bb9257);
}

.location-hero-copy {
  min-width: 0;
}

.location-hero-copy > p {
  color: #635749;
  font-size: 15px;
  line-height: 1.8;
  max-width: 540px;
  margin: 0 0 28px;
}

.location-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 32px 0 28px;
  padding: 18px 20px;
  background: rgba(255, 252, 247, 0.85);
  border: 1px solid var(--line, #e7dac8);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  width: 100%;
}

.location-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.location-stat-num {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink, #181613);
}

.location-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #796c5b;
  font-weight: 600;
}

.location-hero-visual {
  position: relative;
  overflow: hidden;
  border-radius: 180px 180px 18px 18px;
  background: #e2d6c4;
  box-shadow: 0 24px 50px rgba(45, 34, 22, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.6);
  width: 100%;
}

.location-hero-visual img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.location-hero-badge {
  position: absolute;
  inset: auto 0 0;
  padding: 45px 24px 22px;
  background: linear-gradient(transparent, rgba(22, 18, 14, 0.88));
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.location-hero-badge span {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #e2c9a1;
  font-weight: 700;
}

.location-hero-badge strong {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 20px;
  font-weight: 500;
}

.matrix-section {
  padding: 60px 0 50px;
  background: #f4ecdf;
  border-bottom: 1px solid var(--line, #e7dac8);
  width: 100%;
  overflow: hidden;
}

.matrix-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.matrix-header h2 {
  font: 500 clamp(32px, 3.8vw, 48px) / 1.1 var(--font-heading, 'Cormorant Garamond', serif);
  margin: 10px 0 14px;
}

.matrix-header p {
  color: #6a5e4f;
  font-size: 14px;
  line-height: 1.7;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  width: 100%;
}

.matrix-card {
  background: var(--paper, #fffcf7);
  border: 1px solid var(--line, #e7dac8);
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.matrix-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(45, 34, 22, 0.08);
}

.matrix-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.matrix-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(187, 146, 87, 0.12);
  display: grid;
  place-items: center;
  color: #8c642e;
  flex-shrink: 0;
}

.matrix-time-pill {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 16px;
  font-weight: 700;
  color: #8c642e;
  background: #fbf5eb;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(187, 146, 87, 0.3);
  white-space: nowrap;
}

.matrix-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--ink, #181613);
}

.matrix-card p {
  color: #726555;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}

.sectors-section {
  padding: 60px 0 70px;
  width: 100%;
  overflow: hidden;
}

.sector-destination {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 32px;
  background: #ffffff;
  border: 1px solid #e5d8c6;
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 36px;
  box-shadow: 0 10px 30px rgba(45, 34, 22, 0.05);
  scroll-margin-top: 105px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.sector-destination:hover {
  border-color: #d4be9f;
  box-shadow: 0 14px 36px rgba(45, 34, 22, 0.08);
}

.sector-media-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #faf6f0;
  border: 1px solid #eadccb;
  border-radius: 14px;
  padding: 16px;
  min-width: 0;
  max-width: 100%;
}

.sector-plan-preview {
  position: relative;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e5d7c4;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 330px;
  margin: 0;
  width: 100%;
  max-width: 100%;
}

.sector-plan-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.35s ease;
}

.sector-plan-preview:hover img {
  transform: scale(1.025);
}

.sector-plan-overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 18, 14, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sector-plan-preview:hover .sector-plan-overlay {
  opacity: 1;
}

.sector-plan-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--ink, #181613);
  font-size: 11.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 30px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.sector-media-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  font-size: 11.5px;
  color: #6a5d4c;
  width: 100%;
}

.sector-media-footer a {
  font-weight: 700;
  color: #8c642e;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.sector-content-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 6px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.sector-header {
  margin-bottom: 14px;
}

.sector-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #926a33;
  margin-bottom: 5px;
}

.sector-content-col h3 {
  font: 500 clamp(30px, 3vw, 40px) / 1.1 var(--font-heading, 'Cormorant Garamond', serif);
  margin: 0 0 10px;
  color: var(--ink, #181613);
  word-break: break-word;
}

.sector-desc {
  color: #695e51;
  font-size: 13.5px;
  line-height: 1.7;
  margin: 0 0 18px;
}

.sector-projects-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
  width: 100%;
  max-width: 100%;
}

.sector-project-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #faf6f0;
  border: 1px solid #eadccb;
  border-radius: 12px;
  transition: all 0.2s ease;
  min-width: 0;
}

.sector-project-card:hover {
  background: #ffffff;
  border-color: #bb9257;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 34, 22, 0.06);
}

.sector-project-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.sector-project-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink, #181613);
  word-break: break-word;
}

.sector-project-sub {
  font-size: 11px;
  color: #796c5b;
  word-break: break-word;
}

.sector-project-arrow {
  color: var(--gold, #bb9257);
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.sector-infra-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 14px;
  margin: 0 0 20px;
  padding: 14px 18px;
  background: #faf6f0;
  border-radius: 12px;
  border: 1px solid #eadccb;
  width: 100%;
  max-width: 100%;
}

.sector-infra-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #554839;
  line-height: 1.45;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.sector-infra-icon {
  color: #8c642e;
  font-weight: bold;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

.sector-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-top: 14px !important;
  border-top: 1px solid var(--line, #e7dac8) !important;
  box-sizing: border-box !important;
}

.sector-actions .btn {
  display: inline-flex !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: 50% !important;
  max-width: 50% !important;
  padding: 12px 10px !important;
  font-size: 12px !important;
  text-align: center !important;
  justify-content: center !important;
  align-items: center !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
  border-radius: 50px !important;
  box-sizing: border-box !important;
}

.location-plan-modal[hidden] {
  display: none !important;
}

.location-plan-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.location-plan-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.location-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 12, 10, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.location-modal-dialog {
  position: relative;
  z-index: 2;
  width: min(94vw, 1100px);
  max-height: 90vh;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.location-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--paper, #fffcf7);
  border-bottom: 1px solid var(--line, #e7dac8);
}

.location-modal-title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink, #181613);
}

.location-modal-close {
  background: #eee3d2;
  border: 0;
  color: var(--ink, #181613);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s;
}

.location-modal-close:hover {
  background: var(--ink, #181613);
  color: #fff;
}

.location-modal-body {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  max-height: calc(90vh - 120px);
  background: #faf6f0;
}

.location-modal-body img {
  max-width: 100%;
  max-height: calc(85vh - 130px);
  object-fit: contain;
  border-radius: 8px;
}

@media (max-width: 1024px) {
  .location-hero-grid,
  .sector-destination {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .sector-destination {
    padding: 18px;
  }
  .sector-content-col {
    padding: 0;
  }
  .sector-plan-preview {
    height: 280px;
  }
  .matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 24px) !important;
  }
  .location-hero {
    padding: 16px 0 40px;
  }
  .location-stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 14px;
  }
  .matrix-grid,
  .sector-infra-grid,
  .sector-projects-list {
    grid-template-columns: 1fr !important;
  }
  .sector-infra-grid {
    padding: 12px 14px;
    gap: 8px;
  }
  .location-hero h1 {
    font-size: 38px;
  }
  .location-hero-visual {
    height: 300px;
    border-radius: 120px 120px 16px 16px;
  }
  .location-hero-visual img {
    height: 100%;
  }
  .sector-destination {
    padding: 14px;
    border-radius: 16px;
    gap: 18px;
  }
  .sector-media-col {
    padding: 12px;
  }
  .sector-plan-preview {
    height: 220px;
  }
  .sector-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding-top: 12px !important;
  }
  .sector-actions .btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: 50% !important;
    max-width: 50% !important;
    padding: 11px 6px !important;
    font-size: 11px !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 380px) {
  .wrap {
    width: calc(100% - 16px) !important;
  }
  .sector-destination {
    padding: 10px;
  }
  .sector-actions {
    gap: 6px !important;
  }
  .sector-actions .btn {
    padding: 10px 4px !important;
    font-size: 10px !important;
  }
}
