
/* =========================================
   OFFICE LOCATIONS – GLOBAL STYLES
========================================= */

.sfpl-offices {
  --navy: #000000;
  --red: #ed1c24;
  --text: #000000;
  --muted: #667181;
  --border: #e1e6ec;
  --bg: #ffffff;
  --soft: #f7f9fc;

  color: #000000;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
}

.sfpl-offices *,
.sfpl-offices *::before,
.sfpl-offices *::after {
  box-sizing: border-box;
  font-family: inherit;
}

/* =========================================
   TYPOGRAPHY – CONSISTENT SETTINGS
========================================= */

/* All section labels */
.sfpl-offices .sfpl-label,
.sfpl-offices .sfpl-row strong,
.sfpl-offices .sfpl-contact-label,
.sfpl-offices .sfpl-dir {
  color: #000000 !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
}

/* Main headings */
.sfpl-offices .sfpl-info h2 {
  margin: 0 0 18px;
  padding: 0;
  color: #000000 !important;
  font-family: inherit !important;
  font-size: 34px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

/* Body descriptions */
.sfpl-offices .sfpl-desc {
  margin: 0 0 24px;
  color: #000000;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
}

/* Contact descriptions */
.sfpl-offices .sfpl-contact-desc {
  display: block;
  margin-top: 4px;
  color: #667181;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}

/* =========================================
   MAIN GRID
========================================= */

.sfpl-offices__grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  width: 100%;
}

/* =========================================
   LOCATION TABS
========================================= */

.sfpl-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sfpl-tab {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: #ffffff;
  color: #000000 !important;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}

.sfpl-tab__num {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f3f3f3;
  color: #000000 !important;
  font-size: 12px;
  font-weight: 600 !important;
}

.sfpl-tab__txt {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

/* Tab headings */
.sfpl-tab__txt strong {
  color: #000000 !important;
  font-family: inherit;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.3;
}

/* Tab subheadings */
.sfpl-tab__txt small {
  color: #667181 !important;
  font-family: inherit;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.5;
}

.sfpl-tab__arrow {
  color: #000000;
  font-size: 18px;
  line-height: 1;
}

.sfpl-tab:hover {
  background: var(--soft);
}

.sfpl-tab:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* Active tab */
.sfpl-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff !important;
}

.sfpl-tab.active .sfpl-tab__num {
  background: rgba(255,255,255,.18);
  color: #ffffff !important;
}

.sfpl-tab.active .sfpl-tab__txt strong,
.sfpl-tab.active .sfpl-tab__txt small,
.sfpl-tab.active .sfpl-tab__arrow {
  color: #ffffff !important;
}

/* =========================================
   PANELS
========================================= */

.sfpl-panels {
  min-width: 0;
  width: 100%;
}

.sfpl-panel {
  display: none;
  grid-template-columns: minmax(0, 1fr) 460px;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  background: #ffffff;
}

.sfpl-panel.active {
  display: grid;
}

.sfpl-info {
  min-width: 0;
  padding: 40px 42px;
}

/* =========================================
   LOCATION LABEL
========================================= */

.sfpl-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #000000 !important;
  font-family: inherit;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* =========================================
   CONTACT INFORMATION
========================================= */

.sfpl-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  min-width: 0;
}

.sfpl-row strong {
  display: block;
  margin: 0 0 7px;
  color: #000000 !important;
  font-family: inherit;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sfpl-row p {
  margin: 0;
  color: #667181;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.sfpl-row a {
  color: #667181;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .2s ease;
}

.sfpl-row a:hover {
  color: var(--red);
}

.sfpl-row__content {
  flex: 1;
  min-width: 0;
}

.sfpl-row--contact {
  padding-top: 18px;
}

/* =========================================
   CONTACT LINKS
========================================= */

.sfpl-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.sfpl-contact a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.6;
}

.sfpl-contact a span {
  min-width: 0;
}

/* Contact labels */
.sfpl-contact-label {
  display: block;
  margin-bottom: 3px;
  color: #000000 !important;
  font-family: inherit;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* =========================================
   OFFICE HOURS
========================================= */

.sfpl-hours {
  border-top: 1px solid var(--border);
}

/* =========================================
   ICONS
========================================= */

.sfpl-ico {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: var(--red);
  margin-top: 2px;
}

/* =========================================
   GET DIRECTIONS
========================================= */

.sfpl-dir {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  color: #000000 !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  text-decoration: none;
  transition: color .2s ease;
}

.sfpl-dir:hover {
  color: var(--red) !important;
}

/* =========================================
   MAPS
========================================= */

.sfpl-map {
  position: relative;
  min-width: 0;
  min-height: 560px;
  background: var(--soft);
}

.sfpl-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Open in Maps button */
.sfpl-open {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 9px 13px;
  border-radius: 3px;
  background: #ffffff;
  color: #000000 !important;
  font-family: inherit;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.sfpl-open:hover {
  background: #f1f3f4;
  color: #000000 !important;
}

/* =========================================
   TABLET RESPONSIVE
========================================= */

@media (max-width: 1100px) {

  .sfpl-offices__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sfpl-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .sfpl-tab {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px;
  }

  .sfpl-panel {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 42%);
  }

  .sfpl-info {
    padding: 32px 26px;
  }

  .sfpl-map {
    min-height: 480px;
  }
}

/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media (max-width: 700px) {

  .sfpl-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .sfpl-tab {
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    text-align: center;
  }

  .sfpl-tab__num,
  .sfpl-tab__arrow {
    display: none;
  }

  .sfpl-tab__txt {
    align-items: center;
  }

  .sfpl-tab__txt strong {
    font-size: 13px !important;
    font-weight: 600 !important;
  }

  .sfpl-tab__txt small {
    font-size: 11px !important;
  }

  .sfpl-panel,
  .sfpl-panel.active {
    grid-template-columns: minmax(0, 1fr);
  }

  .sfpl-info {
    padding: 28px 20px;
  }

  .sfpl-offices .sfpl-info h2 {
    font-size: 28px !important;
    font-weight: 600 !important;
  }

  .sfpl-desc {
    font-size: 14px;
  }

  .sfpl-map {
    min-height: 320px;
  }

  .sfpl-row p,
  .sfpl-contact a {
    overflow-wrap: anywhere;
  }
}
