/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/



/*video popup*/
.nl-video-popup{
    position: relative;
}
.image-play {
    position: relative;
}
.image-play .icon-wrap {
    z-index: 6;
    position: absolute;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
}
.image-play .icon-wrap > i {
    font-size: 30px;
    color: #fff;
    position: absolute;
    -webkit-transform: translate(-45%, -50%);
    -ms-transform: translate(-45%, -50%);
    transform: translate(-45%, -50%);
    top: 50%;
    left: 50%;
}
.image-play:hover .icon-wrap > i {
    color: #E20A00;
}
/*end video popup*/


<style>
/* ============================================
   YI VILLA - ISOLATED STYLES
   All rules scoped to #yiv-root to prevent
   Flatsome theme conflicts
============================================ */

#yiv-root {
  all: initial;
  display: block;
  width: 100%;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.5;
  color: #1A202C;
  background: #E5E3DB;
  -webkit-font-smoothing: antialiased;
}

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

#yiv-root img {
  display: block;
  max-width: 100%;
  height: auto;
}

#yiv-root a {
  text-decoration: none;
  color: inherit;
}

/* ============================================
   TYPOGRAPHY UTILITIES
============================================ */
#yiv-root .yiv-label {
  font-family: Georgia, serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #718096;
}

#yiv-root .yiv-card-title {
  font-family: Georgia, serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: bold;
  margin-bottom: 8px;
}

#yiv-root .yiv-card-desc {
  font-size: 12px;
  color: #4A5568;
  line-height: 1.6;
}

/* ============================================
   BUTTON
============================================ */
#yiv-root .yiv-btn {
  display: inline-block;
  border: 1px solid #1A202C;
  padding: 12px 32px;
  font-family: Georgia, serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: transparent;
  color: #1A202C;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  text-decoration: none;
}
#yiv-root .yiv-btn:hover {
  background: #1A202C;
  color: #fff;
}

/* ============================================
   SECTION BASE
============================================ */
#yiv-root .yiv-section {
  padding: 96px 48px;
  border-top: 1px solid #CBD5E0;
  background: #E5E3DB;
}
#yiv-root .yiv-inner {
  max-width: 1440px;
  margin: 0 auto;
}
#yiv-root .yiv-section-title {
  text-align: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #718096;
  margin-bottom: 64px;
  font-family: Georgia, serif;
}

@media (max-width: 768px) {
  #yiv-root .yiv-section {
    padding: 64px 24px;
  }
}

/* ============================================
   HERO
============================================ */
#yiv-root #home {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #E5E3DB;
  padding-top: 80px; /* accounts for WP header */
}

#yiv-root .yiv-hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

#yiv-root .yiv-hero-text p {
  max-width: 760px;
  font-family: Georgia, serif;
  font-size: clamp(20px, 3vw, 36px);
  line-height: 1.4;
  color: #2D3748;
}

#yiv-root .yiv-hero-slider {
  flex: 1;
  width: 100%;
  min-height: 420px;
  position: relative;
  overflow: hidden;
}

#yiv-root .yiv-hero-swiper {
  width: 100%;
  height: 100%;
  min-height: 420px;
}

#yiv-root .yiv-hero-swiper .swiper-slide {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#yiv-root .yiv-hero-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

/* ============================================
   FEATURES
============================================ */
#yiv-root .yiv-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 768px) {
  #yiv-root .yiv-features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

#yiv-root .yiv-features-intro {
  font-family: Georgia, serif;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.4;
  color: #2D3748;
}

#yiv-root .yiv-feature-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 16px;
}

/* ============================================
   FACILITIES
============================================ */
#yiv-root .yiv-facilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (min-width: 768px) {
  #yiv-root .yiv-facilities-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

#yiv-root .yiv-facility-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 12px;
}

/* ============================================
   FLOOR PLANS
============================================ */
#yiv-root .yiv-fp-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 768px) {
  #yiv-root .yiv-fp-layout {
    grid-template-columns: 260px 1fr;
  }
}

#yiv-root .yiv-fp-menu {
  display: none;
  flex-direction: column;
  gap: 0;
}
@media (min-width: 768px) {
  #yiv-root .yiv-fp-menu { display: flex; }
}

#yiv-root .yiv-fp-menu-mobile {
  display: flex;
  overflow-x: auto;
  gap: 24px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  scrollbar-width: none;
}
#yiv-root .yiv-fp-menu-mobile::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
  #yiv-root .yiv-fp-menu-mobile { display: none; }
}

#yiv-root .yiv-fp-trigger {
  font-family: Georgia, serif;
  font-size: 14px;
  cursor: pointer;
  color: #718096;
  border-left: 2px solid transparent;
  padding: 10px 0 10px 16px;
  transition: all 0.3s ease;
  white-space: nowrap;
}
#yiv-root .yiv-fp-trigger.active {
  color: #1A202C;
  font-weight: bold;
  border-left-color: #1A202C;
}
#yiv-root,
#yiv-root p,
#yiv-root h1,
#yiv-root h2,
#yiv-root h3,
#yiv-root div {
  font-family: 'Ultine', Georgia, serif !important;
}
#yiv-root .yiv-fp-view-map {
  margin-top: 48px;
}

#yiv-root .yiv-fp-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #D1CBC0;
  overflow: hidden;
}

#yiv-root .yiv-fp-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
#yiv-root .yiv-fp-img.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

#yiv-root .yiv-fp-info {
  display: none;
  margin-top: 32px;
}
#yiv-root .yiv-fp-info.active {
  display: block;
}
#yiv-root .yiv-fp-info h3 {
  font-family: Georgia, serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: bold;
  margin-bottom: 8px;
  color: #1A202C;
}
#yiv-root .yiv-fp-info p {
  font-family: Georgia, serif;
  font-size: 20px;
  color: #4A5568;
  line-height: 1.5;
}

/* ============================================
   BOOKING
============================================ */
#yiv-root .yiv-booking-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 768px) {
  #yiv-root .yiv-booking-layout {
    grid-template-columns: 1fr 2fr;
  }
}

#yiv-root .yiv-booking-opt {
  border-bottom: 1px solid #CBD5E0;
  padding: 24px 0;
  cursor: pointer;
  transition: opacity 0.3s;
}
#yiv-root .yiv-booking-opt .title {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: bold;
  color: #1A202C;
  margin-bottom: 4px;
}
#yiv-root .yiv-booking-opt .desc {
  font-family: Georgia, serif;
  font-size: 13px;
  color: #718096;
}

#yiv-root .yiv-booking-img-wrap {
  background: #fff;
  padding: 16px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}
#yiv-root .yiv-booking-img-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

#yiv-root .yiv-booking-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}
#yiv-root .yiv-booking-img.active {
  opacity: 1;
}

/* ============================================
   GALLERY
============================================ */
#yiv-root .yiv-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (min-width: 768px) {
  #yiv-root .yiv-gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

#yiv-root .yiv-gallery-item {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}
#yiv-root .yiv-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
#yiv-root .yiv-gallery-item:hover img {
  transform: scale(1.05);
}

/* ============================================
   CONTACT
============================================ */
#yiv-root .yiv-contact-wrap {
  max-width: 800px;
  margin: 0 auto;
}

#yiv-root .yiv-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (min-width: 768px) {
  #yiv-root .yiv-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

#yiv-root .yiv-field label {
  display: block;
  font-family: Georgia, serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: bold;
  color: #1A202C;
  margin-bottom: 8px;
}
#yiv-root .yiv-field input,
#yiv-root .yiv-field textarea {
  all: initial;
  display: block;
  width: 100%;
  font-family: Georgia, serif;
  font-size: 14px;
  color: #1A202C;
  background: transparent;
  border: none;
  border-bottom: 1px solid #1A202C;
  padding: 8px 0;
  outline: none;
  resize: none;
  box-sizing: border-box;
  line-height: 1.5;
}
#yiv-root .yiv-field input::placeholder,
#yiv-root .yiv-field textarea::placeholder {
  color: #A0AEC0;
}

#yiv-root .yiv-form-submit {
  text-align: center;
  padding-top: 32px;
}

/* ============================================
   MODAL
============================================ */
#yiv-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}
#yiv-modal.open {
  display: flex;
}
#yiv-modal .yiv-modal-inner {
  position: relative;
  max-width: 1000px;
  width: 100%;
}
#yiv-modal .yiv-modal-close {
  all: initial;
  position: absolute;
  top: -48px;
  right: 0;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  font-family: sans-serif;
  line-height: 1;
}
#yiv-modal img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}

/* ============================================
   LOCATION
============================================ */
#yiv-root .yiv-location-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
  margin-bottom: 32px;
}
#yiv-root .yiv-location-text {
  text-align: center;
  font-family: Georgia, serif;
  font-size: 14px;
  color: #4A5568;
  line-height: 1.8;
  margin-bottom: 24px;
}
#yiv-root .yiv-location-link {
  text-align: center;
}

</style>