/* ==========================================================================
   CITY PAGES (/locations/{city}/)
   Loaded after solutions.css and company.css. Template:
   includes/parts/city-page.php.
   ========================================================================== */

/* Draft markers: only shown while a city page is waiting for SGPL content */
.draft-banner { padding: 10px 0; background: #FFF4D6; border-bottom: 1px solid #F0D58A; color: #5C4300; font-size: 14.5px; }
.draft-note, .draft-box {
  border: 2px dashed #E0B84A;
  border-radius: var(--radius-m);
  background: #FFFBEF;
  color: #5C4300;
}
.draft-note { margin-bottom: 18px; padding: 10px 14px; font-size: 14.5px; }
.draft-box { padding: 20px 22px; }
.draft-box ul { margin-top: 8px; padding-left: 18px; list-style: disc; }
.draft-box li { margin-top: 4px; }
.draft-box__label { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.draft-box--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0; border: 0; background: none; }
.draft-box__slot { display: flex; flex-direction: column; gap: 8px; min-height: 180px; padding: 20px; border: 2px dashed #E0B84A; border-radius: var(--radius-l); background: #FFFBEF; }
.draft-box--small { margin-top: 24px; }

/* Hero: the office card stands where the photo would be */
.city-hero .platform-hero__grid { align-items: center; }
.office-card {
  position: relative;
  padding: clamp(26px, 3vw, 38px);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.office-card__tile { position: absolute; top: 26px; right: 26px; width: 44px; height: 44px; background: var(--c); --bite: 13px; --offset: -3px; }
.office-card__label { color: var(--muted); font-size: 14px; font-weight: 600; }
.office-card__title { margin-top: 4px; padding-right: 60px; font-size: 22px; font-weight: 500; }
.office-card address { margin-top: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-style: normal; font-size: 16px; line-height: 1.6; }
.office-card__links { display: grid; gap: 4px; margin-top: 14px; }
.office-card__links a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ink); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.office-card__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.office-card__links svg { flex: none; width: 20px; height: 20px; color: color-mix(in srgb, var(--c) 60%, var(--ink)); }

/* What we offer: six platforms */
.offer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.offer__item {
  display: flex; gap: 16px;
  height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s;
}
.offer__item:hover { border-color: var(--c); }
.offer__tile { flex: none; width: 34px; height: 34px; background: var(--c); --bite: 10px; --offset: -2px; }
.offer__item strong { display: block; color: var(--ink); font: 500 20px/1.25 var(--font-display); }
.offer__item small { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; }
.offer__item span > span { display: block; margin-top: 8px; font-size: 15px; }

/* How it works locally (once SGPL content is in) */
.local { display: grid; gap: 14px; }
.local li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding: 24px; border-radius: var(--radius-l); background: var(--surface); }
.local h3 { font-size: 20px; font-weight: 500; }
.local p { margin-top: 6px; }

/* Projects nearby (once SGPL content is in) */
.near { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.near__card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
.near__photo { aspect-ratio: 4 / 3; }
.near__body { padding: 18px 20px 20px; }
.near__body h3 { font-size: 19px; font-weight: 500; }
.near__body p { margin-top: 6px; font-size: 15px; }
.city-office-photo { margin-top: 24px; aspect-ratio: 16 / 10; border-radius: var(--radius-l); }

/* Other offices */
.city-others { padding-block: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.city-others__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.city-others__list a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s;
}
.city-others__list a:hover { border-color: var(--ink); }
.city-others__list strong { color: var(--ink); font: 500 19px/1.3 var(--font-display); }
.city-others__list span { color: var(--muted); font-size: 14.5px; }

@media (max-width: 1023px) {
  .offer { grid-template-columns: 1fr 1fr; }
  .near, .draft-box--grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 599px) {
  .offer, .near, .draft-box--grid, .city-others__list { grid-template-columns: minmax(0, 1fr); }
  .offer__item { padding: 18px; }
  .local li { grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 20px; }
  .draft-box__slot { min-height: 0; }
}

/* Visit the office: details and map beside a photo */
.visit { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: stretch; }
.visit__address { margin-top: 18px; font-style: normal; font-size: 17px; line-height: 1.6; }
.visit__address strong { display: block; color: var(--ink); font: 500 19px/1.3 var(--font-display); }
.visit__links { display: grid; gap: 2px; margin-top: 16px; }
.visit__links a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ink); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.visit__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.visit__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--c) 22%, var(--bg)); }
.visit__icon svg { width: 18px; height: 18px; }
.visit__map { margin-top: 20px; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--bg-alt); }
.visit__map iframe { display: block; width: 100%; height: 100%; border: 0; }
.visit__maps { margin-top: 14px; }
.visit__maps svg { width: 18px; height: 18px; }
.visit__photo { margin: 0; min-height: 420px; border-radius: 22px; }

@media (max-width: 1023px) {
  .visit { grid-template-columns: minmax(0, 1fr); }
  .visit__photo { min-height: 0; aspect-ratio: 16 / 9; order: -1; }
}

/* Plain link to the projects showcase under "What we offer" */
.offer__more { margin-top: clamp(24px, 3vw, 32px); }
.offer__more .text-link span { margin-left: 6px; }
