/* ============================================================
   Bhaskar Guest House – Main Stylesheet
   ============================================================ */

:root {
  --brand:        #7c3f00;
  --brand-light:  #c0623a;
  --brand-dark:   #5a2d00;
  --accent:       #e65c00;
  --saffron:      #ff9933;
  --text:         #2d2d2d;
  --muted:        #6c757d;
  --bg-light:     #faf8f5;
  --radius:       12px;
  --shadow:       0 4px 20px rgba(0,0,0,.08);
}

/* ---------------------------------------------------------------
   Base
   --------------------------------------------------------------- */
body        { font-family: 'Inter', sans-serif; color: var(--text); background: #fff; }
h1,h2,h3,h4 { font-family: 'Playfair Display', Georgia, serif; }
a           { color: var(--brand); text-decoration: none; }
a:hover     { color: var(--brand-light); }

/* ---------------------------------------------------------------
   Topbar
   --------------------------------------------------------------- */
.topbar {
  background: var(--brand);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  padding: 6px 0;
}

/* ---------------------------------------------------------------
   Navbar
   --------------------------------------------------------------- */
.navbar { padding: 14px 0; }
.brand-name { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; color: var(--brand); line-height: 1.1; }
.brand-sub  { font-size: .7rem; color: var(--muted); }
.brand-icon { font-size: 1.6rem; }
.navbar .nav-link { font-weight: 500; color: var(--text) !important; padding: 6px 12px; border-radius: 6px; transition: background .15s; }
.navbar .nav-link:hover { background: #f0ebe6; }
.navbar .btn-primary { background: var(--accent); border-color: var(--accent); font-weight: 600; border-radius: 8px; }
.navbar .btn-primary:hover { background: var(--brand); border-color: var(--brand); }

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 88vh;
  /* fallback colour if no banner is uploaded yet */
  background: #3d1a00;
  display: flex;
  align-items: center;
}

/* Each slide sits absolutely behind everything */
.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 0;
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg, rgba(90,30,0,.68) 0%, rgba(20,10,0,.50) 100%);
}
.hero-content  { position: relative; z-index: 2; padding: 60px 20px; }
.hero-tagline  { font-size: .9rem; letter-spacing: .15em; text-transform: uppercase; opacity: .85; margin-bottom: 12px; }
.hero-title    { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; margin-bottom: 16px; line-height: 1.1; }
.hero-subtitle { font-size: 1.15rem; opacity: .9; max-width: 600px; margin: 0 auto 32px; }

.hero-search-card {
  background: rgba(255,255,255,.97);
  color: var(--text);
  border-radius: var(--radius);
  padding: 24px 28px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.hero-search-card .form-label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 4px; }

/* ---------------------------------------------------------------
   USP Strip
   --------------------------------------------------------------- */
.usp-strip { background: var(--saffron) !important; color: var(--brand-dark); font-weight: 600; font-size: .88rem; }
.bg-saffron { background: var(--saffron); }

/* ---------------------------------------------------------------
   Section Utilities
   --------------------------------------------------------------- */
.section-pad { padding: 72px 0; }
.section-badge {
  display: inline-block;
  background: #fef3e8;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 700; margin-bottom: 12px; }

/* ---------------------------------------------------------------
   Room Cards
   --------------------------------------------------------------- */
.room-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.room-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,.12); }
.room-card-img-wrap { position: relative; overflow: hidden; height: 220px; }
.room-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.room-card:hover .room-card-img { transform: scale(1.04); }
.room-card-img-placeholder { height: 220px; display: flex; align-items: center; justify-content: center; background: #f5f5f5; }
.room-badge { position: absolute; top: 12px; right: 12px; padding: 4px 12px; border-radius: 50px; font-size: .75rem; font-weight: 700; }
.badge-deluxe { background: #7c3f00; color: #fff; }
.badge-simple { background: #e65c00; color: #fff; }
.room-card-body { padding: 20px; }
.room-card-title { font-size: 1.15rem; margin-bottom: 6px; }
.room-meta { font-size: .82rem; color: var(--muted); }
.room-meta span + span { margin-left: 12px; }
.room-desc { font-size: .85rem; line-height: 1.5; }
.room-price { font-size: 1.4rem; font-weight: 700; color: var(--brand); }

/* Full-width room card (rooms.php) */
.room-card-full { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.room-img-placeholder { height: 100%; min-height: 200px; display: flex; align-items: center; justify-content: center; background: #f5f5f5; }
.room-card-full-body { padding: 24px; display: flex; flex-direction: column; height: 100%; }

/* Amenity tags */
.amenity-tag {
  display: inline-block;
  background: #f0ebe6;
  color: var(--brand-dark);
  font-size: .72rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 50px;
  margin: 2px;
}
.amenity-item { font-size: .88rem; padding: 4px 0; }

/* Room gallery */
.room-gallery-img { height: 380px; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button { width: 64px; height: 48px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; padding: 0; }
.gallery-thumbs button.active { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------
   Booking Widget (room detail page)
   --------------------------------------------------------------- */
.booking-widget {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  position: sticky;
  top: 80px;
}
.booking-widget-header h3 { font-size: 1.1rem; margin-bottom: 4px; }
.room-meta-badges { display: flex; gap: 12px; font-size: .82rem; color: var(--muted); margin-top: 2px; }
.price-display { margin: 16px 0 8px; }
.price-amount { font-size: 1.8rem; font-weight: 700; color: var(--brand); }
.price-unit { color: var(--muted); }
.seasonal-prices { font-size: .82rem; border-top: 1px solid #f0ebe6; padding-top: 8px; }
.policy-mini p { font-size: .78rem; }

/* ---------------------------------------------------------------
   Booking Form (booking.php)
   --------------------------------------------------------------- */
.booking-section { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.booking-section-title { font-size: 1rem; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; font-family: 'Inter', sans-serif; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; background: var(--accent); color: #fff; border-radius: 50%; font-size: .8rem; font-weight: 700; flex-shrink: 0; }
.price-summary-box { background: #faf8f5; border: 1px solid #e8e0d8; border-radius: 8px; padding: 14px 16px; }
.upi-id-box-sm { background: #fef3e8; border: 1px dashed var(--accent); border-radius: 8px; padding: 10px 14px; font-family: monospace; font-size: 1rem; display: inline-block; }
.confirmation-card { background: #faf8f5; border-radius: var(--radius); padding: 24px; text-align: left; }

/* ---------------------------------------------------------------
   Policy Notice
   --------------------------------------------------------------- */
.policy-notice {
  background: #fff8ec;
  border: 1px solid #ffd878;
  border-radius: var(--radius);
  padding: 24px 28px;
}
.policy-notice ul { padding-left: 20px; font-size: .9rem; }
.policy-notice li + li { margin-top: 6px; }

/* ---------------------------------------------------------------
   UPI Section
   --------------------------------------------------------------- */
.upi-id-box { background: #fef3e8; border: 2px dashed var(--accent); border-radius: 12px; padding: 16px 24px; display: inline-block; }
.upi-id-value { font-family: monospace; font-size: 1.3rem; font-weight: 700; color: var(--brand); }
.qr-img { border-radius: 12px; box-shadow: var(--shadow); }
.upi-apps { margin-top: 12px; font-size: .85rem; color: var(--muted); }
.upi-apps img { margin-left: 6px; vertical-align: middle; }

/* ---------------------------------------------------------------
   Testimonials
   --------------------------------------------------------------- */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  height: 100%;
}
.stars { color: #e65c00; font-size: 1.1rem; margin-bottom: 10px; }
.reviewer { margin-top: 12px; font-weight: 600; color: var(--muted); font-size: .88rem; }

/* ---------------------------------------------------------------
   Blog Cards
   --------------------------------------------------------------- */
.blog-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.blog-card-img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 20px; }
.blog-date { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: 8px; }
.blog-title { font-size: 1rem; margin-bottom: 8px; }
.blog-title a { color: var(--text); }
.blog-title a:hover { color: var(--accent); }
.blog-excerpt { font-size: .85rem; color: var(--muted); }
.btn-link { font-size: .85rem; font-weight: 600; color: var(--accent); }
.btn-link:hover { color: var(--brand); }
.blog-featured-img { max-height: 420px; object-fit: cover; }
.blog-content { line-height: 1.8; font-size: 1rem; }
.blog-content h2 { margin-top: 2rem; margin-bottom: .8rem; }
.blog-content p  { margin-bottom: 1.2rem; }
.blog-cta-box { background: #faf3ec; border-radius: var(--radius); padding: 28px; border-left: 4px solid var(--accent); }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.footer { background: #1a0e06; color: rgba(255,255,255,.75); padding: 60px 0 0; }
.footer-brand { color: #fff; font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.footer-heading { color: rgba(255,255,255,.9); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li + li { margin-top: 6px; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .88rem; }
.footer-links a:hover { color: var(--saffron); }
.footer-contact { list-style: none; padding: 0; margin: 0; font-size: .85rem; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 8px; }
.footer-contact i { color: var(--saffron); margin-top: 2px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,.7); }
.footer-contact a:hover { color: var(--saffron); }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: rgba(255,255,255,.1); border-radius: 50%; color: #fff; margin-right: 8px; font-size: .9rem; transition: background .15s; }
.social-links a:hover { background: var(--saffron); color: var(--brand-dark); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding: 18px 0; }
.map-embed { border-radius: 8px; overflow: hidden; }

/* ---------------------------------------------------------------
   Page Hero (inner pages)
   --------------------------------------------------------------- */
.page-hero { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%); }
.bg-earthy  { background: var(--brand); }
.table-earthy th { background: #7c3f00 !important; color: #fff !important; }

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */
.btn-primary   { background: var(--accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--brand); border-color: var(--brand); }
.btn-outline-primary { color: var(--accent); border-color: var(--accent); }
.btn-outline-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------------------------------------------------------------
   Editor.js rendered content (blog-post.php)
   --------------------------------------------------------------- */
.editorjs-content { line-height: 1.85; font-size: 1.05rem; }
.editorjs-content h2 { margin-top: 2.2rem; margin-bottom: .7rem; font-size: 1.6rem; }
.editorjs-content h3 { margin-top: 1.8rem; margin-bottom: .6rem; font-size: 1.3rem; }
.editorjs-content h4 { margin-top: 1.5rem; margin-bottom: .5rem; font-size: 1.1rem; }
.editorjs-content p  { margin-bottom: 1.3rem; }
.editorjs-content ul,.editorjs-content ol { margin-bottom: 1.3rem; padding-left: 1.6rem; }
.editorjs-content li + li { margin-top: .3rem; }

/* Image */
.editorjs-image { margin: 1.8rem 0; text-align: center; }
.editorjs-image img { max-width: 100%; border-radius: 8px; }
.editorjs-image figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.editorjs-image.img-stretched img { width: 100%; }
.editorjs-image.img-bordered img { border: 2px solid #dee2e6; }
.editorjs-image.img-bg { background: #f8f8f8; padding: 20px; border-radius: 10px; }

/* Quote */
.editorjs-quote {
  border-left: 4px solid var(--accent);
  margin: 1.8rem 0;
  padding: 14px 20px;
  background: #fef9f5;
  border-radius: 0 8px 8px 0;
}
.editorjs-quote p  { font-size: 1.1rem; font-style: italic; margin-bottom: 6px; }
.editorjs-quote cite { font-size: .85rem; color: var(--muted); font-style: normal; }

/* Code */
.editorjs-code {
  background: #1e1e2e;
  color: #cdd6f4;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: .9rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

/* Delimiter */
.editorjs-delimiter { text-align: center; margin: 2rem 0; }
.editorjs-delimiter hr { border: none; border-top: 2px dashed #dee2e6; }

/* Table */
.editorjs-table { margin: 1.5rem 0; }

/* Embed */
.editorjs-embed { margin: 1.8rem 0; text-align: center; }
.editorjs-embed .embed-responsive { position: relative; width: 100%; }
.editorjs-embed iframe { position: absolute; top:0; left:0; width:100%; height:100%; border-radius: 8px; }

/* Warning */
.editorjs-warning { border-left: 4px solid #f0ad4e; border-radius: 4px; }

/* Checklist */
.editorjs-checklist { list-style: none; padding-left: 0; }
.editorjs-checklist li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: .4rem; }
.chk { font-size: .9rem; flex-shrink: 0; margin-top: 2px; }
.chk-done { color: #198754; }
.chk-todo { color: #adb5bd; }
.editorjs-checklist li[checked] { text-decoration: line-through; color: var(--muted); }

/* Link card */
.editorjs-link-card {
  display: flex; align-items: stretch; border: 1px solid #dee2e6;
  border-radius: 10px; overflow: hidden; margin: 1.5rem 0;
  text-decoration: none; color: var(--text); transition: box-shadow .15s;
}
.editorjs-link-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.link-card-img { width: 140px; flex-shrink: 0; background-size: cover; background-position: center; }
.link-card-body { padding: 14px 16px; }
.link-card-title { font-weight: 600; margin-bottom: 4px; }
.link-card-desc   { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.link-card-url    { font-size: .78rem; color: var(--accent); }

/* ---------------------------------------------------------------
   Why Stay Here – location highlight cards
   --------------------------------------------------------------- */
.why-card {
  background: #fff;
  border: 1px solid #f0e8e0;
  border-radius: 14px;
  padding: 32px 24px;
  height: 100%;
  transition: box-shadow .2s, transform .2s;
}
.why-card:hover {
  box-shadow: 0 8px 28px rgba(124,63,0,.12);
  transform: translateY(-3px);
}
.why-card h5 {
  font-family: 'Playfair Display', serif;
  color: #3d1a00;
  margin-bottom: .6rem;
}
.why-icon { line-height: 1; }

.location-highlight-banner {
  background: linear-gradient(135deg, #7c3f00 0%, #a85400 100%);
  color: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  font-size: 1rem;
  line-height: 1.6;
}
.location-highlight-banner strong { color: #ffd580; }
.location-highlight-banner .btn-primary {
  background: #fff;
  color: #7c3f00;
  border-color: #fff;
  font-weight: 600;
}
.location-highlight-banner .btn-primary:hover {
  background: #ffd580;
  border-color: #ffd580;
  color: #3d1a00;
}

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */
@media (max-width: 768px) {
  .section-pad  { padding: 48px 0; }
  .hero-section { min-height: 70vh; }
  .hero-search-card { padding: 18px; }
  .room-card-img-wrap { height: 180px; }
  .booking-widget { position: static; }
}
