/* =============================================================
   PENSION TEMPLATE - style.css
   색상/폰트만 :root에서 수정하면 전체 톤이 바뀝니다
   ============================================================= */

:root {
  --primary: #111111;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --bg: #fafafa;
  --bg-dark: #111111;
  --bg-card: #ffffff;
  --text: #111111;
  --text-muted: #6b7280;
  --text-light: #ffffff;
  --border: #e5e7eb;
  --nav-height: 80px;
  --max-width: 1200px;
  --radius: 6px;
  --shadow: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--bg);
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== Loading ===== */
.loading-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s;
}
.loading-screen.hidden { opacity: 0; pointer-events: none; }
.loading-spinner {
  width: 40px; height: 40px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Header ===== */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  transition: var(--transition);
  background: transparent;
}
.header.scrolled {
  background: rgba(250,250,250,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-height);
}
.logo {
  font-size: 1.4rem; font-weight: 800;
  color: var(--text-light);
  transition: var(--transition);
}
.header.scrolled .logo { color: var(--text); }
.logo img { height: 32px; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-size: 0.9rem; font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: var(--transition);
  position: relative;
}
.nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width 0.3s;
}
.nav a:hover::after { width: 100%; }
.nav a:hover { color: var(--text-light); }
.header.scrolled .nav a { color: var(--text-muted); }
.header.scrolled .nav a:hover { color: var(--text); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; z-index: 1001; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-light); transition: var(--transition);
}
.header.scrolled .hamburger span { background: var(--text); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh; min-height: 600px;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  display: flex; align-items: center; justify-content: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.65));
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; color: var(--text-light);
  max-width: 800px; padding: 0 40px;
}
.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800; line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero-content p {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}

/* ===== About ===== */
.section-about {
  padding: 140px 0;
  background: var(--bg);
}
.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-big-text {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--text);
}
.about-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.9;
  padding-top: 10px;
}

/* ===== Rooms (객실 안내) ===== */
.section-rooms {
  padding: 120px 0;
  background: var(--bg);
}
.rooms-header {
  margin-bottom: 50px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.rooms-filters {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 24px;
}
.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 100px;
  font-size: 0.88rem;
  font-family: var(--font-sans);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
}

.rooms-grid {
  columns: 2;
  column-gap: 24px;
}
.room-item {
  break-inside: avoid;
  margin-bottom: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  transition: opacity 0.4s, transform 0.4s;
}
.room-item.hidden {
  display: none;
}
.room-img-wrap {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.room-img-wrap img {
  width: 100%;
  transition: transform 0.5s ease;
}
.room-overlay {
  position: absolute; inset: 0;
  background: rgba(17,17,17,0.8);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  opacity: 0;
  transition: opacity 0.4s;
}
.room-img-wrap:hover .room-overlay { opacity: 1; }
.room-img-wrap:hover img { transform: scale(1.05); }
.room-cat {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.room-overlay h3 {
  font-size: 1.3rem;
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 6px;
}
.room-price {
  display: inline-block;
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.room-overlay p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

/* ===== Facilities (편의시설) ===== */
.section-facilities {
  padding: 120px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.section-header-center {
  text-align: center;
  margin-bottom: 60px;
}
.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.7;
}
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.facility-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.facility-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.facility-icon {
  font-size: 2.8rem;
  margin-bottom: 20px;
  line-height: 1;
}
.facility-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.facility-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== Testimonials ===== */
.section-testimonials {
  padding: 120px 0;
  background: var(--primary);
  color: var(--text-light);
}
.section-testimonials .section-title {
  color: var(--text-light);
}
.testimonials-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
}
.testimonials-track {
  display: flex;
  transition: transform 0.5s ease;
}
.testimonial-card {
  min-width: 100%;
  padding: 60px 80px;
  text-align: center;
}
.testimonial-quote {
  font-size: 4rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  font-family: Georgia, serif;
}
.testimonial-stars {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: 4px;
}
.testimonial-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin: 0 auto 32px;
}
.testimonial-author {
  display: flex; flex-direction: column; gap: 4px;
}
.testimonial-author strong {
  font-size: 1rem;
  font-weight: 700;
}
.testimonial-author span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.testimonials-dots {
  display: flex; justify-content: center; gap: 10px;
  margin-top: 32px;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

/* ===== CTA 다중 버튼 (BASIC 표준 3장 — 외부 링크형) ===== */
.section-cta {
  padding: 100px 0;
  background: var(--bg-card, var(--bg));
  border-top: 1px solid var(--border);
}
.cta-center { text-align: center; }
.cta-buttons {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-top: 24px;
}
.btn-cta-outline {
  background: transparent !important;
  color: var(--accent) !important;
  border: 2px solid var(--accent);
}
.btn-cta-outline:hover {
  background: var(--accent) !important;
  color: #fff !important;
}

/* ===== Gallery (BASIC 숙소 사진 — 카드 그리드) ===== */
.section-gallery {
  padding: 120px 0;
  background: var(--bg);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.gallery-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
}
.gallery-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.gallery-card:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 55%);
  display: flex; align-items: flex-end; padding: 20px;
  opacity: 0; transition: opacity 0.3s;
}
.gallery-card:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h3 {
  color: #fff; font-size: 1rem; font-weight: 600;
}

/* ===== About points (BASIC) ===== */
.about-image {
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
}
.about-image img {
  width: 100%; height: auto;
  display: block;
}
.about-points {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
}
.about-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text);
}
.point-icon {
  color: var(--accent);
  font-weight: 700;
}

/* ===== Location (오시는 길) ===== */
.section-location {
  padding: 120px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.location-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}
.location-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.location-map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}
.map-placeholder {
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.location-address {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: var(--bg-card);
  font-size: 0.95rem;
  color: var(--text);
}
.location-address span {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.location-transport {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.transport-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.transport-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.transport-item strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.transport-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== CTA Button (공통) ===== */
.btn-cta {
  display: inline-block;
  padding: 16px 48px;
  background: var(--accent);
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 100px;
  transition: var(--transition);
}
.btn-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,115,22,0.3);
}

/* ===== Footer ===== */
.footer {
  padding: 60px 0 40px;
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 8px;
}
.footer-slogan { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.footer-contact p { margin-bottom: 4px; }
.footer-sns {
  display: flex; gap: 12px; margin-top: 12px;
}
.footer-sns a {
  font-size: 1.1rem;
  transition: var(--transition);
  opacity: 0.6;
}
.footer-sns a:hover { opacity: 1; }
.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 32px 0 24px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,0.4); transition: var(--transition); }
.footer-links a:hover { color: rgba(255,255,255,0.7); }
.footer-copyright {
  text-align: center;
  margin-top: 20px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}

/* ===== Top Button ===== */
.btn-top {
  position: fixed; bottom: 32px; right: 32px;
  width: 48px; height: 48px;
  border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow);
}
.btn-top.visible { opacity: 1; visibility: visible; }
.btn-top:hover {
  background: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive: 1024px ===== */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .about-layout { grid-template-columns: 1fr; gap: 28px; }
  .about-big-text { font-size: 2rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { flex-direction: column; gap: 24px; }
  .location-layout { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== Responsive: 768px ===== */
@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .hamburger { display: flex; }
  .nav {
    position: fixed; top: 0; right: -100%;
    width: 75%; max-width: 320px; height: 100vh;
    background: var(--bg);
    flex-direction: column; align-items: flex-start;
    padding: 100px 40px 40px;
    gap: 24px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  }
  .nav.open { right: 0; }
  .nav a { color: var(--text) !important; font-size: 1.1rem; }
  .hamburger.active span { background: var(--text) !important; }

  .hero { min-height: 500px; }
  .hero-content h1 { font-size: 2rem; }
  .hero-content { padding: 0 24px; }

  .section-about,
  .section-rooms,
  .section-gallery,
  .section-cta,
  .section-location { padding: 80px 0; }

  .rooms-grid { columns: 1; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .cta-buttons { flex-direction: column; align-items: stretch; max-width: 320px; margin: 24px auto 0; }

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

/* ===== Responsive: 480px ===== */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-content h1 { font-size: 1.7rem; }
  .hero-content p { font-size: 0.9rem; }
  .about-big-text { font-size: 1.5rem; }

  .section-about,
  .section-rooms,
  .section-gallery,
  .section-cta,
  .section-location { padding: 60px 0; }

  .btn-cta { padding: 14px 36px; font-size: 0.9rem; }

  .map-placeholder { height: 220px; }

  .footer-inner { padding: 0 16px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .btn-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}

/* ===== Responsive: 360px ===== */
@media (max-width: 360px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.5rem; }
}
