/* MAIN WRAPPER */
.main-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    /*padding: 20px;*/
}

/* SEARCH FORM */
.apartment-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    background: #f5f5f5;
    padding: 15px;
    border-radius: 10px;
}

.apartment-search-form select,
.apartment-search-form input {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    min-width: 150px;
}

.apartment-search-form button {
    background: #333;
    color: #fff;
    border: none;
    padding: 9px 15px;
    border-radius: 6px;
    cursor: pointer;
}

.apartment-search-form button:hover {
    background: #000;
}

/* GRID */
.rental-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    column-gap: 0;   /* NO gap between cards */
    row-gap: 30px;   /* GAP between rows */
}

/* CARD */
.rental-card {
    background: #f5f5f5;
    border-radius: 22px;
    padding: 15px;
    text-align: center;
    margin: 0;
}

/* IMAGE RATIO FIX (350:262) */
.image-wrapper {
    width: 100%;
    aspect-ratio: 350 / 262;
    overflow: hidden;
    position: relative;
}

/* IMAGE */
.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0); /* transparent initially */
    transition: background 0.3s ease;
}

/* 🔥 HOVER ONLY ON IMAGE */
.image-wrapper:hover img {
    transform: scale(1.08);
}

.image-wrapper:hover .image-overlay {
    background: rgba(0, 0, 0, 0.7); /* dark transparent overlay */
}

.image-wrapper:hover {
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* TITLE */
.rental-card h3 {
    font-size: 15px;
    margin: 10px 0;
}

.rental-card h3 a {
    color: #1DA2D8;
    text-decoration: none;
    font-size: 17px;
}

/* BUTTONS */
.buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    gap: 6px;
    row-gap: 15px;
}

.rental-btn {
    font-size: 16px;
    padding: 7px 14px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    color: #fff;

    position: relative;
    top: 0;

    transition: all 0.2s ease;
}

/* hover like link */
.rental-btn:hover {
    text-decoration: none;
    color:#fff !important;
     top: 3px;
    box-shadow: 0 2px 0 transparent; 
   
}
/* BUTTON COLORS */
.airbnb { 
     background: #ff5a5f;
    box-shadow: 0 4px 0 #d94448; 
}
.booking {
     background: #5472d2;
     box-shadow: 0 4px 0 #3253bc; 
     }
.expedia {
     background: #f90; 
      box-shadow: 0 4px 0 #c77700;
    }
.vrbo {
     background: #8d6dc4;
     box-shadow: 0 4px 0 #6e48b1;
     }

/* RESPONSIVE */
@media (max-width: 992px) {
    .rental-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .rental-grid {
        grid-template-columns: 1fr;
    }

    .apartment-search-form {
        flex-direction: column;
        align-items: stretch;
    }
}

.no-results-box {
    background: #f8f9fb;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
}

/* text style */
.no-results-box p {
    margin: 0;
    font-size: 16px;
    color: #1DA2D8;
    font-weight: 500;
}

/* Center wrapper */
.loader-wrapper {
    width: 100%;
    padding: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Spinner */
.loader {
    width: 40px;
    height: 40px;
    border: 4px solid #eee;
    border-top: 4px solid #3b6bdc; /* primary color */
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.btn-search, .btn-reset
{
    background-color: #C39563 !important;
}