
*{
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    font-family: "Lora", serif;
    /* color: #333; */


}
/* =========menu============ */
nav{
    height: 80px; 
    width: 100%;
    background-color:#843c0c;
    position: fixed;
    z-index: 100; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
nav img{
    width: 70px;
    position: absolute;
    top: 5px;
    left: 1%;
    filter: drop-shadow(0 0 6px rgb(76, 8, 8)); /* ធ្វើ logo ឲ្យច្បាស់ */
    
}
nav ul{
    float: right;
    margin-right: 25px;

}
nav ul li {
    display: inline-block;
    line-height: 80px;
    margin: 0 15px;
}
nav ul li a{
    position: relative;
    color: rgb(255, 255, 255);
    font-size: 18px;
    padding: 5px 0;
   
}
/*========== style hover========= */
nav ul li a:before{
    position: absolute;
    content: ' ';
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: rgb(255, 255, 255);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .4s linear;
}
nav ul li a:hover:before{
    transform: scaleX(1);
    transform-origin: left;
}
/* ==========icon menu=========== */
label #btn,
label #cancel{
    color: white;
    font-size: 30px;
    float: right;
    line-height: 80px;
    margin-right: 40px;
    cursor: pointer;
    display: none;
}
#check{
    display: none;
}
@media (max-width: 1118px){
    nav img{
        left: 8%;
    }
     
}
@media (max-width: 944px){
    nav img{
        left: 6%;
        top: 5px;
        width: 70px;
    }
    nav ul li a{
        font-size: 17px;
    }  
}
@media (max-width: 860px){
    label #btn{
        display: block;
    }
    ul{
        position: fixed;
        width: 100%;
        height: 100vh;
        background: #843c0ce7 ;
        top: 80px;
        left: -100%;
        text-align: center; 
        transition: all .5s;
    }
    nav ul li{
        display: block;
        margin: 50px 0;
        line-height: 30px;
    }
    nav ul li a{
        font-size: 20px;
    }  
    #check:checked ~ ul{
        left: 0;
    }
    #check:checked ~ label #btn{
        display: none;
    }
    #check:checked ~ label #cancel{
        display: block;
    }
}
  
/* ============riveiw============ */
.riveiw{
  text-align: center;
  /* font-size: 20px; */
  margin: 60px;
  

}
/* =========contain event ========== */
  .container-event {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 20px;
}

.card-event {
  position: relative;
  flex: 1 1 1 300px; /* ត្រូវនឹងទំហំល្អសម្រាប់ទូរស័ព្ទ & laptop */
  max-width: 600px;
  overflow: hidden;
}
.card-event img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overlay-event {
  position: absolute;
  top: 0;
  left: 0;
  padding: 20px;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.overlay-event h2 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.overlay-event p {
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.overlay-event .btn-event {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid white;
  color: white;
  border-radius: 10px 0px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  margin: 0 auto;
  max-width: 200px;
}

.btn-event:hover {
  background-color: white;
  color: #000;
}

/* ✅ Responsive for Tablets & Phones */
@media (max-width: 1024px) {
  .container-event {
    flex-direction: column;
    align-items: center;
  }
  
  .overlay-event h2 {
    font-size: 1.8rem;
  }

  .overlay-event p {
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
   .container{
    flex-direction: column;
    /* align-items: center; */
  }
  .overlay-event h2 {
    font-size: 1.5rem;
  }

  .overlay-event p {
    font-size: 0.9rem;
  }

  .overlay-event .btn-event {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

  /* ======text comtain================ */
.hero-txt {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  text-align: center;
  background-color: #383e3a;
  color: #fff;
}
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 2s ease-out, transform 2s ease-out;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

.fade-in{
  max-width: 800px;
  margin: auto;
}

.hero-txt h1 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffffff;
  
}

.hero-txt h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.hero-txt p {
  margin-bottom: 15px;
  font-size: 16px;
}

/* Responsive */
@media (max-width: 600px) {
  .hero-txt{
    padding: 15px;
  }

  .hero-txt h1 {
    font-size: 24px;
  }

   .hero-txt h2 {
    font-size: 18px;
  }

   .hero-txt  p {
    font-size: 15px;
  }
}
  /* ===================footer============= */
.footer {
  background-color: #e9ded3;
  color: #5c2c09;
  padding: 80px 20px 20px;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1500px;
  margin: auto;
  gap: 20px;
}
.footer-logo img {
  width: 100px;
}
.footer-contact,
.footer-follow,
.footer-logo {
  flex: 1 1 1 300px;
  min-width: 250px;
}

.footer-contact h3,
.footer-follow h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #843c0c;
}

.footer-contact p,
.footer-follow p {
  margin: 5px 0;
  color: #3b3b3b;
  font-size: 14px;
}

.footer-contact i,
.footer-follow i {
  margin-right: 8px;
  color: #843c0c;
}

.footer-bottom {
  text-align: center;
  background-color: #843c0c;
  color: #fff;
  padding: 10px 0;
  margin-top: 50px;
  font-size: 14px;
}

/* 📱 Responsive Design */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-contact,
  .footer-follow,
  .footer-logo {
    max-width: 100%;
  }

  .social-icons a {
    margin: 10px;
  }
}


/* =========contain Gallery=========== */
    .carousel {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1rem;
      padding: 2rem;
    }
    .carousel img {
      width: 100%;
      height: 100%;
      /* border-radius: 10px; */
      cursor: pointer;
      transition: 0.3s ease;
    }
    .carousel img:hover {
      transform: scale(1.05);
    }
    .nav-btn {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.8);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }
    .nav-btn.left {
      left: 10px;
    }
    .nav-btn.right {
      right: 10px;
    }
    /* Modal */
    .modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.8);
      display: none;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      z-index: 999;
    }

    .modal img {
      max-width: 100%;
      max-height: 95% ;
      /* border-radius: 10px; */
    }
    .modal .close-btn {
      position: absolute;
      top: 20px;
      right: 30px;
      font-size: 50px;
      color: white;
      cursor: pointer;
    }
    .modal-nav {
      position: absolute;
      top: 50%;
      font-size: 40px;
      color: white;
      background: rgba(0, 0, 0, 0.3);
      padding: 10px 20px;
      border: none;
      cursor: pointer;
      border-radius: 10px;
    }
    .modal-nav.left {
      left: 30px;
    }
    .modal-nav.right {
      right: 30px;
    }
    @media (max-width: 944px){
      .modal-nav{
       font-size: 30px;
       padding: 10px 5px;
       border-radius: 2px;
      }   
  }
    @media (max-width: 600px) {
      .carousel img {
        width: 100%;   
      }
      .modal-nav{
       font-size: 20px;
       padding: 10px 5px;
       border-radius: 2px;
      }    
    }
/* ===========contain-villa======= */
  .container-villa {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1rem;
  padding: 2rem;
}
.card {
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
}
.card img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 15px;
}

.room-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.room-info {
  font-size: 1rem;
  color: #555;
  margin-bottom: 12px;
}

.room-desc {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 16px;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.button-group a {
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #843c0c;
  font-weight: bold;
  font-size: 16px;
  padding: 10px 20px;
  border-radius: 8px;
  background-color: transparent;
  flex: 1;
  justify-content: center; 
}

.btn-outline:hover {
  background-color: #612d0a;
  color: white;
}

.btn-gradient {
  padding: 12px 30px;
  background: linear-gradient(to right, #4b2b1a, #612d0a);
  color: white;
  font-weight: bold;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  text-align: center;
  flex: 1;
}

.btn-gradient:hover {
  opacity: 0.9;
}
.button-group .icon {
  font-size: 20px;
  display: inline-block;
}
/* Laptop */
@media (max-width: 1280px) {
  .container-villa{
     grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
  .btn-outline,
  .btn-gradient {
    font-size: 14px;
    padding: 10px 16px;
  }
}
/* Tablet */
@media (max-width: 768px) {
  .container-villa {
    grid-template-columns: 1fr;
  }
  .btn-outline,
  .btn-gradient {
    font-size: 14px;
  }
}
/* Phone */
@media (max-width: 568px) {
  .button-group {
    flex-direction: column;
    gap: 8px;
  }
  .btn-outline,
  .btn-gradient {
    width: 100%;
    font-size: 14px;
  }
}

/* ============messenger============ */
  .chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

.messenger-icon,
.close-btnc {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease;
  position: absolute;
  bottom: 0;
  right: 0;
}

.messenger-icon:hover,
.close-btnc:hover {
  transform: scale(1.08);
}

.close-btnc {
  display: none; /* បិទដើម */
  /* background: linear-gradient(135deg, #fff, #804000); */
  background-color: #fff;
  border: none;
}

.close-btnc img {
  width: 28px;
  height: 28px;
}

/* ប៊ូតុង chat */
.chat-buttons {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s ease;
}
.chat-buttons.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.chat-btn {
position: relative;
overflow: visible;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}


.chat-btn::after {
  content: attr(data-label);
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.chat-btn:hover::after {
  opacity: 1;
}
.chat-btn:hover {
  transform: scale(1.1);
}

/* individual colors */
.btn-messenger {
  background-color: #fff;
}

.btn-telegram {
  background-color: #fff;
}
.chat-widget i{
  font-size: 36px;
}
    
/* =========index villas show======== */
   .container-villas {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      padding: 40px 20px ;
      /* background-color: aqua; */
    }

    .text-content-villa {
      flex:1 1 300px;
      max-width: 500px;
      margin: 20px;
    }

    .text-content-villa p {
      font-size: 14px;
      color: #999;
      margin-bottom: 10px;
      text-transform: uppercase;
      letter-spacing: 2px; 
    }
    .text-content-villa h1 {
      font-size: 32px;
      color: #843c0c;
      margin-bottom: 30px;
      line-height: 1.3;
    }
    .text-content-villa button {
      background-color:#843c0c;
      color: #fff;
      border: none;
      padding: 12px 24px;
      cursor: pointer;
      /* transition: background 0.3s; */
    }

    .text-content-villa button:hover {
      background-color: #612d0a;
    }
    .card-container-villa {
      position: relative;
      width: 400px;
      margin: 10px;
    }
    .card-background-villa {
      position: absolute;
      top: 30px;
      left: 100px;
      width: 100%;
      height: 100%;
      background: url('../image/Room/DSC_0524.jpg') center/cover no-repeat;
      opacity: 0.5;
      filter: blur(1px);
      z-index: 0;
      border-radius: 10px;
    }

    .card-villa {
      background: #fff;
      border-radius: 10px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
      overflow: hidden;
      transition: transform 0.3s ease;
      position: relative;
      z-index: 1;
    }

    .card-villa:hover {
      transform: translateY(-10px);
    }
    .card-villa img {
      width: 100%;
      /* height: 220px; */
      object-fit: cover;
    }

    .card-info-villa {
      background-color:#843c0c;
      color: #fff;
      padding: 20px;
    }

    .card-info h2 {
      font-size: 22px;
      margin-bottom: 5px;
    }

    .card-info-villa p {
      font-size: 13px;
      opacity: 0.8;
      margin-bottom: 15px;
    }
    .card-info-villa .price-villa {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      font-size: 20px;
      font-weight: bold;
    }

    .card-info-villa .price-villa span {
      font-size: 13px;
      font-weight: normal;
    }

    a.btn-link {
      display: inline-block;
      background-color: #843c0c;
      color: #fff;
      padding: 12px 24px;
      text-decoration: none;
      transition: background-color 0.3s;
      }

    a.btn-link:hover {
      background-color: #612d0a;
      }
    a.btn-book-villa {
      display: block;
      width: 100%;
      text-align: center;
      margin-top: 15px;
      padding: 10px;
      background: transparent;
      border: 1px solid #fff;
      color: #fff;
      text-decoration: none;
      transition: all 0.3s ease;
    }
    a.btn-book-villa:hover {
      background-color: #fff;
      color: #843c0c;
    }
    /* Responsive */
    @media screen and (max-width: 768px) {
      .container-villas {
        flex-direction: column;
        padding: 10px 10px 40px 10px; 
      }
      .text-content-villa {
        text-align: center;
        margin-bottom: 20px;
      }
    .card-background-villa{
      left: 20px;
    }
    }
 /* ==============text style home========== */
     .hero-section-home{
      position: relative;
      width: 100%;
      height: 50vh;
      background: url('../image/Room/DSC_0664.jpg') no-repeat center center/cover;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
    }

    .overlay-home {
      position: absolute;
      top: 0; left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5); /* dark overlay */
      z-index: 1;
    }

    .slider-content-home {
      position: relative;
      z-index: 2;
      color: #fff;
      padding: 20px;
      max-width: 90%;
    }

    .quote {
      font-size: 50px;
      color: #ffcc99;
      margin-bottom: 10px;
    }
    .slide-text {
      display: none;
      font-size: 20px;
      animation: fadeIn 1s ease-in-out;
    }
    .slide-text.active {
      display: block;
    }
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(15px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .map-container-home {
      width: 100%;
      height: 350px;
    }

    .map-container-home iframe {
      width: 100%;
      height: 100%;
      border: none;
    }

    @media (max-width: 600px) {
      .quote {
        font-size: 36px;
      }

      .slide-text {
        font-size: 16px;
      }

      .map-container-home {
        height: 250px;
      }
    }