/* ===========================
   올리브 펜션 — Shared Styles
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Noto+Sans+KR:wght@300;400;500&display=swap');

/* ── CSS Variables ─────────────────── */
:root {
  --primary:      #2e4e3d;
  --primary-light:#4a7060;
  --accent:       #c4a882;
  --accent-dark:  #a8845c;
  --bg:           #f7f4ef;
  --bg-alt:       #eeeae2;
  --white:        #ffffff;
  --text:         #2c2c2c;
  --text-muted:   #777;
  --border:       #ddd8cf;

  --font-serif:  'Cormorant Garamond', 'Nanum Myeongjo', Georgia, serif;
  --font-sans:   'Noto Sans KR', sans-serif;

  --max-width: 1160px;
  --nav-h:     72px;
}

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

/* ── Navigation ──────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 1000;
  transition: background .3s, box-shadow .3s;
}
nav.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 1px 12px rgba(0,0,0,.08);
}
nav.transparent { background: transparent; }

.nav-logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--white);
  transition: color .3s;
}
nav.scrolled .nav-logo { color: var(--primary); }

.nav-left {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-phone-divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,.4);
  margin: 0 16px;
  transition: background .3s;
}
nav.scrolled .nav-phone-divider { background: var(--border); }
.nav-phone {
  font-size: 19px;
  font-weight: 400;
  letter-spacing: .04em;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color .3s;
  white-space: nowrap;
}
nav.scrolled .nav-phone { color: var(--text-muted); }
.nav-phone:hover { color: var(--accent) !important; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .08em;
  color: rgba(255,255,255,.88);
  transition: color .3s;
}
nav.scrolled .nav-links a { color: var(--text); }
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }
.nav-links a.btn-reserve {
  background: var(--accent);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: .1em;
  transition: background .25s;
}
.nav-links a.btn-reserve:hover { background: var(--accent-dark); }
nav.scrolled .nav-links a.btn-reserve { color: var(--white); }

/* ── Hero ───────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(0,0,0,.4) 60%, rgba(0,0,0,.6) 100%);
}
.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
}
.hero-sub {
  font-family: var(--font-serif);
  font-size: 15px;
  font-style: italic;
  letter-spacing: .2em;
  opacity: .85;
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 300;
  letter-spacing: .05em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-divider {
  width: 48px;
  height: 1px;
  background: rgba(255,255,255,.6);
  margin: 0 auto 20px;
}
.hero-desc {
  font-size: 14px;
  letter-spacing: .12em;
  opacity: .85;
  font-weight: 300;
}
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.7);
  font-size: 11px;
  letter-spacing: .15em;
  animation: bounce 2s infinite;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.5);
  display: block;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Section Commons ─────────────────── */
section { padding: 96px 0; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 48px; }

.section-label {
  display: block;
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--primary);
  margin-bottom: 20px;
}
.section-title em { font-style: italic; color: var(--accent-dark); }
.section-divider {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 0 0 24px;
}
.section-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 520px;
}
.text-center { text-align: center; }
.text-center .section-divider { margin: 0 auto 24px; }
.text-center .section-text { margin: 0 auto; }

/* ── About ──────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
}
.about-img-main {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.about-img-accent {
  position: absolute;
  bottom: -28px;
  right: -28px;
  width: 48%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border: 6px solid var(--white);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}

/* ── Rooms ──────────────────────────── */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.room-card {
  background: var(--white);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.1);
}
.room-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .5s;
}
.room-card:hover .room-card-img { transform: scale(1.04); }
.room-card-img-wrap { overflow: hidden; }
.room-card-body { padding: 24px; }
.room-card-tag {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}
.room-card-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 8px;
}
.room-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.room-card-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.room-card-meta span { display: flex; align-items: center; gap: 4px; }

/* ── Feature section ─────────────────── */
.features-bg {
  background: var(--primary);
  color: var(--white);
}
.features-bg .section-title { color: var(--white); }
.features-bg .section-text { color: rgba(255,255,255,.7); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 56px;
}
.feature-item { text-align: center; }
.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}
.feature-title {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--white);
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
}

/* ── Attractions ─────────────────────── */
.attract-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 56px;
}
.attract-item {
  position: relative;
  overflow: hidden;
}
.attract-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform .5s;
}
.attract-item:hover .attract-img { transform: scale(1.05); }
.attract-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 28px;
  color: var(--white);
}
.attract-info {}
.attract-dist { font-size: 11px; letter-spacing: .15em; opacity: .8; margin-bottom: 4px; }
.attract-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
}
.attract-text { font-size: 13px; opacity: .8; margin-top: 4px; }

/* ── Info section ────────────────────── */
.info-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 56px;
}
.info-col-title {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.info-list li {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.8;
  padding: 6px 0;
  padding-left: 14px;
  position: relative;
}
.info-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── Contact / Map section ───────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: start;
}
.contact-item { margin-bottom: 28px; }
.contact-label {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}
.contact-value {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--primary);
}
.contact-sub { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.map-wrap {
  background: var(--bg-alt);
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ── Buttons ──────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: .25s;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-light); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-white {
  background: var(--white);
  color: var(--primary);
}
.btn-white:hover { background: var(--accent); color: var(--white); }

/* ── Footer ───────────────────────────── */
footer {
  background: var(--primary);
  color: rgba(255,255,255,.75);
  padding: 64px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  margin-bottom: 32px;
}
.footer-brand .nav-logo {
  color: var(--white);
  font-size: 24px;
  display: block;
  margin-bottom: 16px;
}
.footer-brand p { font-size: 13px; line-height: 1.9; opacity: .65; }
.footer-col-title {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 13px;
  opacity: .7;
  transition: opacity .2s;
}
.footer-col ul li a:hover { opacity: 1; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  opacity: .45;
}
.footer-biz {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 11px;
  color: rgba(255,255,255,.35);
  line-height: 1.9;
  text-align: center;
}

/* ── Page Banner ────────────────────── */
.page-banner {
  height: 360px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  overflow: hidden;
}
.page-banner-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.38) 100%);
}
.page-banner-text {
  position: relative;
  color: var(--white);
  padding: 0 48px;
}
.page-banner-text .section-label { color: rgba(255,255,255,.7); }
.page-banner-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  letter-spacing: .05em;
}

/* ── Room detail page ───────────────── */
.room-detail {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.room-detail:last-child { border-bottom: none; }
.room-detail.reverse { direction: rtl; }
.room-detail.reverse > * { direction: ltr; }
.room-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.room-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.room-photos img:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }
.room-info-tag {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}
.room-info-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 6px;
}
.room-info-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.room-info-divider { width: 32px; height: 2px; background: var(--accent); margin-bottom: 24px; }
.room-info-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.95;
  margin-bottom: 28px;
}
.room-amenity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.room-amenity-tag {
  background: var(--bg-alt);
  font-size: 12px;
  padding: 5px 12px;
  color: var(--text);
  letter-spacing: .04em;
}
.room-capacity {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.room-capacity strong { color: var(--primary); }

/* ── Info page tables ───────────────── */
.refund-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  font-size: 14px;
}
.refund-table th {
  background: var(--primary);
  color: var(--white);
  padding: 12px 20px;
  text-align: left;
  font-weight: 400;
  letter-spacing: .04em;
}
.refund-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.refund-table tr:nth-child(even) td { background: var(--bg-alt); }

/* ── Hamburger Menu ───────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 6px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
nav.scrolled .hamburger span { background: var(--text); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Image Slider ─────────────────────── */
.room-slider {
  position: relative;
  overflow: hidden;
  background: #111;
}
.slider-track {
  display: flex;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.slider-track img {
  min-width: 100%;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  flex-shrink: 0;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  color: var(--white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  z-index: 10;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.slider-btn:hover { background: rgba(0,0,0,.75); }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }
.slider-count {
  position: absolute;
  bottom: 14px;
  right: 16px;
  background: rgba(0,0,0,.5);
  color: var(--white);
  font-size: 12px;
  letter-spacing: .08em;
  padding: 4px 12px;
  border-radius: 20px;
}
.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: background .2s, transform .2s;
  border: none;
  padding: 0;
}
.slider-dot.active {
  background: var(--white);
  transform: scale(1.3);
}

/* ── Responsive ───────────────────────── */
@media (max-width: 1024px) {
  nav { padding: 0 28px; }
  .container { padding: 0 28px; }
  .nav-links { gap: 24px; }
  .rooms-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  nav { padding: 0 20px; }
  .container { padding: 0 20px; }
  section { padding: 64px 0; }

  /* 햄버거 메뉴 */
  .hamburger { display: flex; }
  .nav-phone, .nav-phone-divider { display: none; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 12px 0 32px;
    gap: 0;
    border-top: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
    display: none;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0 32px; }
  .nav-links a {
    display: block;
    padding: 18px 0;
    color: var(--text) !important;
    font-size: 16px;
    letter-spacing: .06em;
    border-bottom: 1px solid var(--border);
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links a.btn-reserve {
    display: block;
    margin: 20px 0 0;
    padding: 16px;
    text-align: center;
    border-bottom: none;
    border-radius: 2px;
    background: var(--accent);
    color: var(--white) !important;
    font-size: 14px;
    letter-spacing: .12em;
  }

  .about-grid,
  .contact-grid,
  .room-detail { grid-template-columns: 1fr; gap: 36px; }
  .room-detail.reverse { direction: ltr; }
  .about-img-accent { display: none; }
  .rooms-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .attract-grid { grid-template-columns: 1fr; }
  .info-cols { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero-title { font-size: 38px; }
  .slider-btn { width: 36px; height: 36px; font-size: 15px; }
}
