/*
Theme Name: Hotel Babylon Dades — Warm
Theme URI: https://hotelbabylondades.com/
Author: Hotel Babylon Dades
Author URI: https://hotelbabylondades.com/
Description: A charming, single-page theme for Hotel Babylon Dades — a family-run hotel in the Dades Gorges, Morocco. Features hero, rooms gallery with lightbox, restaurant, 360 video, reviews, blog, team carousel, location map and contact section.
Version: 1.0.0
Requires at least: 5.5
Tested up to: 6.5
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hotel-babylon
Tags: hotel, one-page, travel, restaurant, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  /* Warm Moroccan / Dades desert palette */
  --primary: #b5563a;        /* clay / terracotta (was teal) */
  --primary-dark: #93412c;   /* deep clay */
  --gold: #c79a5b;           /* brass accent */
  --sand: #e8ddca;           /* light sand */
  --cream: #faf5ec;          /* section cream */
  --dark-bg: #2b2620;        /* warm charcoal */
  --dark-section: #211c17;   /* deep espresso */
  --text-dark: #2b2620;      /* warm near-black */
  --text-light: #f6f1e8;
  --text-muted: #8a8073;     /* warm stone */
  --white: #ffffff;
  --overlay: rgba(43, 38, 32, 0.55);

  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Helvetica Neue', sans-serif;

  --shadow-card: 0 10px 40px rgba(43,38,32,0.10);
  --shadow-hover: 0 20px 60px rgba(43,38,32,0.18);

  --container: 1200px;
  --radius: 12px;            /* softer, modern corners (was 4px) */
  --radius-pill: 999px;      /* fully-rounded CTA buttons */
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.25; }

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

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

section { padding: 100px 0; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--primary); color: #fff; padding: 12px 20px;
  border-radius: var(--radius);
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

/* ---------- Section titles ---------- */
.section-head { text-align: center; margin-bottom: 60px; }
.section-head h2 { font-size: 2.6rem; color: var(--text-dark); }
.section-head .rule {
  width: 64px; height: 3px; background: var(--gold);
  margin: 22px auto 0; border-radius: 3px;
}
.section-head p { color: var(--text-muted); margin-top: 16px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 15px 52px; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; font-size: 0.82rem; cursor: pointer; line-height: 1;
  transition: all 0.3s ease; border: 2px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 22px rgba(181,86,58,0.35); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(181,86,58,0.45); }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--text-dark); transform: translateY(-2px); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 18px 0; transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.navbar.scrolled { background: var(--dark-bg); padding: 10px 0; box-shadow: 0 4px 24px rgba(0,0,0,0.25); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.nav-logo img { height: 52px; width: auto; transition: height 0.4s ease; }
.navbar.scrolled .nav-logo img { height: 44px; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  color: #fff; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 400; position: relative; padding: 6px 0; transition: color 0.3s ease;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--gold); transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--primary); color: #fff !important; padding: 10px 30px;
  border-radius: var(--radius-pill); font-weight: 700;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--primary-dark); }

.hamburger {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: none; cursor: pointer; padding: 6px; z-index: 1100;
}
.hamburger span { width: 26px; height: 2px; background: #fff; transition: all 0.3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; min-height: 600px; display: flex;
  align-items: center; justify-content: center; text-align: center;
  overflow: hidden; padding: 0;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url('https://hotelbabylondades.com/wp-content/uploads/2018/04/IMG_7561.jpg') center/cover no-repeat;
  animation: kenburns 14s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,38,32,0.35) 0%, rgba(43,38,32,0.62) 100%); z-index: -1; }
.hero-content { color: #fff; max-width: 800px; padding: 0 24px; }
.hero-content h1 { font-size: 4.5rem; font-weight: 700; margin-bottom: 10px; text-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.hero-content .tagline { font-size: 1.4rem; color: var(--gold); letter-spacing: 0.1em; margin-bottom: 36px; font-weight: 300; }
.hero-btns { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

.scroll-down {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  color: #fff; animation: bounce 2s infinite; z-index: 2;
}
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0);} 50% { transform: translateX(-50%) translateY(10px);} }

/* ---------- Features ---------- */
#features { background: var(--cream); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card); transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.feature-img { height: 200px; overflow: hidden; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.feature-card:hover .feature-img img { transform: scale(1.08); }
.feature-body { padding: 30px 26px 34px; text-align: center; }
.feature-icon {
  width: 60px; height: 60px; border-radius: 50%; background: rgba(181,86,58,0.12);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  margin: -60px auto 18px; position: relative; border: 4px solid #fff; background-color: var(--primary);
}
.feature-icon svg { width: 26px; height: 26px; stroke: #fff; }
.feature-body h3 { font-size: 1.4rem; margin-bottom: 12px; }
.feature-body p { color: var(--text-muted); font-size: 0.96rem; }

/* ---------- Rooms (8 room cards + modal) ---------- */
.rooms-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.room-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow-card); transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.room-card:hover, .room-card:focus-visible { transform: translateY(-8px); box-shadow: var(--shadow-hover); outline: none; }
.room-card:focus-visible { box-shadow: 0 0 0 3px var(--primary), var(--shadow-hover); }
.room-media { position: relative; height: 220px; overflow: hidden; }
.room-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.room-card:hover .room-media img { transform: scale(1.08); }
.room-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%; background: rgba(43,38,32,0.55);
  color: #fff; display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease; backdrop-filter: blur(2px);
}
.room-card:hover .room-play { background: var(--primary); transform: translate(-50%, -50%) scale(1.08); }
.room-play svg { width: 24px; height: 24px; margin-left: 3px; }
.room-info { padding: 20px 22px 24px; text-align: center; }
.room-info h3 { font-size: 1.3rem; margin-bottom: 6px; }
.room-price { display: block; color: var(--primary); font-weight: 700; font-size: 0.95rem; margin-bottom: 12px; }
.room-view {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; color: var(--text-muted); transition: color 0.3s ease;
}
.room-card:hover .room-view { color: var(--primary); }

/* Gallery tiles (used by the Gallery section) */
.tile-overlay {
  position: absolute; inset: 0; background: rgba(43,38,32,0.5); color: #fff;
  display: flex; align-items: center; justify-content: center; opacity: 0;
  transition: opacity 0.4s ease; font-size: 0.82rem; letter-spacing: 0.15em;
  text-transform: uppercase; font-weight: 700;
}
.center-cta { text-align: center; margin-top: 50px; }

/* Room modal */
.room-modal {
  position: fixed; inset: 0; z-index: 3200; background: rgba(15,12,9,0.82);
  display: none; align-items: flex-start; justify-content: center;
  padding: 40px 20px; overflow-y: auto;
}
.room-modal.open { display: flex; }
.room-modal-box {
  background: var(--cream); border-radius: var(--radius); max-width: 900px; width: 100%;
  position: relative; box-shadow: 0 30px 90px rgba(0,0,0,0.5); overflow: hidden;
  animation: roomIn 0.35s ease;
}
@keyframes roomIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.room-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px;
  border: none; border-radius: 50%; background: rgba(43,38,32,0.55); color: #fff;
  font-size: 1.7rem; line-height: 1; cursor: pointer; transition: background 0.3s ease;
}
.room-modal-close:hover { background: var(--primary); }
.room-modal-viewer { background: #17130f; aspect-ratio: 16 / 9; width: 100%; }
.room-modal-viewer img, .room-modal-viewer video { width: 100%; height: 100%; object-fit: cover; display: block; }
.room-modal-thumbs { display: flex; gap: 10px; padding: 14px 20px; overflow-x: auto; background: #fff; }
.room-thumb {
  flex: 0 0 84px; height: 60px; border-radius: 8px; overflow: hidden; cursor: pointer;
  position: relative; border: 2px solid transparent; transition: border-color 0.25s ease; background: #eee;
}
.room-thumb.active { border-color: var(--primary); }
.room-thumb img { width: 100%; height: 100%; object-fit: cover; }
.room-thumb.video-thumb::after {
  content: ''; position: absolute; inset: 0; background: rgba(43,38,32,0.45)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/22px no-repeat;
}
.room-modal-content { padding: 24px 30px 34px; text-align: center; }
.room-modal-content h3 { font-size: 1.9rem; margin-bottom: 6px; }
.room-modal-content .room-price { font-size: 1.05rem; margin-bottom: 14px; }
.room-modal-content p { color: #6b6357; max-width: 560px; margin: 0 auto 22px; }

/* ---------- Restaurant ---------- */
#restaurant { background: var(--cream); }
.restaurant-split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.restaurant-text h3 { font-size: 1.8rem; color: var(--primary-dark); margin: 24px 0 14px; }
.restaurant-text .rule { width: 60px; height: 3px; background: var(--primary); margin-bottom: 24px; }
.restaurant-text p { margin-bottom: 18px; color: var(--text-muted); }
.restaurant-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.restaurant-grid .tile { overflow: hidden; border-radius: var(--radius); cursor: pointer; }
.restaurant-grid img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.6s ease; }
.restaurant-grid .tile:hover img { transform: scale(1.1); }

/* ---------- Video 360 ---------- */
#video360 { background: var(--dark-section); }
#video360 .section-head h2 { color: var(--gold); }
.video-wrap { max-width: 1000px; margin: 0 auto; position: relative; padding-bottom: 56.25%; height: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Gallery ---------- */
.gallery-masonry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-masonry .tile { position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer; box-shadow: var(--shadow-card); }
.gallery-masonry img { width: 100%; height: 260px; object-fit: cover; transition: transform 0.6s ease; }
.gallery-masonry .tile:hover img { transform: scale(1.08); }
.gallery-masonry .tile-overlay { background: rgba(181,86,58,0.55); }
.gallery-masonry .tile-overlay svg { width: 34px; height: 34px; stroke: #fff; }

/* ---------- Reviews ---------- */
#reviews { background: var(--dark-bg); }
#reviews .section-head h2 { color: #fff; }
.reviews-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 850px; margin: 0 auto; }
.review-card {
  background: #3a332b; border-radius: var(--radius); padding: 40px 34px;
  text-align: center; color: #fff; border: 2px solid transparent;
}
.review-card.tripadvisor { border-color: var(--primary); }
.review-card .stars { color: var(--gold); font-size: 1.5rem; letter-spacing: 4px; margin-bottom: 10px; }
.review-card .big { font-family: var(--font-head); font-size: 3.4rem; color: var(--gold); line-height: 1; margin-bottom: 8px; }
.review-card h3 { font-size: 1.4rem; margin-bottom: 16px; }
.review-card p { color: #d8cfc0; margin-bottom: 8px; font-size: 0.95rem; }
.review-card .badge { display: inline-block; background: rgba(181,86,58,0.15); color: var(--primary); padding: 6px 16px; border-radius: 20px; font-size: 0.82rem; margin: 12px 0; }
.review-card a { color: var(--primary); font-weight: 700; display: inline-block; margin-top: 14px; }
.review-card a:hover { color: var(--gold); }

/* ---------- Blog (front-page "News From Us" cards) ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blog-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.4s ease, box-shadow 0.4s ease; }
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.blog-card-img { display: block; position: relative; height: 200px; overflow: hidden; background: var(--sand); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.blog-date { position: absolute; top: 14px; left: 14px; z-index: 1; background: var(--primary); color: #fff; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; padding: 6px 14px; border-radius: var(--radius); }
.blog-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card p { color: var(--text-muted); margin-bottom: 18px; font-size: 0.96rem; flex: 1; }
.blog-card .read-more { align-self: flex-start; }
.read-more { color: var(--primary); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.8rem; }
.read-more:hover { color: var(--primary-dark); }

/* ---------- Team ---------- */
#team { background: var(--cream); }
.carousel-wrap { position: relative; }
.team-track { display: flex; gap: 24px; overflow-x: auto; scroll-behavior: smooth; padding: 10px 4px 30px; scrollbar-width: none; }
.team-track::-webkit-scrollbar { display: none; }
.team-card { flex: 0 0 240px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); text-align: center; }
.team-card img { width: 100%; height: 290px; object-fit: cover; }
.team-card .info { padding: 20px 14px 24px; }
.team-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.team-card .role { color: var(--primary); font-style: italic; font-size: 0.95rem; }
.carousel-btn {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card); transition: background 0.3s ease;
}
.carousel-btn:hover { background: var(--primary-dark); }
.carousel-btn.prev { left: -10px; }
.carousel-btn.next { right: -10px; }
.carousel-btn svg { width: 22px; height: 22px; stroke: #fff; }

/* ---------- Location ---------- */
#location { padding: 0; position: relative; }
.map-wrap { position: relative; }
.map-wrap iframe { width: 100%; height: 480px; border: 0; display: block; filter: grayscale(0.1); }
.map-card {
  position: absolute; top: 40px; right: 40px; background: var(--dark-bg); color: #fff;
  padding: 30px 28px; border-radius: var(--radius); max-width: 300px; box-shadow: var(--shadow-hover);
}
.map-card h3 { color: var(--gold); font-size: 1.4rem; margin-bottom: 14px; }
.map-card p { font-size: 0.92rem; color: #d8cfc0; margin-bottom: 8px; }
.map-card a { color: var(--primary); }

/* ---------- Contact ---------- */
#contact { background: var(--dark-section); }
#contact .section-head h2 { color: #fff; }
.contact-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; }
.contact-form .field { margin-bottom: 26px; }
.contact-form label { display: block; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.contact-form input, .contact-form textarea {
  width: 100%; background: transparent; border: none; border-bottom: 2px solid #4a4238;
  color: #fff; font-family: var(--font-body); font-size: 1rem; padding: 10px 2px; transition: border-color 0.3s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-bottom-color: var(--primary); }
.contact-form textarea { resize: vertical; min-height: 110px; }
.form-msg { margin-top: 16px; font-size: 0.92rem; display: none; }
.form-msg.success { color: var(--primary); display: block; }
.form-msg.error { color: #e74c3c; display: block; }

.contact-info { color: #d8cfc0; }
.contact-info h3 { color: #fff; font-size: 1.5rem; margin-bottom: 24px; }
.info-row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.info-row .ico { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; background: rgba(181,86,58,0.15); display: flex; align-items: center; justify-content: center; }
.info-row .ico svg { width: 22px; height: 22px; stroke: var(--primary); }
.info-row a, .info-row span { color: #d8cfc0; }
.info-row a:hover { color: var(--primary); }

/* ---------- Awards ---------- */
#awards { text-align: center; background: var(--cream); }
#awards p { color: var(--text-muted); margin-bottom: 30px; }
#awards img { max-width: 320px; margin: 0 auto; border-radius: var(--radius); box-shadow: var(--shadow-card); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-section); color: #d8cfc0; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-bottom: 40px; }
.site-footer h3 { color: var(--gold); font-size: 1.3rem; margin-bottom: 20px; }
.site-footer a { color: #d8cfc0; transition: color 0.3s ease; }
.site-footer a:hover { color: var(--primary); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 12px; }
.footer-divider { height: 2px; background: var(--gold); opacity: 0.4; margin: 0 0 30px; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; }
.copyright { text-align: center; padding: 22px 0; border-top: 1px solid #3a332b; color: var(--text-muted); font-size: 0.85rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(10,10,12,0.94); z-index: 3000;
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); box-shadow: 0 20px 80px rgba(0,0,0,0.6); }
.lb-btn {
  position: absolute; background: rgba(255,255,255,0.12); border: none; color: #fff;
  width: 54px; height: 54px; border-radius: 50%; cursor: pointer; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center; transition: background 0.3s ease;
}
.lb-btn:hover { background: var(--primary); }
.lb-close { top: 26px; right: 26px; }
.lb-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 26px; top: 50%; transform: translateY(-50%); }

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

/* ---------- Inner pages: keep the fixed navbar visible on light backgrounds ---------- */
.navbar-solid { background: var(--dark-bg); box-shadow: 0 4px 24px rgba(0,0,0,0.22); padding: 12px 0; }
.navbar-solid.scrolled { padding: 10px 0; }

/* ---------- Blog listing (index / archive / search) ---------- */
.blog-main { background: var(--cream); padding: 0 0 90px; min-height: 60vh; }
.blog-main > .container { padding-top: 60px; }

.blog-hero {
  position: relative; text-align: center; padding: 150px 24px 64px;
  background: url('https://hotelbabylondades.com/wp-content/uploads/2018/04/IMG_7561.jpg') center/cover no-repeat;
}
.blog-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,38,32,0.5) 0%, rgba(43,38,32,0.7) 100%); }
.blog-hero-inner { position: relative; z-index: 1; }
.blog-hero h1 { font-size: 2.9rem; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,0.35); }
.blog-hero h1 span { color: var(--gold); }
.blog-header-desc { color: rgba(255,255,255,0.88); margin-top: 14px; }
.blog-hero .rule { width: 64px; height: 3px; background: var(--gold); margin: 20px auto 0; border-radius: 3px; }

.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; }
.post-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-card); transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.post-card-img { display: block; height: 210px; overflow: hidden; background: var(--sand); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.post-card:hover .post-card-img img { transform: scale(1.06); }
.post-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card-meta { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); font-weight: 700; margin-bottom: 10px; }
.post-card-meta a { color: var(--primary); }
.post-card h2 { font-size: 1.38rem; line-height: 1.3; margin-bottom: 12px; }
.post-card h2 a:hover { color: var(--primary); }
.post-card p { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 18px; flex: 1; }
.post-card .read-more { align-self: flex-start; }

.blog-pagination { margin-top: 56px; }
.blog-pagination .nav-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.blog-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px;
  padding: 0 16px; border-radius: var(--radius); background: #fff; color: var(--text-dark);
  box-shadow: var(--shadow-card); font-weight: 700; transition: background 0.3s ease, color 0.3s ease;
}
.blog-pagination a.page-numbers:hover, .blog-pagination .page-numbers.current { background: var(--primary); color: #fff; }

.blog-empty { text-align: center; max-width: 520px; margin: 40px auto; }
.blog-empty p { color: var(--text-muted); margin-bottom: 20px; }
.blog-empty form { display: flex; gap: 10px; justify-content: center; }
.blog-empty input[type="search"] { padding: 12px 16px; border: 2px solid var(--sand); border-radius: var(--radius); min-width: 220px; }
.blog-empty input[type="submit"] { padding: 12px 22px; border: none; border-radius: var(--radius); background: var(--primary); color: #fff; font-weight: 700; cursor: pointer; }

/* ---------- Single post / page ---------- */
.single-main { background: #fff; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.single-header { background: var(--cream); padding: 130px 0 34px; text-align: center; }
.single-meta-top { margin-bottom: 12px; }
.single-meta-top a { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.74rem; }
.single-header h1 { font-size: 2.6rem; line-height: 1.2; margin-bottom: 14px; color: var(--text-dark); }
.single-meta { color: var(--text-muted); font-size: 0.9rem; }
.single-feature { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.single-feature img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-card); margin-top: -30px; position: relative; }
.single-content { padding-top: 46px; padding-bottom: 10px; font-size: 1.08rem; line-height: 1.85; color: #3a342c; }
.single-content > * { margin-bottom: 1.5em; }
.single-content h2 { font-size: 1.9rem; margin: 1.5em 0 0.5em; color: var(--text-dark); }
.single-content h3 { font-size: 1.45rem; margin: 1.4em 0 0.5em; color: var(--text-dark); }
.single-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.single-content a:hover { color: var(--primary-dark); }
.single-content img { border-radius: var(--radius); height: auto; }
.single-content blockquote {
  border-left: 4px solid var(--gold); background: var(--cream); padding: 18px 24px; margin: 1.6em 0;
  font-style: italic; color: #5a5347; border-radius: 0 var(--radius) var(--radius) 0;
}
.single-content ul, .single-content ol { padding-left: 1.4em; }
.single-content li { margin-bottom: 0.5em; }
.single-content code { background: var(--cream); padding: 2px 6px; border-radius: 5px; font-size: 0.92em; }
.single-content pre { background: var(--dark-section); color: var(--text-light); padding: 20px; border-radius: var(--radius); overflow: auto; }
.single-footer { padding-top: 6px; padding-bottom: 10px; }
.single-tags a { display: inline-block; background: var(--cream); color: var(--text-muted); padding: 5px 14px; border-radius: 999px; font-size: 0.82rem; margin: 0 6px 8px 0; }
.single-tags a:hover { background: var(--primary); color: #fff; }

.post-nav { display: flex; justify-content: space-between; gap: 20px; margin: 40px auto; border-top: 1px solid #eee; padding-top: 30px; }
.post-nav a { color: var(--primary); font-weight: 700; }
.post-nav-next { text-align: right; margin-left: auto; }

.comments-area { margin: 30px auto 80px; }
.comments-area .comment-list { list-style: none; }
.comments-area .comment-list li { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.comments-area h2, .comments-area h3 { color: var(--text-dark); margin-bottom: 16px; }
.comments-area input, .comments-area textarea { width: 100%; padding: 12px 14px; border: 2px solid var(--sand); border-radius: var(--radius); margin-bottom: 14px; font-family: var(--font-body); }
.comments-area input[type="submit"] { width: auto; background: var(--primary); color: #fff; border: none; padding: 14px 34px; border-radius: var(--radius-pill); font-weight: 700; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .rooms-grid { grid-template-columns: repeat(2, 1fr); }
  .masonry { grid-template-columns: repeat(2, 1fr); }
  .gallery-masonry { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content h1 { font-size: 3.4rem; }
}
@media (max-width: 768px) {
  section { padding: 70px 0; }
  .section-head h2 { font-size: 2rem; }
  .nav-links {
    position: fixed; top: 0; right: -100%; height: 100vh; width: 75%; max-width: 320px;
    background: var(--dark-bg); flex-direction: column; align-items: flex-start;
    padding: 100px 36px 40px; gap: 24px; transition: right 0.4s ease; box-shadow: -10px 0 40px rgba(0,0,0,0.4);
  }
  .nav-links.open { right: 0; }
  .hamburger { display: flex; }
  .navbar { background: var(--dark-bg); }
  .features-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .restaurant-split { grid-template-columns: 1fr; }
  .contact-split { grid-template-columns: 1fr; }
  .rooms-grid { grid-template-columns: 1fr; }
  .masonry { grid-template-columns: 1fr; }
  .gallery-masonry { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .blog-header h1, .single-header h1 { font-size: 2rem; }
  .post-nav { flex-direction: column; }
  .post-nav-next { text-align: left; margin-left: 0; }
  .room-modal-content { padding: 22px 20px 28px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-links { justify-content: center; }
  .map-card { position: static; max-width: none; margin: 0; border-radius: 0; }
  .hero-content h1 { font-size: 2.6rem; }
  .hero-content .tagline { font-size: 1.1rem; }
  .carousel-btn.prev { left: 0; }
  .carousel-btn.next { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
