/* =========================================================
   SP — Contact Page (Option 2) — FINAL
   - Full-bleed hero image (no rounded corners)
   - Hero contains ONLY "Contact us"
   - 2x2 info grid (Hours / Phone / Email / Location)
   - Right column is MAP ONLY
   ========================================================= */

   body:has(#sp-contact-page){
    --sp-max: 1200px;
    --sp-pad: 32px;
    --sp-gap: 28px;
  
    --sp-text: #111;
    --sp-muted: rgba(0,0,0,.55);
    --sp-line: rgba(17,17,17,.10);
    --sp-card: #fff;
  
    --sp-radius: 16px;
    --sp-shadow: 0 12px 30px rgba(0,0,0,.08);
  }
  
  /* Container */
  #sp-contact-page .sp-contact-container{
    max-width: var(--sp-max);
    margin: 0 auto;
    padding: 0 var(--sp-pad);
  }
  
  /* ---------------- HERO (full-bleed) ---------------- */
  #sp-contact-page .sp-contact-hero{
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  
    /* no rounded corners */
    border-radius: 0 !important;
  
    position: relative;
  }
  
  /* subtle overlay for readability */
  #sp-contact-page .sp-contact-hero::before{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(
      90deg,
      rgba(0,0,0,.55) 0%,
      rgba(0,0,0,.35) 42%,
      rgba(0,0,0,.10) 100%
    );
  }
  
  #sp-contact-page .sp-contact-hero-inner{
    position: relative;
    max-width: var(--sp-max);
    margin: 0 auto;
    padding: 84px var(--sp-pad) 56px;
  }
  
  #sp-contact-page .sp-contact-hero h1{
    margin: 0;
    color: #fff;
    font-weight: 900;
    letter-spacing: -0.02em;
    font-size: clamp(40px, 4.2vw, 64px);
    line-height: 1.05;
  }
  
  /* ---------------- BODY LAYOUT ---------------- */
  #sp-contact-page .sp-contact-body{
    padding: 34px 0 60px;
  }
  
  #sp-contact-page .sp-contact-container{
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: var(--sp-gap);
    align-items: start;
  }
  
  /* Intro paragraph */
  #sp-contact-page .sp-contact-intro{
    margin: 0 0 18px 0;
    color: var(--sp-muted);
    font-size: 16px;
    line-height: 1.6;
    max-width: 56ch;
  }
  
  /* 2x2 grid */
  #sp-contact-page .sp-contact-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0 18px;
  }
  
  #sp-contact-page .sp-contact-card{
    background: var(--sp-card);
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    padding: 16px 16px 14px;
    box-shadow: 0 8px 22px rgba(0,0,0,.06);
  }
  
  #sp-contact-page .sp-contact-label{
    font-size: 13px;
    font-weight: 800;
    color: rgba(0,0,0,.55);
    margin-bottom: 8px;
    letter-spacing: .02em;
    text-transform: none;
  }
  
  #sp-contact-page .sp-contact-value{
    font-size: 15px;
    line-height: 1.5;
    color: var(--sp-text);
  }
  
  #sp-contact-page .sp-contact-muted{
    color: var(--sp-muted);
    font-size: 13px;
  }
  
  #sp-contact-page .sp-contact-link{
    color: var(--sp-text);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  
  /* Quick note */
  #sp-contact-page .sp-contact-note{
    background: #fff;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    padding: 14px 16px;
    box-shadow: 0 8px 22px rgba(0,0,0,.06);
    color: var(--sp-muted);
    font-size: 14px;
    line-height: 1.55;
    max-width: 62ch;
  }
  
  /* ---------------- MAP (right column) ---------------- */
  #sp-contact-page .sp-contact-map{
    position: sticky;
    top: 120px; /* stays nice on desktop */
    background: #fff;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    overflow: hidden;
    box-shadow: var(--sp-shadow);
  }
  
  #sp-contact-page .sp-contact-map iframe{
    display: block;
    width: 100%;
    height: 520px;
    border: 0;
  }
  
  /* ---------------- RESPONSIVE ---------------- */
  @media (max-width: 980px){
    body:has(#sp-contact-page){ --sp-pad: 22px; }
  
    #sp-contact-page .sp-contact-container{
      grid-template-columns: 1fr;
    }
  
    #sp-contact-page .sp-contact-map{
      position: relative;
      top: auto;
    }
  
    #sp-contact-page .sp-contact-map iframe{
      height: 420px;
    }
  }
  
  @media (max-width: 560px){
    #sp-contact-page .sp-contact-hero-inner{
      padding: 72px var(--sp-pad) 44px;
    }
  
    #sp-contact-page .sp-contact-grid{
      grid-template-columns: 1fr; /* stack cards */
    }
  
    #sp-contact-page .sp-contact-map iframe{
      height: 360px;
    }
  }
  
  /* =========================================================
     SP Contact — FIXES
     1) Center hero title at all widths
     2) Make map section smaller
     3) Remove white gap above hero
     Paste at VERY END
     ========================================================= */

  /* 3) Remove white gap above hero (Astra theme spacing) */
  body:has(#sp-contact-page) .site-content,
  body:has(#sp-contact-page) .content-area,
  body:has(#sp-contact-page) .site-main{
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body:has(#sp-contact-page) .site-content .ast-container{
    padding-top: 0 !important;
  }

  body:has(#sp-contact-page) .entry-header{
    margin: 0 !important;
    padding: 0 !important;
  }

  body:has(#sp-contact-page) .entry-content > *:first-child{
    margin-top: 0 !important;
  }

  body:has(#sp-contact-page) .sp-contact-hero{
    margin-top: 0 !important;
  }

  /* 1) Center "Contact us" */
  #sp-contact-page .sp-contact-hero-inner{
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: 84px var(--sp-pad) 56px !important; /* keep your spacing */
  }
  
  #sp-contact-page .sp-contact-hero h1{
    width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
  }
  
  /* =========================================================
     SP Contact — MAP SIZE CONTROL (SQUARE)
     Paste at VERY END
     ========================================================= */
  
  /* 1) TWEAK THESE */
  body:has(#sp-contact-page){
    --sp-map-size-desktop: 460px; /* ✅ change this (ex: 560px, 620px, 680px) */
    --sp-map-size-mobile:  360px; /* ✅ change this for phones (ex: 320px–420px) */
  }
  
  /* 2) Force right column container to NOT stretch the map bigger than your square */
  #sp-contact-page .sp-contact-map{
    width: 100% !important;
    max-width: var(--sp-map-size-desktop) !important; /* controlled size */
    aspect-ratio: 1 / 1 !important;                  /* always square */
    margin-left: auto !important;                     /* keeps it nicely aligned on the right */
    margin-right: 0 !important;
  
    /* keep your existing styles (safe to restate) */
    overflow: hidden !important;
  }
  
  /* 3) Make iframe fill the square perfectly */
  #sp-contact-page .sp-contact-map iframe{
    width: 100% !important;
    height: 100% !important;  /* key: uses the square container height */
    display: block !important;
    border: 0 !important;
  }
  
  /* 4) Mobile: still square, still controlled */
  @media (max-width: 980px){
    #sp-contact-page .sp-contact-map{
      max-width: var(--sp-map-size-mobile) !important;
      margin-left: 0 !important;  /* full-width friendly on stacked layout */
      margin-right: 0 !important;
    }
  }
  
  /* =========================================================
     SP Contact — Hero H1 (match Figma "How to Rent")
     Figma: color #FFF, font "SF Pro", size 64px, weight 700
  ========================================================= */
  
  body:has(#sp-contact-page) #sp-contact-page .sp-contact-hero h1{
    color: #fff !important;
  
    /* SF Pro if available (Apple devices), otherwise fallback cleanly */
    font-family: "SF Pro Display","SF Pro Text",-apple-system,BlinkMacSystemFont,
                 "Segoe UI",Roboto,Helvetica,Arial,sans-serif !important;
  
    font-size: 50px !important;
    font-weight: 650 !important;
    font-style: normal !important;
  
    /* Figma says “normal” line-height */
    line-height: 1.95 !important; /* if you want closer to “normal”, use 1.15–1.25 */
    letter-spacing: 0 !important;
  
    margin: 0 !important;
  }
  
  @media (max-width: 600px){
    body:has(#sp-contact-page) #sp-contact-page .sp-contact-hero h1{
      font-size: 40px !important;
    }
  }
  