
/* กำหนดฟอนต์ 'DBOzoneX' ให้กับทุก element ในหน้าเว็บ */
* {
  font-family: 'DBOzoneX', sans-serif;
}


#logo-link > #site-logo{
  /* display: none; */
}
#header  {
   /* background: rgba(26, 32, 44, 0.82) ; */
   background-color: #3f444eff ;
   padding-top: 0;
   padding-bottom: 0;
} 
#navmenu ul li a {
    font-family: 'DBOzoneX', sans-serif; /* ใช้ DBOzoneX */
    font-size: 20px; /* ใช้ DBOzoneX ปรับขนาด 20px ให้ใหญ่ขึ้นเพื่อให้ดูเท่ากับ Poppins ที่ 17px */
}
#navmenu > #navbar-ul > li:not(.language-switcher) > a:hover,
#navmenu > #navbar-ul > li:not(.language-switcher) > a:focus,
#navmenu > #navbar-ul > li:not(.language-switcher) > a:active {
   background-color: #a10d25 !important; 
   color: #f2f1f0 !important; 
   font-weight: bold; 
   transition: all 0.3s ease; 
}

/* ========= เฉพาะ <a> บนสุดของ .language-switcher ========= */
#navmenu > #navbar-ul > li.language-switcher > a{
  padding-right: 15px;
}
/* #navmenu > #navbar-ul > li.language-switcher > a:hover,
#navmenu > #navbar-ul > li.language-switcher > a:focus,
#navmenu > #navbar-ul > li.language-switcher > a:active {
   background-color: #a10d25 !important; 
   color: #f2f1f0 !important; 
   transition: all 0.3s ease;
} */

 #navmenu > #navbar-ul > li.language-switcher ul a:hover {
  background-color: transparent !important;
  color: inherit !important;
  font-weight: normal;
} 

/* ========= เมนูย่อยทั่วไป (เช่น อาคาร > ผังพื้น ฯลฯ) ========= */
 #navmenu .nav-sub-menu li > a:hover {
  background-color: #a10d25 !important;
  color: #f2f1f0 !important;
  font-weight: bold;
  transition: all 0.3s ease;
} 


/* Override background ของ footer */
#footer {
  background-color: #393d46ff ;
  /* background: rgba(26, 32, 44, 0.82) ; */
  width: 100% ;
  font-family: 'DBOzoneX', sans-serif; /* ใช้ DBOzoneX */
  font-size: 20px; 
}
#footer .footer-top{
  background-color: transparent;
  color: #f2f1f0 !important;
}
#footer .container-fluid{
  width: 100% ;
  max-width: 100%;
  margin: 0 auto;
  /* padding: 0 1rem; */
}
#footer .footer-top .container p{
  line-height: 1.0;
}
/* Grid ของลิงก์ */
#footer_links_list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  list-style: none;
  padding: 0;
}
#footer_links_list > li {
  line-height: 0.2;
  padding: 4px 0; /* สร้างช่องว่างด้านบนและล่างของแต่ละรายการ */
  white-space: wrap;

}
/* Column spacing */
.footer-about,
.footer-links,
.footer-newsletter {
  padding: 1rem;
}
#footer_phone,#footer_email{
  font-size : 22px;
  font-weight: normal;
}
@media (max-width: 768px) {
  #footer .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  #footer .container-fluid > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
     /* คอลัมน์เรียงแนวตั้ง */
  #footer .row {
    flex-direction: column !important;
    align-items: center;
  }

  /* แต่ละคอลัมน์เต็มหน้าจอ */
  .footer-about,
  .footer-links,
  .footer-newsletter {
    width: 100% !important;
    text-align: center !important;
    padding: 1rem 0.5rem;
  }

  /* ปรับ layout ของลิงก์ให้เป็น 1 คอลัมน์ */
  #footer_links_list {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  /* ปุ่มเต็มความกว้างในมือถือ */
  .footer-leasing a.btn-dark {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    display: block;
  }

  /* Social icons ให้จัดกลาง */
  .social-icons-footer {
    justify-content: center !important;
  }
}

/* เปลี่ยนสีข้อความใน footer */
#footer,
#footer p,
#footer a {
  color: #f2f1f0 !important;
  font-family: 'DBOzoneX', sans-serif; /* ใช้ DBOzoneX */
  font-size: 20px; /* ใช้ DBOzoneX ปรับขนาด 20px ให้ใหญ่ขึ้นเพื่อให้ดูเท่ากับ Poppins ที่ 17px */
}
 #footer_company_name{
  font-weight: 500;   /* หนา */
  font-size: 1.75rem;    /* ขนาดตัวอักษร ปรับได้ */
  
 }
/* ลิงก์ Hover */ 
#footer a:hover {
  color: #a10d25 !important;
  text-decoration: none !important;
}
#footer.footer-leasing ,  a.btn.btn-dark {
  background-color: #373738ff !important;
  padding-top: 10px !important;   /* ปรับขึ้นหรือลงได้ตามต้องการ */
  margin-top: 0 !important;
}
#footerleasing a.btn.btn-dark {
  background-color: #373738ff !important;
  padding-top: 10px !important;   /* ปรับขึ้นหรือลงได้ตามต้องการ */
  margin-top: 0 !important;
  border: transparent  !important;
}
                        
/* ปุ่มใน footer */ 
#footer .footer-leasing a.btn.btn-dark:hover,
#footer .footer-leasing a.btn.btn-dark:hover a {
  background-color: #a10d25 !important;
  color: #fefefe !important;
  border-color: #a10d25 !important;
}

/* Grid / Responsive fix สำหรับ mobile */
#footer.footer-links ul {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 6px !important;
}
#footer .copyright {
    height: 10px !important;
}
@media (max-width: 767.98px) {
  .footer-links ul {
    grid-template-columns: 1fr !important;
  }

  .footer-leasing {
    padding-top: 20px !important;; /* ปรับให้ตรงกับหัวข้อคอลัมน์อื่นใน desktop */
    text-align: center !important;
  }
}

.footer-leasing .btn-dark:hover {
  background-color: #a10d25 !important;
  color: #fefefe !important;
  border-color: #a10d25 !important;
}

.btn-red {
    background-color: var(--primary-red);
    color: white;
    border: 1px solid var(--primary-red);
    padding: 0.05rem 0.5rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.btn-red:hover {
    background-color: #a10d25;
    border-color: #a10d25;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
}

.btn-read-more {
    color: #a10d25;
    font-weight: 500;
    text-decoration: none;
}
.btn-read-more:hover {
    text-decoration: underline;
}

.btn-outline-danger {
    border-color: var(--primary-red);
    color: var(--primary-red);
    transition: all 0.3s ease;
}
.btn-outline-danger:hover {
    background-color: var(--primary-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.2);
}
/* Button style */
.btn-small {
  background-color: #f0504bff; /* Vibrant red-orange */
  color: #fff;
  padding: 15px 32px; /* Larger button for better clickability */
  font-size: 1.05rem; /* Clearer font size */
  font-weight: 600; /* Bolder text */
  border: none;
  border-radius: 50px; /* Pill-like shape */
  transition: all 0.3s ease-in-out; /* Smooth transition */
  text-decoration: none;
  display: inline-flex; /* Use flex for internal alignment */
  align-items: center; /* Vertically align content */
  justify-content: center; /* Horizontally align content */
  margin-top: 20px; /* More space above button */
  box-shadow: 0 6px 20px rgba(236, 141, 134, 0.4); /* Subtle shadow for button */
  cursor: pointer; /* Indicate it's clickable */
}

.btn-small::after {
  content: " →";
  font-weight: bold;
  margin-left: 8px; /* More space for the arrow */
  font-size: 1.2em; /* Larger arrow */
}

.btn-small:hover {
  background-color: #fd2f0bff; /* Slightly darker red-orange on hover */
  transform: translateY(-3px); /* More noticeable lift on hover */
  text-decoration: none;
  color: #fff;
  box-shadow: 0 8px 25px rgba(253, 20, 20, 0.6); /* More prominent shadow on hover */
}
a{
    text-decoration: none;
}

::selection { background-color: red; color: white; }


#preloaders {
  position: fixed;
  inset: 0;
  z-index: 9999;
  /* background:  rgba(207, 38, 38, 0.95); */
  background-color:  rgba(253, 20, 20, 1); 
  /* background: linear-gradient(135deg, rgba(207, 38, 38, 1),  rgba(199, 12, 12, 1)); */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-family: 'Sarabun', sans-serif;
  user-select: none;
  cursor: progress; /* เพื่อบอกผู้ใช้ว่ากำลังโหลด *//
  transition: opacity 0.6s ease;
}
#preloaders img{
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 15%; /* ทำให้เป็นวงกลม */
  /* box-shadow: 0 0 20px rgba(87, 2, 16, 1);  */
   box-shadow:
    0 0 20px rgba(87, 2, 16, 1),
    0 0 40px rgba(200, 16, 46, 0.6);
  border: 2px solid #d10c0cff; /* ขอบสีขาว */
}
.spinner {
  position: relative;
  perspective: 800px; /* ให้วงแหวนหมุนดูมีมิติมากขึ้น (optional) */
  width: 100px;   /* ขนาดเพิ่มจาก 350px */
  height: 100px;
  filter: drop-shadow(0 0 12px rgba(200, 16, 46, 0.8));
}

.spinner-ring {
  position: absolute;
  transform-style: preserve-3d; /* ให้วงแหวนหมุนดูมีมิติมากขึ้น (optional) */
  inset: 0;
  border: 10px solid #eee;       /* เพิ่มความหนา */
  border-top: 10px solid #c8102e;
  border-radius: 50%;
  animation: preloader-spin 1.2s linear infinite;
}

.spinner-logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-logo img {
  width: 150px;    /* จากเดิม 50px */
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px #c8102e88); /* เงาเพิ่มนิดหน่อย */
  animation: zoomInOut 1.5s ease-in-out infinite;
}

.loading-text {
  font-size: 1rem;
  color: #2c2c2c; /* เข้มขึ้น */
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Animations */
@keyframes preloader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes zoomInOut {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
/* รองรับ dark mode โดยอาจเปลี่ยนพื้นหลังและสีข้อความแบบอัตโนมัติ */
@media (prefers-color-scheme: dark) {
  #preloaders {
    background: linear-gradient(135deg, #800000ff, #4b0000ff);
  }
  .loading-text {
    color: #eee;
  }
  .spinner-ring {
    border: 14px solid #444;
    border-top: 14px solid #ff4444;
  }
}



  /* end Container Preloaders */
 
    /*data-sub-html การซ่อน caption ของ lightGallery */
    .lg-sub-html {
      display: none !important;
    }
    /* caption  */
    .gallery-item .caption{
      display: none;
    }


/* WebKit-based browsers: Chrome, Safari, Edge */
::-webkit-scrollbar {
  width: 17px;               /* ความกว้างของ scrollbar */
  
}

::-webkit-scrollbar-track {
  background: #fff0f0;       /* รางเลื่อนสีชมพูอ่อน */
  border-radius: 20px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #ff4d4d, #cc0000); /* แดงไล่เฉด */
  border-radius: 20px;
  border: 4px solid #fff0f0; /* ขอบ scrollbar มีช่องว่างสวย */
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #e60000, #990000);
  cursor: pointer;
}
