/*
Theme Name: The Getaway on Ranger Creek
Theme URI: https://thegetawayon.com
Author: The Getaway on Ranger Creek
Author URI: https://thegetawayon.com
Description: Custom theme for The Getaway on Ranger Creek glamping property in Coalmont, Tennessee.
Version: 1.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: getaway-on-ranger-creek
*/

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

:root {
  --navy: #0c1a2e;
  --navy-mid: #132d4a;
  --navy-light: #1a3a5c;
  --orange: #e8722a;
  --orange-hover: #d4621e;
  --cyan: #5ecde4;
  --cyan-light: #a8e8f5;
  --white: #f5f5f0;
  --cream: #faf8f3;
  --forest: #2d6b3f;
  --text: #1a1a1a;
  --text-light: #c8d6e5;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Cabin', sans-serif;
  color: var(--text);
  background: var(--navy);
  overflow-x: hidden;
}

section, .parallax-divider, footer { position: relative; z-index: 1; }

/* =========== NAV =========== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 3rem;
  background: transparent;
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}
#navbar.scrolled {
  background: rgba(12, 26, 46, 0.95);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  padding: 0.6rem 3rem;
}
#navbar .nav-logo img { height: 60px; transition: height 0.4s; }
#navbar.scrolled .nav-logo img { height: 45px; }
#navbar ul { list-style: none; display: flex; gap: 2rem; }
#navbar ul li a {
  color: var(--white);
  text-decoration: none;
  font-family: 'Cabin', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}
#navbar ul li a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width 0.3s;
}
#navbar ul li a:hover { color: var(--orange); }
#navbar ul li a:hover::after { width: 100%; }
.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  font-weight: 600 !important;
  transition: background 0.3s, transform 0.2s !important;
}
.nav-cta:hover { background: var(--orange-hover) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; }
.hamburger span { width: 28px; height: 3px; background: var(--white); border-radius: 2px; transition: 0.3s; }

/* =========== HERO =========== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(5,13,26,0.7) 0%, rgba(12,26,46,0.7) 40%, rgba(19,45,74,0.7) 70%, rgba(26,58,92,0.7) 100%);
}

.stars-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  overflow: visible;
  z-index: 0;
  pointer-events: none;
}
.star { position: fixed; }
.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: twinkle var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
}
@keyframes twinkle {
  0%, 100% { opacity: var(--min-opacity); transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.moon {
  position: absolute;
  top: 12%; right: 15%;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fdf6e3 0%, #f0e3b5 40%, #ddd09a 100%);
  box-shadow: 0 0 30px rgba(253,246,227,0.4), 0 0 80px rgba(253,246,227,0.15), inset -8px -4px 12px rgba(180,160,100,0.3);
  animation: moonGlow 4s ease-in-out infinite;
}
.moon::before {
  content: '';
  position: absolute;
  top: 15px; left: 20px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(180,160,100,0.2);
}
.moon::after {
  content: '';
  position: absolute;
  top: 35px; left: 40px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(180,160,100,0.15);
}
@keyframes moonGlow {
  0%, 100% { box-shadow: 0 0 30px rgba(253,246,227,0.4), 0 0 80px rgba(253,246,227,0.15); }
  50% { box-shadow: 0 0 40px rgba(253,246,227,0.5), 0 0 100px rgba(253,246,227,0.2); }
}

.treeline {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 300px;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--white);
  padding: 0 2rem;
}
.hero-content .logo-hero {
  width: 320px;
  max-width: 80vw;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
  animation: fadeInDown 1.2s ease-out;
}
.hero-tagline {
  font-family: 'Satisfy', cursive;
  font-size: 1.8rem;
  color: var(--cyan-light);
  margin-bottom: 1rem;
  animation: fadeInUp 1.2s ease-out 0.3s both;
}
.hero-subtitle {
  font-family: 'Cabin', sans-serif;
  font-size: 1.1rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1.2s ease-out 0.5s both;
}
.hero-btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 1rem 2.5rem;
  text-decoration: none;
  font-family: 'Cabin', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  animation: fadeInUp 1.2s ease-out 0.7s both;
  box-shadow: 0 4px 20px rgba(232,114,42,0.3);
}
.hero-btn:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(232,114,42,0.4);
}
.scroll-indicator {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s ease-in-out infinite;
}
.scroll-indicator svg { width: 30px; height: 30px; stroke: var(--cyan-light); opacity: 0.6; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* =========== SECTIONS =========== */
section { position: relative; }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.section-header .accent-line {
  width: 60px; height: 3px;
  background: var(--orange);
  margin: 0.8rem auto;
  border-radius: 2px;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =========== PARALLAX DIVIDERS =========== */
.parallax-divider {
  height: 350px;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.parallax-divider::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12,26,46,0.6);
}
.parallax-divider .parallax-text {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}
.parallax-divider .parallax-text h3 {
  font-family: 'Satisfy', cursive;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.parallax-divider .parallax-text p {
  font-family: 'Cabin', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  opacity: 0.85;
}
.parallax-1 {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--forest) 100%);
  background-attachment: fixed;
}
.parallax-2 {
  background: linear-gradient(135deg, var(--forest) 0%, var(--navy-mid) 50%, var(--navy) 100%);
  background-attachment: fixed;
}

/* =========== ABOUT =========== */
.about-section {
  padding: 6rem 3rem;
  background: rgba(12,26,46,0.88);
}
.about-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-image {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy-mid), var(--forest));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
  opacity: 0.7;
  letter-spacing: 0.05em;
  overflow: hidden;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.about-text .accent-line { width: 50px; height: 3px; background: var(--orange); border-radius: 2px; margin-bottom: 1.5rem; }
.about-text p { font-size: 1.05rem; line-height: 1.8; color: var(--text-light); margin-bottom: 1rem; }

/* =========== UNITS =========== */
.units-section {
  padding: 6rem 3rem;
  background: rgba(19,45,74,0.88);
}
.units-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.unit-card {
  border-radius: 8px;
  overflow: hidden;
  background: rgba(12,26,46,0.9);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.unit-card:hover { transform: translateY(-6px); box-shadow: 0 8px 35px rgba(0,0,0,0.12); }
.unit-card-image {
  height: 220px;
  background: var(--navy-mid);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.85rem;
  opacity: 1;
  overflow: hidden;
}
.unit-card-image img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.unit-card-image.coming-soon::after {
  content: 'COMING SOON';
  position: absolute;
  inset: 0;
  background: rgba(12,26,46,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-family: 'Cabin', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
}
.unit-card-body { padding: 1.5rem; }
.unit-card-body h3 { font-family: 'Playfair Display', serif; font-size: 1.35rem; color: var(--white); margin-bottom: 0.5rem; }
.unit-card-body p { font-size: 0.95rem; color: var(--text-light); line-height: 1.6; margin-bottom: 1rem; }
.unit-link { color: var(--orange); text-decoration: none; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.03em; transition: color 0.3s; }
.unit-link:hover { color: var(--orange-hover); }

.units-bottom-row {
  max-width: 800px;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* =========== GALLERY =========== */
.gallery-section {
  padding: 6rem 3rem;
  background: rgba(12,26,46,0.88);
}
.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 1rem;
}
.gallery-item {
  border-radius: 6px;
  overflow: hidden;
  background: var(--navy-mid);
  position: relative;
  cursor: pointer;
  transition: transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.8rem;
  opacity: 1;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.gallery-item:hover { transform: scale(1.02); }
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }
.gallery-more { display: block; text-align: center; margin-top: 2rem; color: var(--orange); text-decoration: none; font-weight: 600; font-size: 1rem; letter-spacing: 0.03em; }
.gallery-more:hover { color: var(--orange-hover); }

/* =========== BLOG =========== */
.blog-section {
  padding: 6rem 3rem;
  background: rgba(19,45,74,0.88);
}
.blog-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.blog-card {
  border-radius: 8px;
  overflow: hidden;
  background: rgba(12,26,46,0.9);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 6px 25px rgba(0,0,0,0.1); }
.blog-card-image {
  height: 180px;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.8rem;
  opacity: 1;
  overflow: hidden;
}
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.blog-card-body { padding: 1.5rem; }
.blog-card-body .blog-date { font-size: 0.8rem; color: var(--orange); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.5rem; }
.blog-card-body h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--white); margin-bottom: 0.5rem; line-height: 1.4; }
.blog-card-body p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

.blog-section .section-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

/* =========== BLOG PAGINATION =========== */
.grc-pagination {
  max-width: 1100px;
  margin: 3rem auto 0;
  display: flex;
  justify-content: center;
}
.grc-pagination .navigation {
  display: flex;
  justify-content: center;
}
.grc-pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.grc-pagination .nav-links a.page-numbers,
.grc-pagination .nav-links span.page-numbers {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border: 2px solid var(--orange);
  color: var(--orange);
  text-decoration: none;
  border-radius: 4px;
  font-family: 'Cabin', sans-serif;
  font-size: 0.95rem;
  background: transparent;
  line-height: 1.4;
  transition: background 0.3s, color 0.3s;
}
.grc-pagination .nav-links a.page-numbers:hover {
  background: var(--orange);
  color: var(--white);
}
.grc-pagination .nav-links span.current {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.grc-pagination .nav-links .prev.page-numbers,
.grc-pagination .nav-links .next.page-numbers {
  font-weight: 600;
}

/* =========== BOOK NOW =========== */
.book-section {
  padding: 6rem 3rem;
  background: rgba(12,26,46,0.92);
  text-align: center;
  color: var(--white);
}
.book-section h2 { font-family: 'Playfair Display', serif; font-size: 2.8rem; margin-bottom: 0.5rem; }
.book-section .accent-line { width: 60px; height: 3px; background: var(--orange); margin: 0.8rem auto; border-radius: 2px; }
.book-section p { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto 2rem; line-height: 1.7; }
.book-widget-placeholder {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* =========== CONTACT =========== */
.contact-section {
  padding: 6rem 3rem;
  background: rgba(12,26,46,0.88);
}
.contact-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.contact-info h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--white); margin-bottom: 1rem; }
.contact-info p { font-size: 1rem; color: var(--text-light); line-height: 1.8; margin-bottom: 0.5rem; }
.contact-info a { color: var(--orange); text-decoration: none; }
.contact-info a:hover { color: var(--orange-hover); }
.contact-map-link { text-decoration: none; display: block; border-radius: 8px; overflow: hidden; transition: transform 0.3s; }
.contact-map-link:hover { transform: translateY(-3px); }
.contact-map-styled {
  height: 300px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(19,45,74,0.9), rgba(26,58,92,0.9));
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.map-pin { font-size: 2.5rem; margin-bottom: 0.5rem; }
.map-label { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--white); }
.map-sublabel { font-size: 0.95rem; color: var(--text-light); }
.map-action { font-size: 0.85rem; color: var(--orange); margin-top: 0.8rem; font-weight: 600; letter-spacing: 0.03em; }

/* =========== FOOTER =========== */
footer {
  background: rgba(12,26,46,0.95);
  color: var(--text-light);
  padding: 3rem;
  text-align: center;
}
footer .footer-logo img { height: 60px; margin-bottom: 1rem; opacity: 0.8; }
footer p { font-size: 0.85rem; opacity: 0.6; margin-bottom: 0.3rem; }
footer .footer-links { margin-top: 1rem; }
footer .footer-links a { color: var(--text-light); text-decoration: none; margin: 0 1rem; font-size: 0.85rem; transition: color 0.3s; }
footer .footer-links a:hover { color: var(--orange); }

/* =========== SCROLL ANIMATIONS =========== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =========== STANDARD PAGES =========== */
.page-content-wrap {
  padding: 8rem 3rem 6rem;
  background: rgba(12,26,46,0.88);
  min-height: 60vh;
  color: var(--white);
}
.page-content-wrap h1 { font-family: 'Playfair Display', serif; font-size: 2.8rem; color: var(--white); margin-bottom: 0.5rem; }
.page-content-wrap .accent-line { width: 60px; height: 3px; background: var(--orange); margin-bottom: 2rem; border-radius: 2px; }
.page-content-wrap p { font-size: 1.05rem; color: var(--text-light); line-height: 1.8; max-width: 800px; margin-bottom: 1.5rem; }

/* =========== SINGLE POST =========== */
.single-post-wrap { padding: 8rem 3rem 6rem; background: #0c1a2e; min-height: 60vh; isolation: isolate; }
.single-post-wrap .post-inner { max-width: 800px; margin: 0 auto; }
.single-post-wrap h1 { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--white); margin-bottom: 0.5rem; line-height: 1.3; }
.single-post-wrap .accent-line { width: 60px; height: 3px; background: var(--orange); margin-bottom: 1rem; border-radius: 2px; }
.single-post-wrap .post-meta { font-size: 0.85rem; color: var(--orange); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; margin-bottom: 2rem; }
.single-post-wrap .post-content { font-size: 1.05rem; color: var(--text-light); line-height: 1.85; }
.single-post-wrap .post-content h2,
.single-post-wrap .post-content h3 { font-family: 'Playfair Display', serif; color: var(--white); margin: 2rem 0 1rem; }
.single-post-wrap .post-content p { margin-bottom: 1.5rem; }
.single-post-wrap .post-content a { color: var(--orange); }
.single-post-wrap .post-content img { width: 100%; border-radius: 8px; margin: 1.5rem 0; }

/* =========== NEARBY ATTRACTIONS =========== */
.unit-page-attractions {
  background: rgba(19,45,74,0.88);
}
.unit-page-attractions h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--white) !important;
  margin-bottom: 0.5rem;
}
.attractions-wrap {
  display: flex;
  gap: 3rem;
  margin-top: 1.5rem;
  align-items: flex-start;
}
.attractions-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.unit-page-wrap .attractions-category {
  background: none !important;
}
.unit-page-wrap .attractions-category h3 {
  font-family: 'Cabin', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: var(--white) !important;
  letter-spacing: 0.03em !important;
  margin: 0 0 0.75rem 0 !important;
  padding-bottom: 0.5rem !important;
  border-bottom: 1px solid rgba(255,255,255,0.15) !important;
  background: none !important;
}
.unit-page-wrap .attractions-category ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.unit-page-wrap .attractions-category ul li {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0.35rem 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
  background: none !important;
  margin: 0 !important;
}
.unit-page-wrap .attractions-category ul li:last-child {
  border-bottom: none !important;
}
.unit-page-wrap .attractions-category ul li .att-name {
  font-size: 0.9rem !important;
  color: var(--text-light) !important;
  font-weight: 400 !important;
}
.unit-page-wrap .attractions-category ul li .att-dist {
  font-size: 0.85rem !important;
  color: var(--orange) !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  margin-left: 1rem !important;
}

/* =========== HOSTAWAY WIDGET FIXES =========== */
#hostaway-booking-widget,
#hostaway-booking-widget * {
  color: #1a1a1a !important;
}
#hostaway-booking-widget input,
#hostaway-booking-widget select,
#hostaway-booking-widget button {
  color: #1a1a1a !important;
  background: #ffffff !important;
}
.book-widget {
  position: relative;
  z-index: 100;
  overflow: visible !important;
}
.book-section {
  overflow: visible !important;
}
#hostaway-booking-widget > div,
#hostaway-booking-widget [class*="dropdown"],
#hostaway-booking-widget [class*="calendar"],
#hostaway-booking-widget [class*="panel"],
#hostaway-booking-widget [class*="popup"] {
  z-index: 9999 !important;
  overflow: visible !important;
  background: #ffffff !important;
  color: #1a1a1a !important;
}

/* =========== HOSTAWAY CALENDAR WIDGET FIXES =========== */
#hostaway-calendar-widget,
#hostaway-calendar-widget * {
  color: #1a1a1a !important;
  background-color: #ffffff !important;
}
#hostaway-calendar-widget [class*="day"],
#hostaway-calendar-widget [class*="month"],
#hostaway-calendar-widget [class*="header"],
#hostaway-calendar-widget [class*="week"],
#hostaway-calendar-widget [class*="date"],
#hostaway-calendar-widget [class*="nav"],
#hostaway-calendar-widget [class*="title"] {
  color: #1a1a1a !important;
  background-color: #ffffff !important;
}
#hostaway-calendar-widget [class*="button"],
#hostaway-calendar-widget [class*="btn"],
#hostaway-calendar-widget button {
  background-color: #e8722a !important;
  color: #f5f5f0 !important;
}
#hostaway-calendar-widget [class*="unavailable"],
#hostaway-calendar-widget [class*="blocked"],
#hostaway-calendar-widget [class*="disabled"] {
  background-color: #f0f0f0 !important;
  color: #999999 !important;
}
#hostaway-calendar-widget [class*="selected"],
#hostaway-calendar-widget [class*="available"] {
  background-color: #e8722a !important;
  color: #ffffff !important;
}
.unit-calendar {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

/* =========== UNIT PAGES =========== */
.unit-page-hero {
  position: relative;
  height: 100vh;
  min-height: 400px;
  overflow: hidden;
  margin-top: 0;
}
.unit-page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.unit-page-hero-placeholder {
  width: 100%;
  height: 100%;
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
}
.unit-page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,26,46,0.85) 0%, rgba(12,26,46,0.2) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 3rem;
}
.unit-page-hero-overlay h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--white);
  line-height: 1.2;
}
.unit-page-wrap {
  background: rgba(12,26,46,0.88);
  min-height: 50vh;
}
.unit-page-section {
  padding: 4rem 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.unit-page-section:last-of-type { border-bottom: none; }
.unit-page-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.unit-page-description p {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.85;
  margin-bottom: 1.5rem;
  max-width: 760px;
}
.unit-page-amenities h2,
.unit-page-gallery h2,
.unit-page-booking h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.amenities-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem 2rem;
  margin-top: 1.5rem;
}
.amenities-grid li {
  font-size: 0.95rem;
  color: var(--text-light);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
}
.amenities-grid li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}
.unit-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.unit-photo-item {
  border-radius: 6px;
  overflow: hidden;
  height: 220px;
}
.unit-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.unit-photo-item:hover img { transform: scale(1.03); }
.unit-calendar { margin-bottom: 2rem; }
.unit-book-btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 1rem 2.5rem;
  text-decoration: none;
  font-family: 'Cabin', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 4px 20px rgba(232,114,42,0.3);
}
.unit-book-btn:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
}
.unit-other-units {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.unit-other-units p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.unit-other-units ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.unit-other-units ul li a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--orange);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s;
  display: inline-block;
}
.unit-other-units ul li a:hover {
  background: var(--orange);
  color: var(--white);
}

/* Fix search bar calendar dropdown clipping */
.book-section,
.book-widget,
section.book-section {
  overflow: visible !important;
  position: relative;
  z-index: 50;
}
body > section,
body > div {
  overflow: visible !important;
}
.unit-back-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.unit-back-link:hover { color: var(--orange-hover); }

/* =========== FAQ SECTION =========== */
.faq-section {
  padding: 6rem 3rem;
  background: rgba(19, 45, 74, 0.88);
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  background: rgba(12, 26, 46, 0.6);
  transition: border-color 0.3s;
}
.faq-item:hover {
  border-color: rgba(232, 114, 42, 0.3);
}
.faq-item[open] {
  border-color: var(--orange);
}
.faq-item summary {
  padding: 1.2rem 1.5rem;
  font-family: 'Cabin', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--orange);
  font-weight: 400;
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.3s;
}
.faq-item[open] summary::after {
  content: '\2212';
}
.faq-answer {
  padding: 0 1.5rem 1.2rem;
}
.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.faq-read-more {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  transition: color 0.3s;
}
.faq-read-more:hover { color: var(--orange-hover); }
.faq-view-all {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: color 0.3s;
}
.faq-view-all:hover { color: var(--orange-hover); }

/* =========== FAQ PAGE (dedicated /faq/) =========== */
.faqp-header {
  background: rgba(12,26,46,0.88);
  padding: 8rem 2rem 3rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.faqp-header-inner {
  max-width: 860px;
  margin: 0 auto;
}
.faqp-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.faqp-header .accent-line {
  width: 60px;
  height: 3px;
  background: var(--orange);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}
.faqp-intro {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.faqp-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.2rem;
  padding: 1.2rem 1.5rem;
  background: rgba(19,45,74,0.7);
  border-radius: 8px;
  max-width: 700px;
  margin: 0 auto;
}
.faqp-nav a {
  color: var(--cyan-light);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s;
}
.faqp-nav a:hover {
  color: var(--orange);
}
.faqp {
  background: rgba(12,26,46,0.88);
  padding: 3rem 2rem 4rem;
  position: relative;
  z-index: 1;
}
.faqp-section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--white);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--orange);
  scroll-margin-top: 5rem;
}
.faqp-section-heading:first-of-type {
  margin-top: 0;
}
.faqp-item {
  margin-bottom: 2.2rem;
  scroll-margin-top: 5rem;
}
.faqp-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}
.faqp-item p {
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 0.8rem;
}
.faqp-item p:last-child {
  margin-bottom: 0;
}
.faqp-item ul {
  color: var(--text-light);
  line-height: 1.8;
  margin: 0.5rem 0 0.8rem 1.5rem;
  list-style: disc;
}
.faqp-item ul li {
  margin-bottom: 0.3rem;
}
.faqp-item a {
  color: var(--orange);
  text-decoration: none;
  transition: color 0.2s;
}
.faqp-item a:hover {
  color: var(--orange-hover);
}
.faqp-property-link {
  font-weight: 600;
}
.faqp-back-top {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
}

/* =========== SCREEN READER ONLY =========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =========== RESPONSIVE =========== */
@media (max-width: 1024px) {
  .units-grid { grid-template-columns: repeat(2, 1fr); }
  .units-bottom-row { grid-template-columns: 1fr; max-width: 400px; }
}
@media (max-width: 768px) {
  #navbar ul { display: none; }
  .hamburger { display: flex; }
  #navbar ul.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(12,26,46,0.98);
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
  }
  .section-header h2 { font-size: 2.2rem; }
  .about-grid { grid-template-columns: 1fr; }
  .units-grid { grid-template-columns: 1fr; }
  .units-bottom-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 150px); }
  .gallery-item.wide { grid-column: span 1; }
  .gallery-item.tall { grid-row: span 1; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-content .logo-hero { width: 240px; }
  .hero-tagline { font-size: 1.4rem; }
  .parallax-divider { background-attachment: scroll; }
  .page-content-wrap, .single-post-wrap { padding: 6rem 1.5rem 4rem; }
  .unit-page-hero { height: 50vh; }
  .unit-page-hero-overlay h1 { font-size: 2rem; }
  .unit-page-hero-overlay { padding: 1.5rem; }
  .unit-page-section { padding: 3rem 1.5rem; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .unit-photo-grid { grid-template-columns: repeat(2, 1fr); }
  .attractions-wrap { flex-direction: column; gap: 0; }
  .faq-section { padding: 4rem 1.5rem; }
  .faq-item summary { font-size: 0.95rem; padding: 1rem 1.2rem; }
  .faq-answer { padding: 0 1.2rem 1rem; }
  .faqp-header { padding: 6rem 1.5rem 2rem; }
  .faqp { padding: 2rem 1.5rem 3rem; }
  .faqp-title { font-size: 1.8rem; }
  .faqp-nav { gap: 0.4rem 0.8rem; padding: 1rem; }
  .faqp-nav a { font-size: 0.85rem; }
  .faqp-section-heading { font-size: 1.35rem; }
  .faqp-item h3 { font-size: 1.05rem; }
}
