/* Rental Page Specific Styles */

:root {
    --rental-primary: #1083b9;
    --rental-secondary: #0f172a;
    --rental-accent: #0a6a94;
    /* Red/Pink for Price and Icons as per reference */
    --rental-light: #f9fafb;
    --rental-text: #374151;
    --rental-text-light: #6b7280;
    --rental-white: #ffffff;
    --rental-tag-yellow: #fbbf24;
    --rental-tag-red: #0240e9;
}

body {
    background-color: #f3f4f6;
    /* Light gray background to make white cards pop */
}

/* Header Adjustments for Rental Page if needed */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Rental Hero Section */
.rental-hero {
    position: relative;
    height: 50vh;
    min-height: 350px;
    background: url('https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--rental-white);
    margin-bottom: 2rem;
}

.rental-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2038afc2 0%, #03afffc7 100%);
}

.rental-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    animation: fadeInDown 1s ease-out;
}

.rental-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.rental-hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Controls Section (Sort/Filter) */
.controls-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--rental-secondary);
}

.section-title span {
    color: var(--rental-accent);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.filter-controls {
    display: flex;
    align-items: center;
}

.sort-dropdown,
.price-filter {
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: var(--rental-text);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: width 0.3s;
}

.sort-dropdown:hover,
.price-filter:hover {
    border-color: var(--rental-primary);
}


/* Listings Section */
.listings-section {
    padding: 0 0 5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Grid Layout */
.listings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 1024px) {
    .listings-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 640px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .rental-hero h1 {
        font-size: 2.5rem;
    }
}

@media (min-width: 1025px) {
    .listings-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .rental-hero {
        height: 240px;
        min-height: 200px;
    }
    .rental-hero h1 {
        font-size: 31px;
        line-height: 34px;
    }
    .rental-hero p {
    font-size: 14px;
    line-height: 16px;
    }
    .card-image {
        height: 150px;
    }

    .card-content {
        padding: 0.75rem;
    }

    .card-price {
        font-size: 1.1rem;
    }

    .card-title {
        font-size: 10px;
    }

    .badge {
        padding: 4px 10px;
        font-size: 0.65rem;
    }

    .card-heart {
        width: 28px;
        height: 28px;
        top: 10px;
        right: 10px;
    }
}

/* Property Card - Reference Style */
.rental-card {
    background: var(--rental-white);
    border-radius: 20px;
    /* More rounded */
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.rental-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.1);
}

.card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.rental-card:hover .card-image img {
    transform: scale(1.05);
}

/* Badges */
.card-tags {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
}

.badge {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    letter-spacing: 0.5px;
}

.badge.featured,
.badge.premium {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 12;
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #1f2937;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    box-shadow: 0 6px 14px rgba(245, 158, 11, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.75);
}

.badge.rent,
.badge.new {
    background-color: var(--rental-tag-red);
}

.badge.district {
    background-color: var(--rental-primary);
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 10;
}

/* Heart Icon */
.card-heart {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card-heart:hover {
    color: var(--rental-accent);
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--rental-accent);
    /* Pink/Red color */
    display: flex;
    align-items: baseline;
}

.card-price span {
    font-size: 0.9rem;
    color: #9ca3af;
    font-weight: 500;
    margin-left: 4px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rental-secondary);
    line-height: 1.3;
}

.card-location {
    display: flex;
    align-items: center;
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-location i {
    margin-right: 6px;
    font-size: 0.8rem;
}

.card-features {
    display: none;
    gap: 15px;
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 500;
}

.feature {
    display: flex;
    align-items: center;
    gap: 6px;
}

.feature i {
    color: var(--rental-accent);
}


/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
    gap: 0.5rem;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--rental-text);
    transition: all 0.2s;
}

.page-btn:hover {
    border-color: var(--rental-primary);
    color: var(--rental-primary);
}

.page-btn.active {
    background: var(--rental-primary);
    color: white;
    border-color: var(--rental-primary);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}