body {
    margin: 0;
    padding-top: 50px;
    font-family: "Comfortaa";
}

.background {
    height: 500px;
    background: url("//cribster.ahmadnurfais.my.id/assets/static/images/home-header-bg.jpg") no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    overflow: hidden;
    background-color: white;
    /* box-shadow: 1px 10px 62px 15px rgba(0, 0, 0, 0.42);
    -webkit-box-shadow: 1px 10px 62px 15px rgba(0, 0, 0, 0.42);
    -moz-box-shadow: 1px 10px 62px 15px rgba(0, 0, 0, 0.42); */
}

.navbar a {
    float: left;
    display: block;
    color: black;
    text-align: center;
    padding: 20px 15px 15px 15px;
    text-decoration: none;
    margin-left: 40px;
}

.navbar a:hover {
    color: rgb(132, 132, 132);
}

.navbar-right {
    float: right;
    padding-right: 2em;
}

#logo {
    font-size: 20px;
}

.slogan {
    font-size: 3rem;
    color: white;
    font-weight: 900;
    text-align: center;
    margin-bottom: 0;
}

#description {
    font-size: 1.5rem;
}

.search {
    position: relative;
    width: 400px;
    height: 50px;
    margin: 20px auto;
    display: flex;
}

.search input[type="text"] {
    width: 100%;
    padding: 10px;
    border-radius: 20px 0 0 20px;
    border: 1px solid white;
    font-size: 13px;
}

.search button {
    width: 15%;
    height: 50px;
    background-color: #e74c3c;
    border: none;
    border-radius: 0 20px 20px 0;
    color: white;
    cursor: pointer;
}

.container {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
}

.box {
    text-align: center;
    width: 20%;
}

.icon {
    color: #e74c3c;
    font-size: 50px;
}

.headline {
    font-size: 24px;
    font-weight: bold;
}

.subheadline {
    font-size: 16px;
}

.footer {
    background-color: #e74c3c;
    color: #ffffffac;
    padding: 30px 5px;
    text-align: center;
    font-size: 14px;
    line-height: 18px;
}

.footer p {
    margin: 0;
}

.footer-links {
    list-style: none;
    padding-left: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.footer-links a {
    color: #ffffffac;
    text-decoration: none;
}

.footer-links a:hover {
    color: #212529;
}

.housing-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: 60px;
    margin-bottom: 50px;
}

.housing-card {
    width: 300px;
    margin: 1%;
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin: 10px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    overflow: hidden;
}

.housing-card:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.housing-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.housing-details {
    padding: 15px;
    text-align: center;
}

.housing-details h2 {
    font-size: 24px;
    color: #333;
}

.housing-details p {
    font-size: 16px;
    color: #777;
}

.housing-details a {
    text-decoration: none;
    color: #333;
}

/* Login, Register, and Verification Page */
#login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
}

#login-container .login-container {
    width: 300px;
    padding: 16px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
}

#login-container .login-container .title {
    text-align: center;
    margin: -25px 0 40px 0;
    font-size: 30px;
}

#login-container .logo-container {
    display: flex;
    justify-content: center;
    margin-top: -25px;
}

#login-container .logo {
    width: 50vh;
    height: auto;
}

#login-container form {
    text-align: center;
}

#login-container form .tab {
    display: none;
}

#login-container form .tab-button {
    padding: 10px;
    cursor: pointer;
}

#login-container form .tab-button.active {
    background-color: #e74c3c;
    color: white;
}

#login-container .input-field,
#login-container textarea {
    width: 90%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

#login-container .submit-btn {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: none;
    color: white;
    background-color: #e74c3c;
    cursor: pointer;
    margin: 20px 0;
}

#login-container .submit-btn:hover {
    background-color: #e86e60;
}

#login-container a {
    color: black;
    font-size: 0.8rem;
}

/* Owner Boarding House Page */
#login-container .login-container.boarding-house {
    width: 75%;
}

#login-container .login-container.boarding-house .input-field,
#login-container .login-container.boarding-house textarea {
    width: 96%;
    font-size: 15px;
}

#login-container .login-container.boarding-house select.input-field {
    width: 98%;
}

/* #login-container .login-container.boarding-house input[type="file"].input-field {
    width: 98%;
} */

#login-container .form-buttons {
    display: flex;
    justify-content: space-between;
    column-gap: 10px;
}

#login-container .back-btn {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: none;
    color: white;
    background-color: #666;
    cursor: pointer;
    margin: 20px 0;
}

#login-container .back-btn:hover {
    background-color: #333;
}

#login-container .back-btn.add-facility {
    background-color: #2ecc71;
}

#login-container .back-btn.add-facility:hover {
    background-color: #6bd497;
}

#login-container .back-btn.remove-facility {
    background-color: #c0392b;
}

#login-container .back-btn.remove-facility:hover {
    background-color: #85190d;
}

#login-container .back-btn.change-facility {
    background-color: #868a8d;
}

#login-container .back-btn.change-facility:hover {
    background-color: #bdc3c7;
}

.or-facility {
    margin-top: 30px;
    font-weight: bold;
}

/* PROPERTY PAGE */

.gallery-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    height: 80vh;
    margin-left: 9%;
    padding: 10px;
    box-sizing: border-box;
    margin-top: 20px;
}

.container {
    display: flex;
    width: 100%;
    height: 100%;
}

.main-image,
.side-images img {
    margin: 5px;
    border-radius: 10px;
    position: relative;
}

.main-image {
    width: 60%;
    height: 100%;
}

.side-images div:first-child {
    margin-bottom: 10px;
}


.main-image img {
    border-radius: 10px;
}

.side-images {
    width: 40%;
    height: 98%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.side-images div {
    height: 50%;
    position: relative;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.show-all {
    position: absolute;
    margin-left: 15px;
    border-radius: 10px;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    text-align: center;
    width: 90%;
    text-decoration: none;
}

.left-panel {
    margin: 10px 10% 20px 10%;
}

h1 {
    font-size: 2rem;
}

p {
    font-size: 1rem;
}

#map {
    position: relative;
    width: 100%;
    height: 500px;
}

.card {
    display: flex;
    flex-direction: row;
    align-items: start;
    border: none;
    margin: 20px;
    padding: 20px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.card:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.room-image {
    width: 35%;
    height: auto;
    border-radius: 5px;
    margin-right: 20px;
}

.room-details {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
    width: 100%;
}

.room-type {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: bold;
}

.price-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40%;
}

.price {
    color: #e74c3c;
    font-weight: bolder;
    font-size: 24px;
}

.book-button {
    padding: 10px 20px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.book-button:hover {
    background-color: #c06c50;
}


.date-input {
    margin-bottom: 20px;
}

.date-input label {
    display: block;
    margin-bottom: 5px;
}

.date-input input[type="date"],
.date-input select {
    padding: 10px;
    border: none;
    border-radius: 5px;
    width: 100%;
    background-color: #e8e8e8;
}

.facility-list,
.room-info {
    margin-top: 20px;
}

.facility-list h3,
.room-info h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.facility-list ul,
.room-info p {
    margin: 0;
}

.room-info p {
    margin-bottom: 5px;
}

.review-card {
    display: flex;
    flex-direction: row;
    align-items: start;
    border: none;
    margin: 20px;
    padding: 20px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.review-card:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.review-details {
    width: 100%;
}

.review-message {
    margin-bottom: 10px;
    font-size: 18px;
}

.rating-recommendation-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rating {
    color: #e74c3c;
    font-weight: bolder;
    font-size: 24px;
}

.recommendation {
    font-size: 18px;
}

.user-details {
    margin-bottom: 10px;
}

.user-name {
    font-size: 16px;
    color: #333;
}

.add-review-button {
    text-align: center;
    margin-top: 20px;
}

.add-review-button .button {
    padding: 10px 20px;
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.add-review-button .button:hover {
    background-color: #c11704;
}

.fa {
    font-size: 24px;
    margin-right: 5px;
}

.amenities-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

.amenity {
    display: flex;
    align-items: center;
    border: 1px solid #dedede;
    padding: 10px;
    margin-right: 10px;
    border-radius: 5px;
}

.amenity i {
    margin-right: 5px;
}

.notification {
    color: white;
    display: flex;
    align-items: center;
    background-color: #e38a80bf;
    border-radius: 5px;
    padding: 10px;
    width: 45%;
}

.notification i {
    margin-right: 10px;
    color: #e74c3c;
}

.notification p {
    margin: 0;
}

@keyframes colorChange {
    0% {
        color: rgb(21, 139, 100);
    }

    50% {
        color: rgb(139, 21, 100);
    }

    100% {
        color: rgb(21, 139, 100);
    }
}

.near-with {
    animation: colorChange 2s infinite;
}

/* VIEW PHOTOS */
#view_photos {
    margin-top: -6rem;
}

#view_photos .back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease;
}

#view_photos .back-button:hover {
    background-color: #c06c50;
}

#view_photos .gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    margin-top: 60px;
    row-gap: 50px;
}

#view_photos .gallery img {
    max-width: 300px;
    margin: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

#view_photos .gallery .photo {
    position: relative;
    display: inline-block;
    margin: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

#view_photos .gallery .photo img {
    max-width: 300px;
    border-radius: 5px;
}

#view_photos .gallery .photo .photo-type {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 5px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

#view_photos .room-images {
    padding: 10px 0 50px 0;
    text-align: center;
}

/* BOOKING LIST */
#booking-list .booking-card {
    margin: 0 auto;
    max-width: 85%;
    display: flex;
    border: none;
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    justify-content: space-between;
}

#booking-list .booking-card:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

#booking-list .image-container {
    flex-basis: 35%;
    margin-right: 20px;
}

#booking-list .image-container img {
    width: 300px;
    height: auto;
    border-radius: 5px;
}

#booking-list .booking-details {
    flex-basis: 60%;
}

#booking-list .booking-details h2,
p {
    margin-bottom: 10px;
}

#booking-list .button {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#booking-list .cancel-button:hover {
    background-color: #c06c50;
}

#booking-list .review-button {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    text-decoration: none;
}

#booking-list .review-button:hover {
    background-color: #2980b9;
}

/* SEARCH PAGE */
#search .card {
    background-color: white;
    display: flex;
    width: 70%;
    height: 170px;
    margin: 20px auto;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

#search .card:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

#search .image img {
    width: 230px;
    height: 170px;
    object-fit: cover;
}

#search .details {
    margin: auto;
    padding: 20px;
}

#search .price {
    margin: auto;
    padding-right: 20px;
}

button {
    margin-top: auto;
    background-color: #e74c3c;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

#search .button:hover {
    background-color: #f6ae8c;
}

h1 {
    margin-top: 30px;
    margin-left: 60px;
}

#search .search {
    margin-left: 20px;
    margin-top: 10px;

}

#search .search input[type="text"] {
    width: 400px;
    padding: 10px;
    border-radius: 20px 0 0 20px;
    border: none;
    font-size: 13px;
    background-color: #f1f1ef;
}

#search .search-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #2c3e50;
}

#search .search-bar input[type="text"] {
    flex: 2;
    padding: 10px;
    margin-right: 20px;
    border: none;
    border-radius: 5px;
}

#search .date-input {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
}

#search .date-input label {
    margin-bottom: 5px;
    margin-right: 4px;
}

#search .date-input input[type="date"],
#search .date-input select {
    padding: 10px;
    border: none;
    border-radius: 5px;
    margin-right: 8px;
}

#search .search-bar label {
    margin-bottom: 5px;
    color: white;
}

#search .search-bar button {
    margin-top: 0;
}

#search .search-bar button:hover {
    background-color: #f6ae8c;
}