/* ============================================
   CB Guesthouse — shared site styles
   ============================================ */

:root {
  --bg: #f8f9fa;
  --ink: #212529;
  --ink-soft: #4a5056;
  --accent: #2c5f4f;
  --accent-hover: #1f4639;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.18);
  --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--bg);
  color: var(--ink);
  margin: 0;
  line-height: 1.6;
}

img { max-width: 100%; }

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(33, 37, 41, 0.96) !important;
  backdrop-filter: blur(8px);
}
.navbar-brand { display: flex; align-items: center; }
.navbar-brand img { height: 46px; margin-right: 12px; }
.navbar-brand span {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}
.navbar-nav .nav-link {
  font-size: 1.05rem;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s;
}
.navbar-nav .nav-link.active { color: #fff; font-weight: 600; }
.btn-book {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff !important;
  padding: 0.5rem 1.4rem !important;
  border-radius: 999px;
  margin-left: 0.75rem;
  transition: background 0.2s, transform 0.2s;
}
.btn-book:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 540px;
  overflow: hidden;
}
.hero .carousel,
.hero .carousel-inner,
.hero .carousel-item { height: 100%; }
.hero .carousel-item {
  background: #1a1a1a no-repeat center center / cover;
}
.hero .carousel-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  text-align: center;
  color: #fff;
  padding: 1rem;
}
.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
  margin-bottom: 1rem;
  line-height: 1.1;
}
.hero-content p {
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero-content .btn {
  padding: 0.85rem 2.2rem;
  font-size: 1.1rem;
  border-radius: 999px;
}

/* ---------- Sections ---------- */
section { padding: 5rem 0; }
.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}
.section-subtitle {
  text-align: center;
  color: var(--ink-soft);
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto 3rem;
}

/* ---------- Cards ---------- */
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.feature-card h3 {
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.feature-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-card ul li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #eee;
  color: var(--ink-soft);
}
.feature-card ul li:last-child { border-bottom: none; }
.feature-card ul li::before {
  content: '✦';
  color: var(--accent);
  margin-right: 0.6rem;
  font-size: 0.85rem;
}

/* ---------- Property cards ---------- */
.property-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.property-card-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: #ddd;
}
.property-card-body { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.property-card h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.property-card .specs {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.property-card p { color: var(--ink-soft); flex: 1; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-grid a:hover img { transform: scale(1.06); }

/* Tabs */
.gallery-tabs .nav-link,
.season-tabs .nav-link {
  color: var(--ink);
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  margin: 0 0.4rem;
}
.gallery-tabs .nav-link.active,
.season-tabs .nav-link.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
}
.cta-banner h2 { font-size: 2.4rem; margin-bottom: 1rem; }
.cta-banner p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.9; }
.cta-banner .btn {
  background: #fff;
  color: var(--accent);
  font-weight: 600;
  padding: 0.85rem 2.4rem;
  border-radius: 999px;
}
.cta-banner .btn:hover { background: #f0f0f0; }

/* ---------- Footer ---------- */
footer {
  background: #1a1d20;
  color: #d0d4d8;
  padding: 3.5rem 0 1.5rem;
}
footer h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
footer a { color: #d0d4d8; text-decoration: none; transition: color 0.2s; }
footer a:hover { color: #fff; }
.social-links a {
  display: inline-block;
  margin: 0 0.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.social-links a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}
.social-links img { width: 20px; height: 20px; filter: invert(1); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
}

/* ---------- Section hero (smaller) ---------- */
.page-hero {
  height: 60vh;
  min-height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  margin-bottom: 4rem;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.6) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 1rem;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
  margin-bottom: 1rem;
}
.page-hero p {
  font-size: clamp(1rem, 2vw, 1.4rem);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}

/* ---------- Utility ---------- */
.text-accent { color: var(--accent); }
.bg-soft { background: #fff; }

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .navbar-brand span { font-size: 1.15rem; }
  .navbar-brand img { height: 38px; }
  .btn-book { margin-left: 0; margin-top: 0.5rem; display: inline-block; }
  .gallery-grid img { height: 220px; }
  .cta-banner h2 { font-size: 1.8rem; }
}
