/* =========================================================
   LOCATION.CSS

   예식장 위치 / 주소 / 주차 / 지도 / 길찾기 버튼
========================================================= */


/* =========================================================
   1. Location Map
========================================================= */

.location__map {
  position:
    relative;

  display:
    grid;

  place-items:
    center;

  width:
    100%;

  aspect-ratio:
    1.5;

  overflow:
    hidden;

  border:
    1px solid
    var(--color-line);

  border-radius:
    12px;

  background:
    #ece9e5;

  color:
    var(
      --color-accent-blue,
      #9fbfdf
    );

  font-family:
    "SUIT-Light",
    sans-serif;

  font-size:
    10px;

  font-weight:
    300;

  line-height:
    1.8;

  letter-spacing:
    var(--tracking-widest);

  text-align:
    center;

  box-shadow:
    0 8px 18px
    rgba(0, 0, 0, 0.04);

  min-height:
    clamp(360px, 65vw, 385px);
}


/* =========================================================
   2. Location Details
========================================================= */

.location__details {
  padding:
    clamp(22px, 5.5vw, 28px)
    0
    clamp(20px, 5vw, 24px);

  border-bottom:
    1px solid
    var(--color-line);
}


/* =========================================================
   3. Address
========================================================= */

.location__address {
  margin:
    0;

  color:
    var(--color-ink);

  font-family:
    "SUIT-Light",
    sans-serif;

  font-size:
    clamp(13px, 3.5vw, 14px);

  font-weight:
    300;

  line-height:
    1.7;

  letter-spacing:
    -0.015em;

  word-break:
    keep-all;
}


/* =========================================================
   4. Parking
========================================================= */

.location__parking {
  margin:
    6px 0 0;

  color:
    var(--color-muted);

  font-family:
    "SUIT-Light",
    sans-serif;

  font-size:
    clamp(12px, 3.1vw, 13px);

  font-weight:
    300;

  line-height:
    1.7;

  letter-spacing:
    -0.01em;

  word-break:
    keep-all;
}


/* =========================================================
   5. Navigation Buttons
========================================================= */

.location__buttons {
  display:
    grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap:
    clamp(6px, 2vw, 8px);

  width:
    100%;

  margin-top:
    clamp(16px, 4.5vw, 20px);
}


.location__buttons
.outline-button {
  width:
    100%;

  min-width:
    0;

  min-height:
    42px;

  padding:
    0
    clamp(10px, 3vw, 16px);

  border:
    1px solid
    var(--color-line);

  background:
    rgba(255, 255, 255, 0.32);

  color:
    var(--color-ink);

  font-family:
    "SUIT-Light",
    sans-serif;

  font-size:
    clamp(14px, 2.8vw, 15px);

  font-weight:
    300;

  letter-spacing:
    var(--tracking-wide);

  white-space:
    nowrap;

  transition:
    transform
    var(--motion-fast)
    var(--ease-standard),

    background-color
    var(--motion-fast)
    var(--ease-standard),

    border-color
    var(--motion-fast)
    var(--ease-standard),

    box-shadow
    var(--motion-fast)
    var(--ease-standard);
}


/* =========================================================
   6. Button Hover
========================================================= */

@media (hover: hover) {

  .location__buttons
  .outline-button:hover {
    background:
      rgba(159, 191, 223, 0.08);

    border-color:
      rgba(159, 191, 223, 0.45);

    box-shadow:
      0 6px 14px
      rgba(0, 0, 0, 0.04);
  }

}


/* =========================================================
   7. Map Loading
========================================================= */

.location__map-loading {
  position:
    absolute;

  inset:
    0;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  padding:
    20px;

  color:
    var(--color-muted);

  font-family:
    "SUIT-Light",
    sans-serif;

  font-size:
    11px;

  font-weight:
    300;

  letter-spacing:
    -0.01em;
}


/* =========================================================
   8. NAVER MAP PLACE LABEL
========================================================= */

.location-naver-label {
  padding:
    6px 10px;

  color:
    var(--color-ink);

  font-family:
    "SUIT-Regular",
    sans-serif;

  font-size:
    12px;

  font-weight:
    400;

  line-height:
    1;

  letter-spacing:
    -0.02em;

  white-space:
    nowrap;
}


/* =========================================================
   9. Disabled Navigation
========================================================= */

.location__buttons
[aria-disabled="true"] {
  pointer-events:
    none;

  opacity:
    0.45;
}


/* =========================================================
   10. TRANSPORT GUIDE
========================================================= */

.location-guide {
  width:
    100%;

  /*
    기존보다 조금 촘촘하게
  */

  margin-top:
    clamp(20px, 5vw, 24px);

  text-align:
    left;

  border-top:
    1px solid
    rgba(48, 58, 82, 0.10);
}


/* =========================================================
   11. GUIDE ITEM
========================================================= */

.location-guide__item {
  /*
    기존 18~22px보다 축소
  */

  padding:
    clamp(14px, 4vw, 17px)
    0;

  border-bottom:
    1px solid
    rgba(48, 58, 82, 0.10);
}


/* =========================================================
   12. GUIDE HEADING
========================================================= */

.location-guide__head {
  display:
    flex;

  align-items:
    center;

  gap:
    9px;

  margin-bottom:
    7px;
}


/* =========================================================
   13. ICON BADGE
========================================================= */

.location-guide__icon-badge {
  display:
    inline-flex;

  width:
    32px;

  height:
    32px;

  flex:
    0 0 32px;

  align-items:
    center;

  justify-content:
    center;

  border:
    1px solid
    rgba(159, 191, 223, 0.42);

  border-radius:
    50%;

  background:
    rgba(159, 191, 223, 0.09);
}


/* =========================================================
   14. ICON SVG
========================================================= */

.location-guide__icon-svg {
  width:
    17px;

  height:
    17px;

  fill:
    none;

  stroke:
    var(
      --color-accent-blue,
      #9fbfdf
    );

  stroke-width:
    1.9;

  stroke-linecap:
    round;

  stroke-linejoin:
    round;
}


/* =========================================================
   15. GUIDE TITLE
========================================================= */

.location-guide__title {
  margin:
    0;

  color:
    var(
      --color-accent-blue,
      #9fbfdf
    );

  font-family:
    "SUIT-Regular",
    sans-serif;

  /*
    기존보다 살짝 크게
  */

  font-size:
    clamp(17px, 4.5vw, 19px);

  font-weight:
    400;

  line-height:
    1.3;

  letter-spacing:
    -0.02em;
}


/* =========================================================
   16. GUIDE BODY
========================================================= */

.location-guide__body {
  padding-left:
    41px;

  color:
    var(--color-ink);

  font-family:
    "SUIT-Light",
    sans-serif;

  /*
    기존 13.5~14.5px보다 확대
  */

  font-size:
    clamp(14.5px, 3.8vw, 15.5px);

  font-weight:
    300;

  line-height:
    1.55;

  letter-spacing:
    -0.015em;

  word-break:
    keep-all;
}


.location-guide__body p {
  margin:
    0;
}


.location-guide__body
p + p {
  margin-top:
    3px;
}


/* =========================================================
   17. LABEL
========================================================= */

.location-guide__label {
  margin-right:
    5px;

  color:
    var(--color-muted);
}


/* =========================================================
   18. MERGED CAR + PARKING
========================================================= */

/*
  자차 내용 아래에
  주차 내용을 자연스럽게 이어 붙임
*/

.location-guide__parking-merged {
  margin-top:
    12px;

  margin-left:
    41px;

  padding-top:
    11px;

  border-top:
    1px dashed
    rgba(48, 58, 82, 0.11);
}


/*
  부모가 이미 41px 들어가 있으므로
  주차 내용은 추가 들여쓰기 제거
*/

.location-guide__body--parking {
  padding-left:
    0;
}


/* =========================================================
   19. ROUTE
========================================================= */

.location-guide__route
+
.location-guide__route {
  /*
    기존 14px → 조금 축소
  */

  margin-top:
    10px;
}


.location-guide__route-title {
  display:
    flex;

  flex-wrap:
    wrap;

  align-items:
    baseline;

  gap:
    5px;
}


.location-guide__route-title
strong {
  color:
    var(--color-ink);

  font-family:
    "SUIT-Regular",
    sans-serif;

  font-size:
    clamp(15px, 4vw, 16px);

  font-weight:
    400;

  line-height:
    1.4;
}


.location-guide__route-title
span {
  color:
    var(--color-ink);

  font-family:
    "SUIT-Light",
    sans-serif;

  font-size:
    clamp(14.5px, 3.8vw, 15.5px);

  font-weight:
    300;

  line-height:
    1.4;
}


.location-guide__route p {
  margin-top:
    2px;

  color:
    var(--color-muted);

  font-size:
    clamp(13.5px, 3.5vw, 14.5px);

  line-height:
    1.5;
}


/* =========================================================
   20. ARROW
========================================================= */

.location-guide__arrow {
  display:
    inline-block;

  margin:
    0 3px;

  color:
    rgba(48, 58, 82, 0.40);

  font-size:
    12px;

  line-height:
    1;
}


/* =========================================================
   21. SUBWAY
========================================================= */

.location-guide__subway {
  --line-color:
    var(
      --color-accent-blue,
      #9fbfdf
    );

  display:
    inline-flex;

  align-items:
    center;

  gap:
    8px;

  margin:
    0 0 2px;

  color:
    var(--color-ink) !important;

  font-family:
    "SUIT-Regular",
    sans-serif;

  font-size:
    clamp(15px, 4vw, 16px);

  font-weight:
    400;

  line-height:
    1.4;
}


.location-guide__subway::before {
  width:
    10px;

  height:
    10px;

  flex:
    0 0 10px;

  border-radius:
    50%;

  background:
    var(--line-color);

  content:
    "";
}


/* =========================================================
   22. SUBWAY LINE COLORS
========================================================= */

/* 1호선 */

.location-guide__subway--line1 {
  --line-color:
    #0052a4;
}


/* 2호선 */

.location-guide__subway--line2 {
  --line-color:
    #00a84d;
}


/* 6호선 */

.location-guide__subway--line6 {
  --line-color:
    #cd7c2f;
}


/* 경의중앙선 */

.location-guide__subway--gyeongui {
  --line-color:
    #77c4a3;
}


/* =========================================================
   23. PARKING NOTICE
========================================================= */

.location-guide__notice {
  margin-top:
    4px !important;

  color:
    var(--color-muted) !important;

  font-size:
    clamp(13.5px, 3.5vw, 14.5px);

  line-height:
    1.55;

  white-space:
    pre-line;
}


/* =========================================================
   24. FLOWER NOTICE
========================================================= */

.location-guide__flower {
  margin-top:
    18px;

  padding:
    17px 18px;

  border:
    1px solid
    rgba(159, 191, 223, 0.20);

  border-radius:
    15px;

  background:
    rgba(255, 255, 255, 0.38);

  text-align:
    center;

  box-shadow:
    0 6px 18px
    rgba(48, 58, 82, 0.035);
}


.location-guide__flower-title {
  margin:
    0 0 7px;

  color:
    var(
      --color-accent-blue,
      #9fbfdf
    );

  font-family:
    "SUIT-Regular",
    sans-serif;

  font-size:
    clamp(15px, 4vw, 16px);

  font-weight:
    500;

  line-height:
    1.4;

  letter-spacing:
    -0.02em;
}


.location-guide__flower-text {
  margin:
    0;

  color:
    var(--color-muted);

  font-family:
    "SUIT-Light",
    sans-serif;

  font-size:
    clamp(13.5px, 3.6vw, 14.5px);

  font-weight:
    300;

  line-height:
    1.7;

  letter-spacing:
    -0.02em;

  word-break:
    keep-all;
}


/* =========================================================
   25. SMALL MOBILE
========================================================= */

@media (max-width: 360px) {

  .location__map {
    aspect-ratio:
      1.55;
  }


  .location__buttons {
    gap:
      6px;
  }


  .location__buttons
  .outline-button {
    padding:
      0 8px;

    font-size:
      9.5px;

    letter-spacing:
      0.01em;
  }


  .location-guide {
    margin-top:
      20px;
  }


  .location-guide__item {
    padding:
      13px 0;
  }


  .location-guide__head {
    gap:
      8px;

    margin-bottom:
      6px;
  }


  .location-guide__icon-badge {
    width:
      30px;

    height:
      30px;

    flex-basis:
      30px;
  }


  .location-guide__icon-svg {
    width:
      16px;

    height:
      16px;
  }


  .location-guide__title {
    font-size:
      16px;
  }


  .location-guide__body {
    padding-left:
      38px;

    font-size:
      14px;

    line-height:
      1.5;
  }


  .location-guide__parking-merged {
    margin-top:
      10px;

    margin-left:
      38px;

    padding-top:
      9px;
  }


  .location-guide__body--parking {
    padding-left:
      0;
  }


  .location-guide__route
  +
  .location-guide__route {
    margin-top:
      9px;
  }


  .location-guide__route-title
  strong,
  .location-guide__subway {
    font-size:
      14.5px;
  }


  .location-guide__route-title
  span {
    font-size:
      14px;
  }


  .location-guide__route p,
  .location-guide__notice {
    font-size:
      13px;
  }


  .location-guide__flower {
    margin-top:
      15px;

    padding:
      15px 13px;
  }


  .location-guide__flower-title {
    font-size:
      15px;
  }


  .location-guide__flower-text {
    font-size:
      13px;

    line-height:
      1.65;
  }

}


/* =========================================================
   26. Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .location__buttons
  .outline-button {
    transition:
      none;
  }

}