/* Rental Page Styles */
.rental-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px;
}

#filters-header{
    font-family: "Albert Sans", sans-serif;
    color: #EAEEFB;
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 15px;
}

.rental-card {
    /* background: linear-gradient(to bottom, #ffffff, hsla(171, 29%, 69%, 0.349)); */
    /* border-radius: 8px; */
    background-color: #bcc5e11b;
    /* box-shadow: 0 1px 8px #0b3a2d; */
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    /* border: 5px solid #f4f4f4; */
    height: 490px
}

#rental-location{
    font-family: "Antic Didone", serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #014235;
}

.rental-label {
    font-weight: 600;
    color: #1b5e20;
}
/* Hover effect on card */
.rental-card:hover {
    position: relative;
}

.rental-card::after {
    /* content: ''; */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #0b3a2d1e;
    transition: width 0.3s ease;
}

.rental-card:hover::after {
    width: 100%;
}

/* Image carousel container */
.rental-image-carousel-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f4f4f4;
    -webkit-overflow-scrolling: touch; 
}

/* Style for carousel images */
.rental-image-carousel img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    position: absolute;
    transition: opacity 0.5s ease;
    opacity: 0;
    z-index: -1;
}

/* Show the first image by default */
.rental-image-carousel img:first-child {
    opacity: 1;
    z-index: 1;
    transition: opacity 0.5s ease;
}

/* Navigation buttons */
.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-prev:hover, .carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: #EAEEFB;
}


.rental-info {
    padding: 15px;
    font-family: 'Arial', sans-serif;
    font-style: normal;
    margin: 5px 0;
}





#rental-header  {
    text-align: center;
    margin-top: 20px;
    font-family: "Antic Didone", serif;
    font-size: 2rem;
    color:#0b3a2d;
    letter-spacing: .2rem;
    font-weight: 500;
}

.rental-info p {
    margin: 10px 0; 
    font-size: 1rem;
    color: #666;
}

.rental-descriptions p{
    color: #1b5e20
}

/* pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px;
}

/* Form Styles */


.rental_search form {
    padding: 10px 20px;
    border-radius: 10px;
    margin-top: 1rem;
    width: auto;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 18px;
}


.rental_search form label {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-green);
    font-family: "Antic Didone";
}


.rental_search form input, .rental_search form select {
    width: -webkit-fill-available;
    color: var(--input-focus);
    background-color: var(--light-bg);
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s ease;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: var(--font-sans);
    margin-top: 8px;
    font-size: 16px;
}

.rental_search form input:focus{
    border-color: #295943;
    outline: none;
}
.rental_search form select:focus{
    border-color: #295943;
    outline: none;
}


.rental_search form button {
    padding: 10px 15px;
    background-color: #2a7a3d;
    font-family: "Albert Sans", sans-serif;
    font-size: 1rem;
    color: #EAEEFB;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: .5rem;
    transition: background-color 0.3s ease;
}

.rental_search form button:hover {
    background-color: #1b5e20;
}

.rental_search .current {
    color: #0b3a2d;
}

#searchForm{
    display: none;
}

#rental_filter_button {
    background-color: #0b3a2d;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

#rental-filter-search-button{
    grid-column: 4;
}
.rental-image {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.5s ease;
    z-index: 0;
    display: none; 
}
.rental-image:first-child {
    opacity: 1;
    z-index: 10;
    display: block; 
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    font-size: 24px;
    color: black;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    z-index: 15; 
    transform: translateY(-50%);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.image-counter{
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: .9rem;
    background-color: #0b3a2d;
    padding: 5px;
    border-radius: 5px;
    z-index: 11;
}

#rental-application-button-container a{
    display: flex;
    width: 100%;
    text-decoration: none;
}

#rental-application-button{
    background-color: #0b3a2d;
    font-family: "Albert Sans", sans-serif;
    font-size: 1rem;
    color: #EAEEFB;
    border: none;
    padding: 10px 20px;
/*     border-radius: 5px; */
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    text-decoration: none;
    text-align: center;
    width: 100%;
}

@media (max-width: 1200px) {
    .rental-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .rental-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .rental-card {
        margin: 10px;
    }
}

@media (max-width: 600px) {
    .rental-container {
        grid-template-columns: 1fr;
    }

    .rental-card {
        margin: 0;
    }
    .rental-container{
        margin: 0;
    }

    .rental_search form {
      display: flex;
      flex-direction: column;
      width: 80%;
    }

}
