/* ==========================================================
   Rasha Lite — performance overrides (loaded after style.css)
   System fonts, CSS-only carousels, lightweight hero slider,
   blog grid and image fixes.
   ========================================================== */

/* ---------- System fonts (no web-font downloads) ---------- */
html:root {
  --primary-font: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --secondary-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --eshb-title-font: var(--primary-font);
  --eshb-body-font: var(--secondary-font);
}
body { text-rendering: optimizeSpeed; }
img { max-width: 100%; height: auto; }

/* ---------- Header ---------- */
.cs_site_branding img.header_logo { width: auto !important; height: 64px; }
@media (max-width: 991px) { .cs_site_branding img.header_logo { height: 48px; } }
.btn-whatsapp-pulse svg { width: 30px; height: 30px; fill: #fff; flex: none; }

/* ---------- Hero slider ---------- */
.rs-hero { position: relative; height: 100vh; height: 100svh; max-height: 1100px; min-height: 520px; overflow: hidden; background: #1b1b1b; }
.rs-hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.rs-hero-slide.is-active { opacity: 1; visibility: visible; }
.rs-hero-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.5); }
.rs-hero-slide .cs_hero { height: 100%; padding: 100px 0 120px; }
.rs-hero .cs_hero_title { font-size: clamp(38px, 6vw, 78px); line-height: 1.12; }
.rs-hero .cs_slider_navigation { bottom: 50px; }
.rs-hero .cs_slider_navigation button { background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; }
.rs-hero .explore_btn { display: inline-block; }

/* ---------- Scroll-snap carousels (replaces Slick) ---------- */
.rs-carousel { position: relative; --rs-gap: 30px; --rs-per: 3; }
.rs-track {
  display: grid; grid-auto-flow: column; gap: var(--rs-gap);
  grid-auto-columns: calc((100% - (var(--rs-per) - 1) * var(--rs-gap)) / var(--rs-per));
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 4px;
}
.rs-track::-webkit-scrollbar { display: none; }
.rs-track > * { scroll-snap-align: start; min-width: 0; }
.rs-carousel.rs-one { --rs-per: 1; }
@media (max-width: 1199px) { .rs-carousel:not(.rs-one) { --rs-per: 2; } }
@media (max-width: 767px) {
  .rs-carousel { --rs-gap: 16px; }
  .rs-carousel:not(.rs-one) { --rs-per: 1; }
  .rs-carousel:not(.rs-one) .rs-track { grid-auto-columns: 86%; }
}
.rs-arrows { display: flex; justify-content: center; gap: 24px; margin-top: 36px; }
.rs-arrows button {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border);
  background: transparent; color: var(--primary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: .2s;
}
.rs-arrows button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.rs-arrows svg { width: 18px; height: 18px; }

/* Room cards: single image, fixed ratio */
.cs_card.cs_style_1 .cs_card_thumb img,
.cs_card.cs_style_1 .cs_card_thumb img:first-child {
  position: relative; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block;
  opacity: 1; filter: none; transform: none;
}
.cs_card.cs_style_1 .cs_card_thumb:hover img:first-child { transform: scale(1.04); }

/* Facilities / blog thumbs */
.cs_post.cs_style_1 .cs_post_thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.rs-facility .cs_post_subtitle p:last-child { margin-bottom: 0; }

/* Testimonials */
.rs-testimonials .cs_testimonial_blockquote { font-size: clamp(20px, 2.6vw, 34px); line-height: 1.45; }
.rs-testimonials .cs_testimonial_blockquote p { margin: 0; }

/* Home gallery grid (real <img> instead of CSS backgrounds) */
.cs_gallery_item.cs_style_1 > img.rs-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Video block — background is applied lazily */
.cs_video_block_bg { background-size: cover; background-position: center; }

/* ---------- Page heading with real <img> background ---------- */
.cs_page_heading.rs-heading { position: relative; overflow: hidden; }
.cs_page_heading.rs-heading > img.rs-heading-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55); }
.cs_page_heading.rs-heading > .container { position: relative; z-index: 1; }
.cs_page_heading h1 { font-size: clamp(30px, 5vw, 64px); line-height: 1.15; overflow-wrap: anywhere; }

/* ---------- Blog cards & grid ---------- */
.rs-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 30px; }
@media (max-width: 991px) { .rs-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .rs-blog-grid { grid-template-columns: 1fr; gap: 40px; } }
.cs_post.cs_style_1.cs_size_1 .cs_post_thumb { height: auto; }
.cs_post.cs_style_1 .cs_post_title { font-size: 26px; line-height: 1.3; max-width: none; -webkit-line-clamp: 2; max-height: 2.6em; }
.cs_post.cs_style_1 .cs_post_title a { display: inline; }
.cs_post.cs_style_1 .cs_post_excerpt { font-size: 15px; line-height: 1.7; margin-bottom: 22px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cs_post.cs_style_1 .cs_post_meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; }
.cs_post.cs_style_1 .cs_post_meta .cs_post_meta_seperator { flex: 1; min-width: 20px; }

.rs-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 60px; }
.rs-pagination .page-numbers {
  min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 5px; color: var(--primary); background: #fff; line-height: 1;
}
.rs-pagination .page-numbers.current, .rs-pagination a.page-numbers:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.rs-empty { text-align: center; padding: 40px 0; }

/* ---------- Single blog content ---------- */
.cs_blog_details { overflow-wrap: break-word; }
.cs_blog_details img, .cs_blog_details figure, .cs_blog_details iframe, .cs_blog_details video { max-width: 100%; height: auto; }
.cs_blog_details figure { margin: 30px 0; }
.cs_blog_details table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 0 0 25px; }
.cs_blog_details th, .cs_blog_details td { border: 1px solid var(--border); padding: 10px 14px; }
.cs_blog_details h2, .cs_blog_details h3, .cs_blog_details h4 { margin: 40px 0 15px; line-height: 1.3; }
.cs_blog_details h2 { font-size: clamp(26px, 3vw, 36px); }
.cs_blog_details h3 { font-size: clamp(22px, 2.4vw, 30px); }
.cs_blog_details ul, .cs_blog_details ol { padding-left: 22px; margin-bottom: 25px; }
.cs_blog_details li { margin-bottom: 8px; }
.cs_blog_details a { color: var(--accent); text-decoration: underline; }
.rs-post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 30px; font-size: 15px; color: var(--secondary); }
.cs_recent_posts { list-style: none; padding: 0; margin: 0; }
.cs_recent_posts li + li { margin-top: 18px; }
.cs_recent_post_thumb img { width: 80px; height: 80px; object-fit: cover; border-radius: 5px; display: block; }
.cs_recent_post_title { font-size: 17px; line-height: 1.35; }
.cs_sidebar_item + .cs_sidebar_item { margin-top: 50px; }
.cs_sidebar_widget_title { margin-bottom: 25px; }
.widget_tag_cloud a { display: inline-block; font-size: 14px !important; border: 1px solid var(--border); border-radius: 4px; padding: 4px 12px; margin: 0 6px 8px 0; }
.rs-post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--border); }
.rs-post-nav a { color: var(--primary); font-family: var(--primary-font); font-size: 18px; max-width: 48%; }
.rs-post-nav .rs-next { text-align: right; margin-left: auto; }

/* ---------- Easy Hotel room gallery: match Swiper's layout before it initialises (no layout shift) ---------- */
.eshb-accomodation-gallery-section .has-accomodation-gallery:not(.swiper-initialized) .swiper-wrapper { display: flex; }
.eshb-accomodation-gallery-section .has-accomodation-gallery:not(.swiper-initialized) .swiper-slide { flex: 0 0 100%; width: 100%; }
@media (min-width: 1024px) {
  .eshb-accomodation-gallery-section .has-accomodation-gallery:not(.swiper-initialized) .swiper-wrapper { transform: translateX(25%); }
  .eshb-accomodation-gallery-section .has-accomodation-gallery:not(.swiper-initialized) .swiper-slide { flex-basis: 50%; width: 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .rs-track { scroll-behavior: auto; }
  .rs-hero-slide { transition: none; }
}
