:root {
  --primary: #f37a21;
  --primary-text: #1e3d72;
  --secondary: #c2af90;
  --light: #faf6f4;
  --dark: #1b1b1b;
  --gray: #e3e0e0;
  --golden: #ceb997;
}

h2 {
  background: var(--primary-text);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
i {
  color: var(--primary);
  margin-right: 0.5rem;
}

.btn-primary {
  color: white;
  background-color: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover {
  color: white;
  background-color: var(--primary);
  border-color: var(--primary);
  filter: brightness(0.9);
}
.btn-primary:focus {
  color: white;
  background-color: var(--primary);
  border-color: var(--primary);
}
.btn-primary:active {
  color: white;
  background-color: var(--primary);
  border-color: var(--primary);
}
.text-primary {
  color: var(--primary) !important;
}
.bg-primary {
  background-color: var(--primary) !important;
}

.bg-gray {
  background-color: var(--gray) !important;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Poppins", sans-serif;
  background-color: var(--light) !important;
  color: var(--dark) !important;
  font-size: calc(1rem + 0.2vw);
}

@media (min-width: 1401px) {
  .container,
  .container-fluid,
  .container-xxl {
    max-width: 1920px !important;
  }
}
@media (min-width: 992px) {
  .container-fluid {
    padding: 4.5rem;
  }
}

@media (min-width: 768px) {
  section {
    padding: 1rem 2rem;
  }
}
.container-fluid {
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 600;
}

section {
  padding: 2rem 5rem;
  text-align: -webkit-auto;
}

.flex-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

#hero {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 0;
  background-color: var(--dark) !important;
}

.hero__image {
  width: 100%;
  height: 80vh;
  height: auto;
  overflow: hidden;
}
.hero__image img {
  width: 100%;
}

.hero__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: start;
  width: 90%;
  height: 80%;
  padding: 1rem;
}
.hero__highlight {
  font-weight: 100 !important;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.2rem;
}
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(2, 0, 36);
  background: rgba(0, 0, 0, 0.5);
}
.headerBox {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
}

.hero__offer {
  margin-top: 15px;
}
.hero__offer span {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--light);
}
.hero__subtitle {
  margin-bottom: 0.5rem;
}
.hero__meta {
  color: var(--light);
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: baseline;
  gap: 0.5rem;
}
.hero__highlight,
.hero__meta h6 {
  color: var(--light);
}
.hero__title {
  background: var(--primary);
  background-clip: text;
  -webkit-background-clip: text;
}

/* Desktop styles */
@media (min-width: 768px) {
  .hero__content {
    text-align: start;
  }

  .hero__form {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
  }
  .hero__image {
    position: relative;
    height: 80vh;
  }
  .hero__title {
    font-size: 3rem;
    margin-top: auto;
  }
  .hero__subtitle {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  .hero__price {
    font-size: 3rem;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .hero__content {
    position: static;
    transform: none;
    padding: 1rem;
  }

  .hero__form {
    margin-top: 1rem;
    position: center;
    width: 90vw;
  }
  .hero__image img {
    width: 100%;
    height: auto;
    display: block;
  }
  .hero__overlay {
    display: none;
  }

  section {
    padding: 2rem 1rem;
  }
}

/* Glassmorphism styling */
.bg-glass {
  background: rgba(0, 0, 0, 0.299);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 1rem;
  margin: 1rem 0;
}

.inner-item {
  border: 2px solid var(--golden);
  border-radius: 10px;
  padding: 1.5rem 0rem;
  text-align: center;
}

.inner-item i {
  font-size: 2rem;
  color: var(--golden);
}

.highlights-section {
  background-color: var(--gray);
}
.title-underline {
  width: 100px;
  height: 4px;
  background-color: var(--primary);
  margin-left: auto;
  margin-right: auto;
}
.highlights-list li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
}
.highlights-list i {
  margin-top: 0.2em;
}
.btn_primary {
  padding: 0.5rem 1rem;
  border: 2px solid var(--primary);
  background-color: transparent;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}
.btn_primary:hover {
  background-color: var(--primary);
  color: var(--light);
  border: 2px solid var(--primary);
}
.btn_primary:active {
  background-color: var(--primary);
  color: var(--light);
  border: 2px solid var(--primary);
}
.btn_primary .active {
  background-color: var(--primary);
}

.nav-btn-primary {
  color: var(--light);
  padding: 0.5rem 1rem;
  border: 2px solid var(--primary);
  background: var(--primary-text);
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  text-shadow: #1b1b1ba1 0px 0px 2px;
  transition: background-color 0.3s ease;
}
.nav-btn-primary:hover {
  color: var(--light);
}
.nav-btn-primary i {
  color: var(--light);
  margin: 0;
}

.navbar {
  background: var(--light);
  padding: 0rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  width: 94px;
  height: auto;
  overflow: hidden;
}

.navbar-brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.floor_item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  margin: 1rem;
  width: clamp(20rem, 30%, 30rem);
  border-radius: 10px;

  background-color: var(--gray);
}

/* .carousel-item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40%;
} */
.carousel-item img {
  width: 100%;
  border-radius: 10px;
}

.location-underline {
  width: 100px;
  height: 4px;
  background-color: var(--primary);
  margin-right: auto;
}

#location i {
  font-size: 1.5rem;
  margin-right: 0.5rem;
  color: var(--primary);
}
.map-container {
  height: 350px;
  overflow: hidden;
  border-radius: 10px;
}

#footer {
  background: rgb(32, 32, 32);
}

.over_head {
  width: 150px;
  height: 50px;
  overflow: hidden;
}

.over_head img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#overlay-section .desktop-icon {
  right: 0;
  bottom: 10%;
  left: 0;
  z-index: 1000;
  width: 120px;
}
.overlay-section i {
  color: var(--light);
}

.fixed-bottom {
  z-index: 900;
}

.offcanvas-navbar-custom {
  z-index: 1050 !important;
}

.offcanvas-body {
  background-color: var(--light);
}
.offcanvas-backdrop {
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
}

.offcanvas-navbar-custom .nav-link,
.desktop-nav .nav-link {
  color: var(--dark);
}

.offcanvas-navbar-custom .nav-link:hover,
.offcanvas-navbar-custom .nav-link:focus,
.desktop-nav .nav-link:hover,
.desktop-nav .nav-link:focus {
  color: var(--primary);
}

/* Ensure toggle button is always visible */
.navbar-toggler {
  z-index: 2000;
  border: none !important;

  /* Override Bootstrap hiding */
}
.navbar-toggler i {
  color: var(--dark);
  font-size: 1.5rem;
  margin: 0;
}
#offcanvasNavbar {
  visibility: visible;
}
.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-nav {
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column !important;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 1050;
}
.side-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.item img {
  width: 100%;
  height: 100%;
}

/* Style the modal to look like the image */

#siteVisitModal .modal-content {
  border-radius: 10px;
  border: none;
}
#siteVisitModal i {
  color: var(--primary-text);
}

.modal-form-image {
  width: 100%;
  height: 100%;
  padding: 2rem;
  overflow: hidden;
  border-radius: 10px;
}
.modal-form-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-form-content {
  padding: 2rem 1rem;
  position: relative;
  color: var(--dark);
}

/* Style the text elements */
.modal-form-content h3 {
  color: var(--dark);
}

/* Style Input Groups */
#siteVisitModal .input-group-text {
  background-color: #e9ecef;
  border: 1px solid #ced4da;
  border-right: none;
}

#siteVisitModal .input-group .form-control {
  border-left: none;
}
#siteVisitModal .form-control:focus {
  box-shadow: none;
  border-color: var(--primary-text);
  outline: none;
}

/* When a control inside an input-group is focused, make the input-group-text match */
#siteVisitModal .input-group:focus-within .input-group-text,
#siteVisitModal .input-group .form-control:focus + .input-group-text,
#siteVisitModal .input-group .form-control:focus ~ .input-group-text {
  border-color: var(--primary-text);
  box-shadow: none;
  outline: none;
}

#siteVisitModal button.btn-primary:focus,
#siteVisitModal button.btn-primary:active,
#siteVisitModal button.btn-primary:hover {
  background-color: var(--primary-text);
  border-color: var(--primary-text);
  box-shadow: 0 0 0 0.2rem rgba(30, 61, 114, 0.18);
  color: var(--light);
}

#siteVisitModal .form-check-input {
  border-color: var(--primary-text);
}
#siteVisitModal .form-check-input:focus {
  box-shadow: 0 0 0 0.15rem rgba(30, 61, 114, 0.12);
  border-color: var(--primary-text);
}
#siteVisitModal .form-check-input:checked {
  background-color: var(--primary-text);
  border-color: var(--primary-text);
}

.form-control:focus {
  box-shadow: none;
  border-color: var(--primary);
}

.custom-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 10;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.custom-close-btn:hover {
  opacity: 1;
}

@media (max-width: 991.98px) {
  .custom-close-btn {
    top: 10px;
    right: 10px;
  }
}

.table-header {
  background-color: var(--primary-text);
  color: var(--light);
  font-weight: bold;
}
.table-body {
  text-align: center;
  color: var(--dark);
}
.table-body tr:nth-child(even) {
  background-color: rgba(128, 128, 128, 0.276);
}

.table.table-borderless {
  border: 1px solid var(--gray);
}

.form-check-input {
  border: 2px solid var(--primary);
  padding: 0.6rem;
}

.form-check-label {
  font-size: 0.9rem;
}

.video-thumbnail {
  position: relative;
  max-width: 100%;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  display: inline-block;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.video-thumbnail:focus,
.video-thumbnail:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  outline: none;
}

.video-thumbnail .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  /* allow only button to be clickable */
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.22) 60%,
    rgba(0, 0, 0, 0.36) 100%
  );
}

.video-thumbnail .play-button {
  pointer-events: auto;
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  /* fa-3x equivalent */
  color: white;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  i {
    color: white;
  }
}

.video-thumbnail .play-button:focus {
  outline: 3px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

/* optional small caption under thumbnail */
.video-caption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #444;
}

/* Modal content tweaks so background looks clean */
.modal-content.bg-transparent {
  background: transparent !important;
}
