/* CONTACT PAGE — refined layout matching reference */
.contact-page{
  --contact-cream:var(--cream,#f4eadc);
  --contact-red:var(--red,#8b0304);
  --contact-ink:#100d0b;
  --contact-muted:#766a61;
  --contact-line:rgba(139,3,4,.28);
  background:var(--contact-cream);
  color:var(--contact-ink);
}

.contact-container{
  width:min(1120px,calc(100% - 72px));
  margin:0 auto;
}

.contact-section--refined{
  padding:155px 0 78px;
  background:var(--contact-cream);
}

.contact-grid{
  display:grid;
  grid-template-columns:.82fr 1.18fr;
  gap:112px;
  align-items:start;
}

.contact-info{
  padding-top:10px;
}

.contact-info h2,
.property-heading{
  margin:0;
  font-family:var(--font-title);
  font-size:31px;
  line-height:1.08;
  font-weight:400;
  letter-spacing:-.015em;
  text-transform:none;
  color:#070504;
}

.contact-info h2{
  margin-bottom:42px;
}

.contact-list{
  display:grid;
  gap:30px;
}

.contact-item h3{
  margin:0;
  font-family:var(--font-title);
  font-size:17px;
  line-height:1.25;
  font-weight:400;
  color:#140f0d;
}

.contact-item-title{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}

.contact-main-icon{
  flex:0 0 15px;
  width:15px;
  height:15px;
  color:rgba(139,3,4,.85);
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.contact-main-icon svg{
  width:15px;
  height:15px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.45;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.contact-item p{
  margin:0;
  font-size:14px;
  line-height:1.65;
  font-weight:400;
  color:#26211e;
}

.contact-item a,
.property-location-item a{
  color:inherit;
  text-decoration:none;
  transition:color .3s ease, opacity .3s ease;
}

.contact-item a:hover,
.property-location-item a:hover{
  color:var(--contact-red);
}

.contact-form{
  display:grid;
  gap:24px 26px;
}

.form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
}

.contact-form label{
  display:block;
}

.contact-form span{
  display:block;
  margin:0 0 12px;
  color:#140f0d;
  font-size:12px;
  line-height:1;
  font-weight:600;
  letter-spacing:2px;
  text-transform:uppercase;
}

.contact-form input,
.contact-form textarea{
  width:100%;
  border:0;
  border-bottom:1px solid var(--contact-line);
  border-radius:0;
  background:transparent;
  outline:none;
  padding:0 0 12px;
  color:#1d1714;
  font-family:var(--font-body);
  font-size:13px;
  line-height:1.5;
  box-shadow:none;
  transition:border-color .3s ease, color .3s ease;
}

.contact-form textarea{
  min-height:92px;
  resize:vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder{
  color:rgba(38,33,30,.48);
}

.contact-form input:focus,
.contact-form textarea:focus{
  border-bottom-color:var(--contact-red);
}

.contact-form button{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  justify-self:start;
  min-width:154px;
  height:42px;
  margin-top:0;
  border:1px solid var(--contact-red);
  background:transparent;
  color:var(--contact-red);
  padding:0 28px;
  font-size:14px;
  line-height:1;
  font-weight:600;
  letter-spacing:2px;
  text-transform:uppercase;
  cursor:pointer;
  transition:color .35s ease, transform .35s ease, border-color .35s ease;
}

.contact-form button::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:var(--contact-red);
  transform:scaleX(0);
  transform-origin:left center;
  transition:transform .52s cubic-bezier(.22,.72,.22,1);
}

.contact-form button:hover{
  color:#fff;
  transform:translateY(-1px);
  border-color:var(--contact-red);
}

.contact-form button:hover::before{
  transform:scaleX(1);
}

.contact-property-section{
  padding:75px 0 72px;
  background:var(--contact-cream);
}

.property-heading{
  text-align:center;
  font-size:34px;
  margin-bottom:52px;
}

.property-location-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px 45px;
}

.property-location-item h3{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:0 0 10px;
  font-family:var(--font-title);
  font-size:14px;
  line-height:1.28;
  font-weight:400;
  color:#15100e;
}

.property-number{
  flex-shrink:0;
  width:22px;
  height:22px;
  margin-top:-2px;
  border:1px solid rgba(139,3,4,.22);
  border-radius:50%;
  background:rgba(139,3,4,.025);
  color:rgba(139,3,4,.82);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-family:var(--font-body);
  font-size:9px;
  line-height:1;
  font-weight:500;
  letter-spacing:.06em;
  transition:border-color .35s ease, background .35s ease, color .35s ease;
}

.property-location-item:hover .property-number{
  border-color:rgba(139,3,4,.38);
  background:rgba(139,3,4,.045);
  color:rgba(139,3,4,.96);
}

.property-info-row{
  display:flex;
  align-items:flex-start;
  gap:9px;
  margin:0 0 4px;
  font-size:14px;
  line-height:1.48;
  color:#1f1a17;
}

.property-icon{
  flex:0 0 13px;
  width:13px;
  height:13px;
  margin-top:3px;
  color:rgba(139,3,4,.82);
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.property-icon svg{
  width:13px;
  height:13px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.45;
  stroke-linecap:round;
  stroke-linejoin:round;
}







/* CONTACT HERO BANNER */
.contact-hero{
  position:relative;
  height:75vh;
  min-height:620px;
  overflow:hidden;
  background:#0f0b09;
}

.contact-hero .career-hero-media{
  position:absolute;
  inset:0;
  z-index:1;
}

.contact-hero .career-hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform:scale(1.02);
  filter:saturate(.92) contrast(1.02);
}

.contact-hero .career-hero-overlay{
  position:absolute;
  inset:0;
  z-index:2;
  background:linear-gradient(to bottom,rgba(12,10,9,.18) 0%,rgba(12,10,9,.32) 45%,rgba(12,10,9,.58) 100%);
}

.contact-hero .career-hero-content{
  position:relative;
  z-index:3;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:140px 32px 80px;
}

.contact-hero .career-hero-content h1{
  margin:0;
  font-size:30px;
  line-height:1;
  font-weight:400;
  color:#f4eadf;
  text-shadow:0 6px 34px rgba(0,0,0,.34);
}

@media(max-width:1024px){
  .contact-section--refined{
    padding-top:130px;
  }

  .contact-grid{
    gap:72px;
  }

  .property-location-grid{
    gap:24px 44px;
  }
}

@media(max-width:820px){
  .contact-container{
    width:min(680px,calc(100% - 44px));
  }

  .contact-section--refined{
    padding:112px 0 62px;
  }

  .contact-grid{
    grid-template-columns:1fr;
    gap:54px;
  }

  .contact-info{
    text-align:center;
  }

  .form-row{
    grid-template-columns:1fr;
    gap:24px;
  }

  .contact-form button{
    width:100%;
  }

  .property-location-grid{
    grid-template-columns:1fr 1fr;
  }

  .contact-hero{
    height:58vh;
    min-height:520px;
  }

  .contact-hero .career-hero-content{
    padding-top:120px;
  }

  .contact-hero .career-hero-content h1{
    font-size:clamp(48px,12vw,76px);
  }

  
}

@media(max-width:560px){
  .contact-container{
    width:calc(100% - 44px);
  }

  .contact-section--refined{
    padding:104px 0 58px;
  }

  .contact-info h2,
  .property-heading{
    font-size:30px;
  }

  .contact-list{
    gap:24px;
  }

  .contact-form{
    gap:25px;
  }

  .contact-form span{
    letter-spacing:.20em;
  }

  .contact-property-section{
    padding:62px 0 54px;
  }

  .property-heading{
    margin-bottom:34px;
  }

  .property-location-grid{
    grid-template-columns:1fr;
    gap:24px;
  }

  .property-location-item{
    text-align:center;
  }

  .property-location-item h3{
    justify-content:center;
  }

  .property-info-row{
    justify-content:center;
  }

  

  

  .contact-hero{
    height:54vh;
    min-height:440px;
  }

  .contact-hero .career-hero-content{
    padding:110px 24px 60px;
  }

  .contact-hero .career-hero-content h1{
    font-size:30px;
    line-height:1.08;
  }
}


/* =========================================================
   CONTACT MAP — FULL WIDTH / NO CUT / CENTER PRIORITY
   - Desktop: full width, full image visible, no crop.
   - Mobile: responsive width, centered image, no horizontal scroll.
========================================================= */

.contact-page .contact-map-section--flush,
.contact-map-section.contact-map-section--flush{
  width:100%;
  height:auto;
  padding:0;
  margin:0;
  overflow:hidden;
  background:var(--contact-cream,#f4eadc);
}

.contact-page .contact-map-image,
.contact-map-section .contact-map-image{
  width:100%;
  height:auto;
  min-height:0;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:#d9d3c6;
}

.contact-page .contact-map-image img,
.contact-map-section .contact-map-image img{
  position:relative;
  inset:auto;
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  min-width:0;
  max-height:none;
  object-fit:contain;
  object-position:center center;
  transform:none;
  transform-origin:center center;
}

/* Tablet: keep the full map visible and centered */
@media(max-width:1024px){
  .contact-page .contact-map-image,
  .contact-map-section .contact-map-image{
    width:100%;
  }

  .contact-page .contact-map-image img,
  .contact-map-section .contact-map-image img{
    width:100%;
    height:auto;
    object-fit:contain;
    object-position:center center;
    transform:none;
  }
}

/* Mobile: no crop, no side-scroll, center preserved when screen narrows */
@media(max-width:768px){
  .contact-page .contact-map-section--flush,
  .contact-map-section.contact-map-section--flush{
    width:100%;
    height:auto;
  }

  .contact-page .contact-map-image,
  .contact-map-section .contact-map-image{
    width:100%;
    height:auto;
    overflow:hidden;
  }

  .contact-page .contact-map-image img,
  .contact-map-section .contact-map-image img{
    width:100%;
    height:auto;
    max-width:100%;
    object-fit:contain;
    object-position:center center;
    transform:none;
  }
}

/* Small mobile: still show entire map, centered */
@media(max-width:560px){
  .contact-page .contact-map-image img,
  .contact-map-section .contact-map-image img{
    width:100%;
    height:auto;
    object-fit:contain;
    object-position:center center;
  }
}



/* =========================================================
   CONTACT SINGLE PROPERTY — Little Hoi An only
   Keep contact form + map, remove destination grid from HTML
========================================================= */
.contact-list--single-property{
  gap:26px;
}

.contact-list--single-property .contact-item{
  padding-bottom:24px;
  border-bottom:1px solid rgba(139,3,4,.16);
}

.contact-list--single-property .contact-item:last-child{
  padding-bottom:0;
  border-bottom:0;
}

.contact-list--single-property .contact-item-title{
  margin-bottom:8px;
}

.contact-info h2{
  max-width:360px;
}

@media(max-width:820px){
  .contact-info h2{
    max-width:none;
    margin-inline:auto;
  }

  .contact-list--single-property .contact-item-title{
    justify-content:center;
  }
}

/* =========================================================
   CONTACT GOOGLE MAP — LUXURY SINGLE LOCATION MAP
   Replaces static map image with interactive Google Map for Little Residence only.
   Scoped to contact page only.
========================================================= */

.contact-page .contact-map-section--flush,
.contact-map-section.contact-map-section--flush{
  width:100% !important;
  height:auto !important;
  padding:0 !important;
  margin:0 !important;
  overflow:hidden !important;
  background:var(--contact-cream,#f4eadc) !important;
}

.contact-lhag-map-wrap{
  position:relative;
  width:100%;
  height:clamp(520px,64vh,720px);
  min-height:520px;
  overflow:hidden;
  background:#f4f1e9;
}

.contact-lhag-map{
  width:100%;
  height:100%;
  background:#f4f1e9;
}

.contact-map-wash{
  position:absolute;
  inset:0;
  z-index:4;
  pointer-events:none;
  background:
    linear-gradient(
      90deg,
      rgba(244,241,233,.30) 0%,
      rgba(232,230,222,.12) 38%,
      rgba(232,230,222,0) 72%
    ),
    linear-gradient(
      180deg,
      rgba(244,241,233,.06) 0%,
      rgba(232,230,222,0) 45%,
      rgba(222,222,216,.12) 100%
    );
}

/* Pulsing marker + compact label */

.contact-map-marker{
  position:absolute;
  min-width:18px;
  height:18px;
  padding:0;
  margin:0;
  border:0;
  background:transparent;
  transform:translate(-50%,-50%);
  pointer-events:auto;
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
}

.contact-map-marker::before{
  content:"";
  position:absolute;
  left:9px;
  top:9px;
  width:42px;
  height:42px;
  border-radius:50%;
  background:rgba(139,3,4,.18);
  transform:translate(-50%,-50%) scale(.65);
  animation:contactMapPulse 1.8s ease-out infinite;
}

.contact-map-marker::after{
  content:"";
  position:absolute;
  left:9px;
  top:9px;
  width:14px;
  height:14px;
  border-radius:50%;
  background:#8b0304;
  border:3px solid #f4f1e9;
  box-shadow:
    0 0 0 1px rgba(139,3,4,.32),
    0 8px 22px rgba(43,39,35,.22);
  transform:translate(-50%,-50%);
}

.contact-map-marker-label{
  position:absolute;
  left:22px;
  top:50%;
  transform:translateY(-50%);
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:0 11px;
  background:rgba(244,241,233,.90);
  border:1px solid rgba(139,3,4,.16);
  box-shadow:0 10px 26px rgba(43,39,35,.10);
  backdrop-filter:blur(8px);
  color:#2b2723;
  font-family:var(--font-body);
  font-size:11px;
  line-height:1;
  font-weight:600;
  letter-spacing:.035em;
  white-space:nowrap;
  pointer-events:none;
  transition:
    color .28s ease,
    border-color .28s ease,
    background .28s ease,
    transform .28s ease;
}

.contact-map-marker:hover .contact-map-marker-label,
.contact-map-marker:focus-visible .contact-map-marker-label{
  color:#8b0304;
  border-color:rgba(139,3,4,.28);
  background:rgba(244,241,233,.98);
  transform:translateY(-50%) translateX(2px);
}

.contact-map-marker:hover::before,
.contact-map-marker:focus-visible::before{
  background:rgba(139,3,4,.24);
}

.contact-map-marker:hover::after,
.contact-map-marker:focus-visible::after{
  background:#9d1214;
}

@keyframes contactMapPulse{
  0%{
    opacity:.75;
    transform:translate(-50%,-50%) scale(.45);
  }

  70%{
    opacity:0;
    transform:translate(-50%,-50%) scale(1.28);
  }

  100%{
    opacity:0;
    transform:translate(-50%,-50%) scale(1.28);
  }
}

/* Google popup refinement */

.contact-lhag-map-wrap .gm-style button{
  box-shadow:none !important;
}

.contact-lhag-map-wrap .gm-style .gm-style-iw-c{
  border-radius:0 !important;
  box-shadow:0 18px 45px rgba(43,39,35,.16) !important;
  background:#f4f1e9 !important;
}

.contact-lhag-map-wrap .gm-style .gm-style-iw-d{
  overflow:hidden !important;
}

.contact-lhag-map-wrap .gm-style .gm-style-iw-tc::after{
  background:#f4f1e9 !important;
}

.contact-map-popup{
  padding:8px 4px 5px;
  max-width:290px;
  font-family:var(--font-body);
  color:#4e4e4e;
}

.contact-map-popup h3{
  margin:0 0 8px;
  font-family:var(--font-title);
  font-size:18px;
  line-height:1.18;
  font-weight:400;
  color:#2b2723;
}

.contact-map-popup strong{
  display:block;
  margin:0 0 8px;
  color:#8b0304;
  font-size:11px;
  line-height:1.35;
  font-weight:600;
  letter-spacing:.04em;
}

.contact-map-popup p{
  margin:0;
  font-size:13px;
  line-height:1.7;
  color:#4e4e4e;
}

.contact-map-popup a{
  color:#4e4e4e;
  text-decoration:none;
  transition:color .25s ease;
}

.contact-map-popup a:hover{
  color:#8b0304;
}

@media(max-width:820px){
  .contact-lhag-map-wrap{
    height:560px;
    min-height:560px;
  }

  .contact-map-marker-label{
    font-size:10px;
    min-height:24px;
    padding:0 9px;
  }
}

@media(max-width:560px){
  .contact-lhag-map-wrap{
    height:460px;
    min-height:460px;
  }

  .contact-map-marker-label{
    display:none;
  }
}


/* Residence map final accent / single-location safety */
.contact-lhag-map-wrap .contact-map-marker::before{
  background:rgba(139,3,4,.18);
}

.contact-lhag-map-wrap .contact-map-marker::after{
  background:#8b0304;
  box-shadow:
    0 0 0 1px rgba(139,3,4,.32),
    0 8px 22px rgba(43,39,35,.22);
}

.contact-lhag-map-wrap .contact-map-marker:hover::after,
.contact-lhag-map-wrap .contact-map-marker:focus-visible::after{
  background:#9d1214;
}
