﻿/* location.php */
  /* ============================================================
     LOCATION PAGE
     about.php structure / map-focused layout
     ============================================================ */

  .breadcrumb {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .75rem;
    color: rgba(255,255,255,.5);
    margin-bottom: 1.25rem;
  }
  .breadcrumb a {
    color: rgba(255,255,255,.5);
    transition: color .2s;
  }
  .breadcrumb a:hover { color: rgba(255,255,255,.85); }
  .breadcrumb-sep { opacity: .4; }

  .location-hero {
    position: relative;
    overflow: hidden;
    padding-top: 68px;
    background: var(--navy-700);
    min-height: 420px;
    display: flex;
    align-items: flex-end;
  }
  .location-hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('../img/solar-panel2.webp');
    background-size: cover;
    background-position: center 58%;
    background-repeat: no-repeat;
    opacity: 0.98;
  }
  .location-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(30,33,70,.97) 0%, rgba(53,57,104,.86) 55%, rgba(26,26,26,.72) 100%);
  }
  .location-hero__accent {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, transparent 60%, rgba(243,115,33,.055) 100%);
    pointer-events: none;
  }
  .location-hero__content {
    position: relative;
    z-index: 2;
    padding: var(--sp-2xl) 0 var(--sp-xl);
    width: 100%;
  }
  .location-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--orange-500);
    margin-bottom: 1.25rem;
  }
  .location-hero__eyebrow::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--orange-500);
  }
  .location-hero__heading {
    color: var(--white);
    max-width: 760px;
  }
  .location-hero__heading em {
    font-style: normal;
    color: var(--orange-500);
  }
  .location-hero__sub {
    margin-top: 1.25rem;
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(255,255,255,.68);
    max-width: 560px;
    line-height: 1.6;
  }

  /* subnav - same structural logic as about.php */
  .company-subnav {
    position: sticky;
    top: 68px;
    z-index: 900;
    background: var(--white);
    border-bottom: 1px solid var(--sand);
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
  }
  .company-subnav__inner {
    display: flex;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2.5rem;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .company-subnav__inner::-webkit-scrollbar { display: none; }

  .company-subnav__link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .95rem 1.2rem;
    font-size: .825rem;
    font-weight: 700;
    color: var(--grey-500);
    letter-spacing: .02em;
    border: 0;
    border-bottom: 2.5px solid transparent;
    background: none;
    cursor: pointer;
    white-space: nowrap;
    transition: color .2s, border-color .2s;
  }
  .company-subnav__link:hover { color: var(--grey-800); }
  .company-subnav__link.active {
    color: var(--orange-500);
    border-bottom-color: var(--orange-500);
  }

  .location-tab-panel {
    display: none;
  }
  .location-tab-panel.active {
    display: block;
  }

  .location-map-section {
    padding: var(--sp-2xl) 0;
    background: var(--white);
  }

  .location-map-section__header {
    margin-bottom: 1.2rem;
  }

  .location-map-section__title {
    margin: 0;
    font-size: clamp(1.9rem, 2.4vw, 2.5rem);
    line-height: 1.18;
    letter-spacing: -.02em;
    color: var(--grey-900);
  }

  .location-map-section__title span {
    color: var(--grey-700);
    font-weight: 600;
  }

  .location-map-section__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .7rem 1.1rem;
    margin-top: .85rem;
    padding-top: .85rem;
    border-top: 1px solid #e8ebef;
    font-size: .78rem;
    line-height: 1.55;
    letter-spacing: .02em;
    color: var(--grey-600);
    text-transform: uppercase;
  }

  .location-map-section__meta strong {
    color: var(--grey-900);
    font-weight: 700;
    margin-right: .32rem;
  }

  .location-map-section__meta-sep {
    color: #b4b9c2;
  }

  .location-map-section__map {
    position: relative;
    background: #f3f4f6;
    border: 1px solid #e6e8ec;
    box-shadow: 0 12px 28px rgba(15,23,42,.06);
    overflow: hidden;
  }

  .location-map-section__map iframe {
    display: block;
    width: 100%;
    height: 640px;
    border: 0;
    filter: grayscale(.04) contrast(1.02);
  }

  .location-map-section__actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
  }

  @media (max-width: 1024px) {
    :root {
      --sp-xl: 3rem;
      --sp-2xl: 4.5rem;
    }

    .location-map-section__map iframe {
      height: 520px;
    }
  }

  @media (max-width: 768px) {
    :root {
      --sp-xl: 2.5rem;
      --sp-2xl: 3.5rem;
    }

    .location-hero {
      min-height: 360px;
    }

    .company-subnav__inner {
      padding: 0 1.25rem;
    }

    .location-map-section__title {
      font-size: 1.45rem;
      line-height: 1.25;
    }

    .location-map-section__meta {
      font-size: .72rem;
      gap: .45rem .8rem;
    }

    .location-map-section__map iframe {
      height: 380px;
    }

    .location-map-section__actions {
      justify-content: flex-start;
    }
  }

  @media (max-width: 480px) {
    .company-subnav__link {
      padding: .9rem 1rem;
      font-size: .8rem;
    }

    .location-map-section__title {
      font-size: 1.25rem;
    }

    .location-map-section__map iframe {
      height: 300px;
    }
  }