/* =========================================================
   JNJ Stay+ — Main Stylesheet
   Mobile-first, progressive enhancement via min-width queries
   ========================================================= */

:root {
  --color-cream: #faf6f0;
  --color-white: #ffffff;
  --color-navy: #10238c;
  --color-navy-dark: #0a1760;
  --color-navy-deep: #0b1442;
  --color-coral: #e8463f;
  --color-coral-dark: #c93832;
  --color-text: #262832;
  --color-text-light: #6b6f7d;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 10px 30px rgba(16, 35, 140, 0.08);
  --shadow-card: 0 14px 40px rgba(10, 23, 96, 0.12);
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  --header-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--color-cream);
  color: var(--color-text);
  line-height: 1.6;
  padding-bottom: 64px; /* space for mobile bottom bar */
}

img { max-width: 100%; display: block; }

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

ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; color: var(--color-navy-dark); }

button { font-family: var(--font-sans); cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.section-head .eyebrow {
  display: inline-block;
  color: var(--color-coral);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.section-head p {
  color: var(--color-text-light);
  font-size: 1rem;
}

section { padding: 64px 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--color-coral);
  color: #fff;
  box-shadow: 0 10px 24px rgba(232, 70, 63, 0.35);
}
.btn-primary:hover { background: var(--color-coral-dark); }
.btn-outline {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.24); }
.btn-navy {
  background: var(--color-navy);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-navy:hover { background: var(--color-navy-dark); }
.btn-block { width: 100%; }

/* ============ HEADER ============ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
#site-header.scrolled {
  background: rgba(250, 246, 240, 0.96);
  box-shadow: 0 4px 20px rgba(16,35,140,0.08);
  backdrop-filter: blur(6px);
}
.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-navy-dark);
}
#site-header:not(.scrolled) .brand { color: #fff; }
.brand img { height: 32px; width: auto; max-width: 140px; object-fit: contain; border-radius: 6px; background: #fff; padding: 3px 6px; }
.brand .brand-text-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

.main-nav {
  display: none;
}
.main-nav ul { display: flex; gap: 26px; }
.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-navy-dark);
  position: relative;
  padding: 6px 0;
}
#site-header:not(.scrolled) .main-nav a { color: #fff; }
.main-nav a:hover { color: var(--color-coral); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch { display: flex; gap: 4px; background: rgba(255,255,255,0.18); border-radius: 20px; padding: 3px; }
#site-header.scrolled .lang-switch { background: rgba(16,35,140,0.08); }
.lang-switch button {
  padding: 5px 9px;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-navy-dark);
}
#site-header:not(.scrolled) .lang-switch button { color: #fff; }
.lang-switch button.active {
  background: var(--color-coral);
  color: #fff !important;
}

.header-cta-btn {
  display: none;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  align-items: center;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-navy-dark);
  border-radius: 2px;
  transition: 0.3s;
}
#site-header:not(.scrolled) .hamburger span { background: #fff; }

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  background: var(--color-cream);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav ul { padding: 24px 20px; display: flex; flex-direction: column; gap: 6px; }
.mobile-nav a {
  display: block;
  padding: 14px 6px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-navy-dark);
  border-bottom: 1px solid rgba(16,35,140,0.08);
}
.mobile-nav .mobile-cta { margin: 20px 6px; }

/* ============ HERO ============ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
#hero .hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg-cozy.jpg') center center / cover no-repeat;
  z-index: -2;
}
#hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(52,38,24,0.38) 0%, rgba(30,20,10,0.62) 100%);
  z-index: -1;
}
.hero-content { padding: 0 20px; max-width: 760px; }
.hero-content h1 {
  font-size: 2.6rem;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.hero-tagline {
  font-family: 'Gowun Batang', var(--font-serif), serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: #fff;
  margin-top: 10px;
  margin-bottom: 30px;
  text-align: center;
}
.hero-content p.hero-sub {
  font-size: 1.1rem;
  margin-bottom: 32px;
  color: #f3f0ea;
  font-weight: 300;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.85;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ============ ROOMS ============ */
.rooms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.room-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.room-card .room-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}
.room-card .room-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.room-card .room-img-wrap:hover img { transform: scale(1.06); }
.room-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--color-navy);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.room-card-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.room-card-body h3 { font-size: 1.4rem; }
.room-card-body p.room-desc { color: var(--color-text-light); font-size: 0.95rem; }
.amenity-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.amenity-tags span {
  background: var(--color-cream);
  border: 1px solid rgba(16,35,140,0.12);
  color: var(--color-navy-dark);
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 500;
}
.room-card-btn-row { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.room-card-btn-row .btn { width: 100%; }
.btn-outline-navy {
  background: #fff;
  color: var(--color-navy);
  border: 1.5px solid rgba(16,35,140,0.25);
}
.btn-outline-navy:hover { background: var(--color-cream); }

@media (min-width: 480px) {
  .room-card-btn-row { flex-direction: row; }
}

/* ============ ROOM DETAIL MODAL ============ */
.room-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,14,38,0.72);
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.room-detail-overlay.open { display: flex; }
.room-detail-box {
  position: relative;
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  max-width: 920px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 0;
}
.room-detail-close {
  position: absolute;
  top: 14px; right: 16px;
  font-size: 1.6rem;
  color: var(--color-navy-dark);
  background: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  z-index: 2;
}
/* Photo shown first, at the very top of the modal */
.room-detail-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: #eee;
}
.room-detail-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.room-detail-photo .room-badge { position: absolute; top: 14px; left: 14px; }
.room-detail-scroll { padding: 24px; }
.room-detail-head { margin-bottom: 20px; }
.room-detail-head h3 { font-size: 1.4rem; margin-bottom: 8px; }
.room-detail-head p { color: var(--color-text-light); font-size: 0.92rem; }
.room-detail-body { display: grid; grid-template-columns: 1fr; gap: 24px; }
.room-detail-units-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-navy-dark);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.room-detail-units-list { display: flex; flex-wrap: wrap; gap: 10px; }
.room-unit-chip {
  background: #fff;
  border: 1.5px solid rgba(16,35,140,0.15);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 110px;
}
.room-unit-chip span { font-weight: 700; font-size: 0.92rem; color: var(--color-navy-dark); }
.room-unit-chip small { font-size: 0.72rem; color: var(--color-text-light); }
.room-unit-chip.active {
  background: var(--color-navy);
  border-color: var(--color-navy);
}
.room-unit-chip.active span { color: #fff; }
.room-unit-chip.active small { color: rgba(255,255,255,0.75); }
.room-detail-unit-view {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}
.room-unit-status.maintenance { background: var(--color-coral); }
.room-unit-status.inactive { background: var(--color-text-light); }
.room-detail-unit-view h4 { font-size: 1.2rem; margin-bottom: 14px; }
.room-detail-amenities-title {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--color-coral);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.room-detail-unit-view .amenity-tags { margin-bottom: 20px; }
.room-detail-empty { color: var(--color-text-light); font-size: 0.9rem; }

@media (min-width: 768px) {
  .room-detail-units-list { flex-direction: row; }
  .room-unit-chip { flex: 1; }
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { font-size: 1.7rem; margin-bottom: 16px; }
.about-text p { color: var(--color-text-light); margin-bottom: 20px; }
.about-points { display: flex; flex-direction: column; gap: 14px; }
.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
  color: var(--color-text);
}
.about-points i {
  color: var(--color-coral);
  background: rgba(232,70,63,0.1);
  border-radius: 50%;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============ GALLERY GRIDS ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-soft);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(10,23,96,0.85));
  color: #fff;
  font-size: 0.78rem;
  padding: 20px 10px 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* ============ FACILITIES ============ */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.facility-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 26px 14px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease;
}
.facility-card:hover { transform: translateY(-4px); }
.facility-card i {
  font-size: 1.6rem;
  color: var(--color-navy);
  margin-bottom: 12px;
}
.facility-card span { display: block; font-weight: 600; font-size: 0.92rem; }

/* ============ LOCATION ============ */
.location-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-height: 320px;
}
.location-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }
.location-info {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}
.location-info .addr-label {
  color: var(--color-coral);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.location-info .addr-value {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-navy-dark);
  margin-bottom: 18px;
  font-weight: 600;
}
.location-info p.location-desc { color: var(--color-text-light); margin-bottom: 18px; }
.location-nearby {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--color-cream);
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--color-navy-dark);
  font-weight: 500;
}
.location-nearby i { color: var(--color-coral); margin-top: 3px; }

/* ============ NEIGHBORHOOD ============ */
.filter-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 26px;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar button {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: 20px;
  background: #fff;
  color: var(--color-navy-dark);
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: var(--shadow-soft);
  transition: background 0.2s ease, color 0.2s ease;
}
.filter-bar button.active {
  background: var(--color-navy);
  color: #fff;
}

/* ============ CONTACT ============ */
#contact { background: var(--color-navy-deep); color: #fff; }
#contact .section-head h2 { color: #fff; }
#contact .section-head p { color: rgba(255,255,255,0.7); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.contact-channels { display: flex; flex-direction: column; gap: 16px; }
.contact-channel {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.contact-channel:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.contact-channel i {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-coral);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-channel .ch-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); }
.contact-channel .ch-value { font-weight: 600; font-size: 1rem; }

.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  color: var(--color-text);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--color-navy-dark);
}
.form-group label .req { color: var(--color-coral); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(16,35,140,0.15);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--color-cream);
  color: var(--color-text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-navy);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-msg {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}
.form-msg.show { display: block; }
.form-msg.success { background: rgba(46, 160, 90, 0.12); color: #1e7d47; }
.form-msg.error { background: rgba(232, 70, 63, 0.12); color: var(--color-coral-dark); }

/* ============ FOOTER ============ */
footer {
  background: var(--color-navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 28px 0;
  text-align: center;
  font-size: 0.85rem;
}
footer a { text-decoration: underline; }
footer .footer-inner { display: flex; flex-direction: column; gap: 8px; align-items: center; }

/* ============ MOBILE BOTTOM BAR ============ */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 998;
  display: flex;
  background: #fff;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.1);
}
.mobile-bottom-bar a, .mobile-bottom-bar button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-navy-dark);
}
.mobile-bottom-bar i { font-size: 1.1rem; }
.mobile-bottom-bar .bar-cta { background: var(--color-coral); color: #fff; }

/* ============ LIGHTBOX ============ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,14,38,0.92);
  z-index: 2600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-content { position: relative; max-width: 900px; width: 100%; text-align: center; }
.lightbox-content img {
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  border-radius: var(--radius-md);
  object-fit: contain;
}
.lightbox-caption { color: #fff; margin-top: 14px; font-size: 0.95rem; }
.lightbox-close {
  position: absolute;
  top: -44px; right: 0;
  color: #fff;
  font-size: 1.8rem;
  background: none;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 1.8rem;
  background: rgba(255,255,255,0.12);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-prev { left: -8px; }
.lightbox-next { right: -8px; }

@media (min-width: 640px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* ============ RESPONSIVE ============ */
@media (min-width: 768px) {
  .container { padding: 0 32px; }
  .hero-content h1 { font-size: 3.4rem; }
  .hero-tagline { font-size: 1.35rem; letter-spacing: 0.32em; margin-bottom: 30px; }
  .hero-tagline .wave-up { top: -12px; }
  .hero-tagline .wave-down { top: 8px; }
  .hero-content p.hero-sub { font-size: 1.25rem; }
  .rooms-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .facilities-grid { grid-template-columns: repeat(4, 1fr); }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .location-wrap { grid-template-columns: 1.1fr 0.9fr; }
  .contact-grid { grid-template-columns: 0.8fr 1.2fr; }
  section { padding: 90px 0; }
  .section-head h2 { font-size: 2.1rem; }
}

@media (min-width: 1024px) {
  .main-nav { display: block; }
  .header-cta-btn { display: inline-flex; }
  .hamburger, .mobile-nav { display: none; }
  .mobile-bottom-bar { display: none; }
  body { padding-bottom: 0; }
  .hero-content h1 { font-size: 4rem; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Section-specific eyebrow color variant for facilities/location on cream bg already default */

/* Utility */
.text-center { text-align: center; }
.hidden { display: none !important; }
