/* Kaz.Holiday - Rentals Module premium stylesheet */

:root {
    --primary-blue: HSL(211, 100%, 25%);
    --secondary-yellow: HSL(43, 100%, 50%);
    --success-green: HSL(142, 70%, 45%);
    --warning-orange: HSL(38, 92%, 50%);
    --danger-red: HSL(0, 84%, 60%);
    --light-bg: HSL(210, 20%, 98%);
    --card-shadow: 0 10px 30px -5px rgba(26, 58, 92, 0.08), 0 5px 15px -8px rgba(26, 58, 92, 0.04);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(26, 58, 92, 0.08);
}

/* Rentals Layout & Main Containers */
.rentals-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    font-family: 'Inter', sans-serif;
    color: HSL(210, 20%, 15%);
    background-color: var(--light-bg);
}

/* Catalog Grid & Filters Sidebar */
.rentals-search-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .rentals-search-layout {
        grid-template-columns: 1fr;
    }
}

/* Filter Card Glassmorphism */
.rentals-filters-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md, 16px);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 2rem;
    height: fit-content;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rentals-filters-card:hover {
    box-shadow: 0 15px 35px -5px rgba(26, 58, 92, 0.12);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid rgba(26, 58, 92, 0.12);
    border-radius: 8px;
    background: #fff;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    color: HSL(210, 20%, 15%);
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 82, 162, 0.1);
}

/* Listings Grid & Cards */
.rentals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.rental-card {
    background: #fff;
    border-radius: var(--radius-md, 16px);
    border: 1px solid rgba(26, 58, 92, 0.06);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.rental-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(26, 58, 92, 0.15);
}

.rental-card-image-wrapper {
    position: relative;
    padding-top: 66%; /* 3:2 Aspect Ratio */
    background: #eaeaea;
    overflow: hidden;
}

.rental-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.rental-card:hover .rental-card-image {
    transform: scale(1.05);
}

.rental-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-blue);
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full, 50px);
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 50, 100, 0.2);
}

.rental-card-verified-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary-yellow);
    color: HSL(210, 20%, 15%);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full, 50px);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.2);
}

.rental-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rental-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.rental-card-address {
    font-size: 0.85rem;
    color: HSL(210, 15%, 50%);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.rental-card-specs {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: HSL(210, 20%, 35%);
    border-top: 1px solid rgba(26, 58, 92, 0.08);
    border-bottom: 1px solid rgba(26, 58, 92, 0.08);
    padding: 0.75rem 0;
    margin-bottom: 1rem;
}

.rental-card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.rental-card-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.rental-card-price span {
    font-size: 0.8rem;
    font-weight: 500;
    color: HSL(210, 15%, 50%);
}

.rental-card-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: HSL(43, 100%, 45%);
}

/* Premium Apartment Show Page */
.rental-show-header {
    margin-bottom: 2rem;
}

.rental-gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 0.75rem;
    border-radius: var(--radius-md, 16px);
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: var(--card-shadow);
}

.rental-gallery-item {
    position: relative;
    overflow: hidden;
}

.rental-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.rental-gallery-item:first-child {
    grid-row: span 2;
}

.rental-gallery-item img:hover {
    transform: scale(1.03);
}

.rental-show-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
}

@media (max-width: 992px) {
    .rental-show-layout {
        grid-template-columns: 1fr;
    }
}

.rental-details-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--secondary-yellow);
    padding-left: 0.75rem;
}

.rental-description-text {
    line-height: 1.7;
    color: HSL(210, 20%, 30%);
    font-size: 1.05rem;
}

/* Amenities Icons Grid */
.rental-amenities-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.amenity-tag {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(26, 58, 92, 0.06);
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* Interactive Pricing / Booking Widget */
.rental-booking-widget {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md, 20px);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.widget-price-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid rgba(26, 58, 92, 0.08);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.widget-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.widget-button {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue), #003b75);
    color: #fff;
    border: none;
    border-radius: var(--radius-full, 50px);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 50, 100, 0.2);
    transition: all 0.3s ease;
}

.widget-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 50, 100, 0.3);
}

/* Host Panel Calendar & Grid styling */
.calendar-wrapper {
    background: #fff;
    border-radius: var(--radius-md, 16px);
    border: 1px solid rgba(26, 58, 92, 0.08);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    text-align: center;
}

.calendar-day-header {
    font-weight: 700;
    color: var(--primary-blue);
    padding: 0.5rem 0;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.calendar-day {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(26, 58, 92, 0.05);
    background: #fff;
    transition: all 0.2s ease;
    cursor: pointer;
}

.calendar-day:hover {
    background: rgba(0, 82, 162, 0.05);
    border-color: var(--primary-blue);
}

.calendar-day.booked {
    background: HSL(0, 84%, 97%);
    border-color: HSL(0, 84%, 90%);
    cursor: not-allowed;
}

.calendar-day.blocked {
    background: HSL(210, 10%, 93%);
    border-color: HSL(210, 10%, 85%);
    color: HSL(210, 10%, 60%);
}

.calendar-day-number {
    font-weight: 700;
    font-size: 1rem;
}

.calendar-day-price {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.calendar-day.custom-price .calendar-day-price {
    color: var(--warning-orange);
}

.whatsapp-success-card {
    background: #fff;
    border: 2px solid var(--success-green);
    border-radius: var(--radius-md, 16px);
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    text-align: center;
    max-width: 600px;
    margin: 3rem auto;
}

.whatsapp-success-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #25D366;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: var(--radius-full, 50px);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.whatsapp-success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(37, 211, 102, 0.35);
}
