*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem; /* 16px */
}

h1 { font-size: 2.75rem; } /* 44px */
h2 { font-size: 2.25rem; } /* 36px */
h3 { font-size: 1.75rem; } /* 28px */
h4 { font-size: 1.5rem; }  /* 24px */
h5 { font-size: 1.25rem; } /* 20px */
h6 { font-size: 1rem; }    /* 16px */
p, a, li, button, input, label {
  font-size: 1rem;
}

/* navbar */
nav {
    background: rgba(255, 255, 255, 0.201);
    box-shadow: 0 8px 32px 0 rgba(56, 56, 56, 0.37);
    backdrop-filter: blur( 20px );
    -webkit-backdrop-filter: blur( 20px );
}

.navbar.scrolled {
    background-color: white !important;
    transition: background-color 0.3s ease-in-out;
}

.navbar.scrolled .nav-link {
    color: #1E1E1E !important;
}

.navbar.scrolled .dropdown .btn {
    background-color: #1E1E1E !important;
    color: white !important;
}

.navbar .dropdown-menu {
    background-color: #1E1E1E;
}

.navbar .dropdown-menu .dropdown-item {
    color: white;
}

.navbar .dropdown-menu .dropdown-item:hover {
    background-color: rgba(255,255,255,0.1);
}

/* section - 1 */
.background {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.background img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.desc-bg{
    position: relative;
    z-index: 1;
    top: 170px;
    left: 0;
    background: rgba(255, 255, 255, 0.201);
    box-shadow: 0 8px 32px 0 rgba(56, 56, 56, 0.37);
    backdrop-filter: blur( 20px );
    -webkit-backdrop-filter: blur( 20px );
    border-radius: 10px;
    padding-right: 40px;
    padding-left: 40px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.custom-date-input {
  background: transparent;
  border: none;
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 0;
  width: 100%;
  outline: none;
  position: relative;
  z-index: 2;
}

.custom-placeholder {
  position: absolute;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  font-size: 1.1rem;
  pointer-events: none;
  z-index: 1;
  margin-top: -28px;
  transition: opacity 0.2s ease;
}

input[type="date"]:valid + .custom-placeholder {
  opacity: 0;
}


/* section - 2 */
.list-villa-listing img {
    width: 500px;
}

.desc-villa-listing {
    width: 50%;
}

.btn-refresh {
    background-color: #FFF !important;
    color: #1E1E1E;
}

.btn-list {
    background-color: #1E1E1E !important;
    color: #FFF !important;
}

.btn-detail {
    background-color: #FFF !important;
    color: #1E1E1E;
}

.line {
    padding-top: 1px;
    background-color: #1E1E1E;
}

.rating img {
  width: 20px;
  filter: brightness(0) saturate(100%) invert(78%) sepia(77%) saturate(1031%) hue-rotate(4deg) brightness(104%) contrast(101%);
  margin-top: -7px;
}

/* footer */
footer{
  background-color: #2F2F2F;
}

footer .list-info a, footer .list-contact-us a {
  display: block; 
  margin-bottom: 8px;
}

footer .fb img,
footer .ig img,
footer .yt img {
  width: 20px;
  margin-right: 6px;
  vertical-align: middle;
  filter: brightness(0) invert(1); /* Ubah ikon menjadi putih */
}

@media (max-width: 760px) {
  h1 { font-size: 1.75rem; } /* 28px */
  h2 { font-size: 1.5rem; }  /* 24px */
  h3 { font-size: 1.25rem; } /* 20px */
  h4 { font-size: 1.125rem; }/* 18px */
  h5 { font-size: 1rem; }    /* 16px */
  h6 { font-size: 0.95rem; } /* 15.2px */
  p, a, li, button, input, label {
    font-size: 0.9rem;
  }

  /* section - 2 */
  .list-villa-listing img {
      width: 100%;
  }

  .desc-villa-listing {
    width: 100%;
  }

  .desc-bg{
    top: 140px;
    width: 90%;
    padding: 30px;
  }

  .button-refresh{
    width: 100%;
  }

  .btn-refresh {
    width: 100%;
  }

}

@media (min-width: 760px) and (max-width: 1024px){
  h1 { font-size: 2.25rem; } /* 36px */
  h2 { font-size: 1.75rem; } /* 28px */
  h3 { font-size: 1.5rem; }  /* 24px */
  h4 { font-size: 1.25rem; } /* 20px */
  h5 { font-size: 1.1rem; }  /* 17.6px */
  h6 { font-size: 1rem; }    /* 16px */
  p, a, li, button, input, label {
    font-size: 0.95rem;
  }

  /* section - 1 */
  .background {
      height: 300px;
  }

  /* section - 2 */
  .list-villa-listing img {
      width: 320px;
  }

  .desc-villa-listing {
    width: 50%;
  }

  .desc-bg{
    top: 130px;
  }

}