body{
    font-family: "Plus Jakarta Sans", sans-serif !important;
    position: absolute;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container{
    flex: 1;
}

/*navbar*/
.navbar{
    height: 5rem;
    background-color: #fff;
}

.fa-compass{
    color: #fe424d;
    font-size: 2rem;
    margin-left: 10px;
}

.navbar-nav .nav-link {
    padding: 0 15px;
    margin: 0;
    transition: color 0.3s ease, background-color 0.3s ease;
  }
  
  .navbar-nav .nav-link:hover {
    color: black;
    border-radius: 5px;
  }

.navbar-collapse {
    background-color: #fff; 
    transition: background-color 0.3s ease;
  }
  
  .navbar-collapse.show {
    background-color: #ffffff; /* Background when expanded */
  }
  
  .navbar-nav .nav-link {
    padding: 5px 15px; 
    margin: 0;  
  }
  

/*Footer*/

.f-info{
    height: 8rem;
    background-color: #ebebeb;
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    position: relative;
    bottom:0;
    width: 100%;
}

.f-info-links, .f-info-socials{
    width: 100%;
}

.f-info-socials i {
    margin-right: 1rem;
    margin-right: 1.2rem;
}

.f-info-links a{
    text-decoration: none;
    color: #222222;
}

.f-info-links a:hover{
    text-decoration: underline;
}

/*cards*/

.listing-card{
    border: none !important;
    margin-bottom: 2rem;
}

.card-img-top{
    border-radius: 1rem !important;
    width: 100% !important;
    object-fit: cover !important;
}

.card-body{
    padding: 0 !important;
}

.card-text p {
    font-weight: 400 !important;
}

.listing-link{
    text-decoration: none;
}

/*card effect*/

.card-img-overlay{
    opacity: 0;
    transition: opacity 0.3s, background-color 0.3s;
}

.card-img-overlay:hover{
    opacity: 0.2;
    background-color: white;
}

/*form styling*/

body{
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 100%;
}

.form-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 80%;
    margin: 40px auto;
}

.form-title {
    text-align: center;
    color: #000;
    margin-bottom: 1.5rem;
}

.form-label {
    font-size: 0.9rem;
    font-weight: bold;
    color: #555;
    display: block;
    margin-bottom: 0.5rem;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.9rem;
    background-color: #fff;
    color: #222;
    transition: border-color 0.3s ease;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #000;
}

.form-textarea {
    resize: none;
    height: 80px;
}

.form-button {
    width: 100%;
    padding: 0.8rem;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.form-button:hover {
    background-color: #444;
}

.valid-feedback,
.invalid-feedback {
    margin-top: 0; 
    padding: 0;    
}

.newformdiv{
    margin: 0;
    padding: 0;
    margin-bottom: 1rem;
}


/*show.ejs styling*/
.listing-container {
    width: 80%;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}


.listing-title {
    text-align: center;
    color: #000;
    margin-bottom: 1.5rem;
}

.listing-details {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.listing-item {
    font-size: 1rem;
    font-weight: normal;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ccc;
    color: #333;
}

.listing-item:last-child {
    border-bottom: none;
}

.edit-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 1rem;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    padding: 0.5rem 1rem;
    background-color: #f5f5f5;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.edit-link:hover {
    background-color: #ccc;
}

.delete-form {
    display: inline;
}

.delete-button {
    padding: 0.5rem 1rem;
    background-color: #ff4444;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.delete-button:hover {
    background-color: #cc0000;
}

.show-img-hotel {
    width: 100%; 
    max-width: 400px; 
    max-height: 300px;
    margin: 1rem auto; 
    display: block; 
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/*edit.ejs styling*/
.edit-form-container {
    max-width: 80%;
    margin: 2rem auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.edit-form-title {
    text-align: center;
    font-size: 1.8rem;
    color: #222;
    margin-bottom: 2rem;
    font-weight: bold;
}

.edit-form-input,
.edit-form-textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.9rem;
    background-color: #fff;
    color: #222;
    transition: border-color 0.3s ease;
}

.edit-form-input:focus,
.edit-form-textarea:focus {
    outline: none;
    border-color: #000;
}

.edit-form-textarea {
    resize: none;
    height: 100px;
}

.edit-form-button {
    width: 100%;
    padding: 0.8rem;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.edit-form-button:hover {
    background-color: #444;
}

.edit-form-group{
    margin-bottom: 1rem;
}

#map{
    height: 400px;
    width: auto;
}


@media (max-width: 600px) {
    #map{
        height: 400px;
        width: auto;
    }
}

footer{
    position: fixed;
    bottom: 0;
}