@charset "utf-8";

:root {
  --base-width: 1920;
  --base-height: 1080;
  --hero-width: 1225px;
  --hero-scale: min(calc(100vw / var(--base-width)), calc(100vh / var(--base-height)));
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  background: #ececec;
  color: #222;
}

body {
  overflow: hidden;
}

a {
  text-decoration: none;
}

.page {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #efefef;
}

/* 하단 배경 지도 이미지 */
.page-bg-map {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 50.93vh;
  min-height: 320px;
  max-height: 550px;
  background: url(../../images/img_bg_bot.jpg) no-repeat center bottom;
  background-size: cover;
  z-index: 0;
}

.page-bg-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 22, 30, 0.52);
}

/* 화면 중앙 기준 */
.hero {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: calc(var(--hero-width) * var(--hero-scale));
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-inner {
  width: var(--hero-width);
  transform: scale(var(--hero-scale));
  transform-origin: center center;
}

/* 텍스트 */
.hero__content {
  text-align: center;
  letter-spacing: -0.7px;
}

.hero__title {
  margin: 0;
  font-size: 46px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -2px;
  color: #4976c2;
  font-family: 'GmarketSans';
}

.hero__subtitle {
  margin: 0 0 28px;
  font-size: 16px;
  font-weight: 300;
  color: #8ca8cf;
  font-family: 'GmarketSans';
}

.hero__desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 400;
  color: #3f434c;
}

.hero__desc span {
  font-weight: 700;
}

/* 카드 영역 */
.card-row {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: 72px;
}

.parking-link-card {
  width: 355px;
  text-align: center;
  display: block;
  transition: transform 0.3s ease;
}

.parking-link-card__thumb {
  position: relative;
  width: 355px;
  height: 415px;
  border-radius: 42px;
  overflow: hidden;
  border: 6px solid #f7f7f7;
  box-shadow:
    0 28px 50px rgba(45, 63, 90, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  background: #dfe6ef;
}

.parking-link-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.45s ease;
}

.parking-link-card:hover .parking-link-card__thumb img {
  transform: scale(1.08);
}

.parking-link-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.35s ease;
  pointer-events: none;
}

.parking-link-card:hover .parking-link-card__thumb::after {
  background: rgba(0, 0, 0, 0.08);
}

.parking-link-card__label {
  margin: 24px 0 0;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s ease;
  font-family: 'GmarketSans';
}

.parking-link-card:hover .parking-link-card__label {
  transform: translateY(-2px);
}

/* 큰 화면에서는 원본 크기 유지 */
@media (min-width: 1920px) and (min-height: 1080px) {
  .hero {
    width: var(--hero-width);
  }

  .hero-inner {
    transform: scale(1);
  }
}

/* 화면이 낮을 때 살짝 위로 */
@media (max-height: 900px) {
  .hero {
    top: 48%;
  }
}

/* 모바일/태블릿에서는 세로 스택 */
@media (max-width: 1024px) {
  :root {
    --hero-width: 92vw;
  }

  .hero {
    width: 92vw;
    top: 50%;
  }

  .hero-inner {
    width: 100%;
    transform: none;
  }

  .hero__title {
    font-size: clamp(28px, 4vw, 42px);
  }

  .hero__subtitle {
    font-size: clamp(13px, 1.8vw, 16px);
    margin-bottom: 20px;
  }

  .hero__desc {
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.5;
  }

  .card-row {
    gap: 24px;
    margin-top: 40px;
    align-items: center;
  }

  .parking-link-card {
    width: min(100%, 360px);
  }

  .parking-link-card__thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 355 / 415;
    border-radius: 28px;
  }

  .parking-link-card__label {
    font-size: 18px;
    margin-top: 16px;
  }

  .page-bg-map {
    height: 42vh;
  }
}

/* 작은 모바일 */
@media (max-width: 600px) {
  .hero {
    width: 94vw;
    top: 50%;
  }

  .hero__title {
    font-size: 24px;
    letter-spacing: -1px;
  }

  .hero__subtitle {
    font-size: 12px;
    margin-bottom: 16px;
  }

  .hero__desc {
    font-size: 13px;
  }

  .card-row {
    gap: 18px;
    margin-top: 28px;
  }

  .parking-link-card__thumb {
    border-width: 4px;
    border-radius: 22px;
  }

  .parking-link-card__label {
    font-size: 16px;
    margin-top: 12px;
  }
}