@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap");

:root {
  color-scheme: light;
  --bg: #f6f4f1;
  --bg-soft: #ffffff;
  --text: #1c1c1c;
  --muted: #6b6b6b;
  --accent: #1f4b42;
  --accent-soft: #e1edea;
  --border: #e4e0db;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Noto Sans KR", system-ui, -apple-system, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 244, 241, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__badge {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.brand__name {
  font-size: 18px;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}

.nav a:hover {
  color: var(--accent);
}

.hero {
  padding: 80px 0 60px;
}

.hero__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero__eyebrow {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 46px);
  margin-bottom: 14px;
}

.hero__desc {
  color: var(--muted);
  margin-bottom: 24px;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero__meta {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  flex-wrap: wrap;
}

.hero__media {
  display: grid;
  gap: 18px;
}

.hero__image {
  border-radius: 20px;
  min-height: 280px;
  overflow: hidden;
}

.hero__image img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 20px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.hero__stats div {
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.hero__stats strong {
  display: block;
  font-size: 16px;
}

.hero__stats span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 70px 0;
}

.section--soft {
  background: #fdfcfb;
}

.section__title {
  margin-bottom: 32px;
}

.section__title h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 10px;
}

.section__title p {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
}

.card--outline {
  border: 1px solid var(--border);
  box-shadow: none;
}

.card--quote {
  border-left: 4px solid var(--accent);
}

.card--recommend {
  text-align: center;
  border: 1px solid var(--border);
  background: #fff;
}

.recommend-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.card--quote p {
  font-style: italic;
}

.card__author {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.location {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}

.location__map {
  border-radius: 18px;
  min-height: 260px;
  overflow: hidden;
}

.location__map img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: 18px;
}

.list {
  display: grid;
  gap: 12px;
  padding-left: 18px;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tags span {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
}

.cta {
  padding: 60px 0;
  background: var(--accent);
  color: #ffffff;
}

.cta__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer {
  padding: 30px 0 50px;
  background: #111614;
  color: #f3f1ed;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__meta {
  display: flex;
  gap: 14px;
  color: #bcb6af;
  font-size: 14px;
  flex-wrap: wrap;
}

.button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s ease;
}

.button--primary {
  background: var(--accent);
  color: #ffffff;
}

.button--primary:hover {
  opacity: 0.85;
}

.button--ghost {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.button--ghost:hover {
  background: var(--accent);
  color: #ffffff;
}

/* Gallery Filter */
.gallery-filter {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  transition: 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Space Features (Zigzag) */
.space-features {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.space-feature {
  display: flex;
  align-items: center;
  gap: 40px;
}

.space-feature:nth-child(even) {
  flex-direction: row-reverse;
}

.space-feature__content {
  flex: 1;
}

.space-feature__content h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.space-feature__content p {
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

.space-feature__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.space-feature__tags span {
  font-size: 13px;
  color: var(--accent);
  background: rgba(31, 75, 66, 0.05);
  padding: 6px 12px;
  border-radius: 6px;
}

.space-feature__image {
  flex: 1.2;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: #f2f2f2;
}

.space-feature__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 800px) {
  .space-feature,
  .space-feature:nth-child(even) {
    flex-direction: column-reverse;
    gap: 20px;
  }

  .space-feature__image {
    width: 100%;
    max-height: 300px;
  }
}

/* Icons */
.card__icon {
  color: var(--accent);
  margin-bottom: 12px;
}

.card--icon h3 {
  font-size: 17px;
}

/* Gallery Filter */
.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-btn {
  border: 1px solid var(--border);
  background: transparent;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Space Features */
.space-features {
  display: grid;
  gap: 60px;
}

.space-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.space-feature:nth-child(even) .space-feature__content {
  order: 2;
}

.space-feature h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.space-feature p {
  color: var(--muted);
  margin-bottom: 20px;
}

.space-feature__image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: #f2f2f2;
}

.slide-image {
  transition: opacity 0.3s ease-in-out;
}

.slide-image.fade-out {
  opacity: 0;
}

.slide-image.fade-in {
  opacity: 1;
}

.space-feature__tags {
  display: flex;
  gap: 10px;
}

.space-feature__tags span {
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 8px;
}

/* Map Link */
.map-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
}

.map-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.map-link:hover img {
  transform: scale(1.05);
}

.map-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.map-link:hover .map-overlay {
  opacity: 1;
}

@media (max-width: 768px) {
  .space-feature {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .space-feature:nth-child(even) .space-feature__content {
    order: 0;
  }
}

/* Gallery Slider */
.gallery-slider {
  position: relative;
  padding: 0 60px; /* 화살표 공간 확보 */
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gallery-nav--prev {
  left: 0;
}

.gallery-nav--next {
  right: 0;
}

.gallery-nav:hover:not(:disabled) {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.gallery-nav:disabled {
  opacity: 0;
  pointer-events: none;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

.gallery-dot:hover:not(.active) {
  background: var(--muted);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  flex: 1;
}

.gallery__item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery__item:hover img {
  transform: scale(1.08);
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery__item:hover .gallery__overlay {
  opacity: 1;
}

.gallery__overlay span {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox__content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 12px;
  object-fit: contain;
}

.lightbox__content p {
  color: #fff;
  margin-top: 16px;
  font-size: 16px;
}

.lightbox__close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox__close:hover {
  opacity: 1;
}

@media (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }

  .hero {
    padding-top: 50px;
  }

  .cta__content {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-slider {
    padding: 0; /* 모바일에서는 화살표 공간 제거 */
    gap: 0;
    flex-direction: column;
  }
  
  .gallery {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* 모바일 네비게이션은 하단 도트만 사용하거나 화살표를 이미지 위에 오버레이 */
  .gallery-nav {
    display: none; /* 모바일에서는 화살표 숨김 (스와이프나 도트 권장) */
  }

  .gallery-dots {
    margin-top: 20px;
  }

  .lightbox {
    padding: 20px;
  }

  .lightbox__close {
    top: -40px;
    font-size: 28px;
  }
}
