/**
 * Rental Gallery Styles
 * 
 * WP Rentals Plugin
 */

/* ==========================================================================
   Gallery Styles
   ========================================================================== */

/* Rental Gallery Wrapper */
.rental-gallery-wrapper {
    margin: 0 auto 2rem auto;
    max-width: 1290px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 80px;
}

/* Desktop/Tablet Layout */
.rental-gallery-desktop {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    margin-bottom: 2rem;
}

.rental-gallery-main {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.rental-gallery-main img {
    width: 100%;
    /* height: 500px; */
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rental-gallery-main img:hover {
    transform: scale(1.02);
}

.rental-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    position: relative;
}

.rental-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

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

.rental-grid-item:hover img {
    transform: scale(1.05);
}

.rental-more-images {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: bold;
    pointer-events: none;
}

/* Mobile Carousel - Hidden on Desktop */
.rental-gallery-mobile {
    display: none;
}

.swiper-button-next, .swiper-button-prev {
    color: #000 !important;
}

.swiper-pagination-bullet-active {
    background: #fff !important;
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */

.rental-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.rental-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #ccc;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 10px 20px;
    user-select: none;
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #ccc;
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
}

/* ==========================================================================
   Rental Content (Single Page with Sidebar)
   ========================================================================== */

/* Two Column Layout Wrapper */
.rental-content-wrapper {
    margin: 0 auto 2rem auto;
    max-width: 1290px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Rental Content Container (Main Column) */
.rental-content {
    /* No additional styles needed - inherits from grid */
}

/* Sidebar */
.rental-sidebar {
    position: sticky;
    top: 100px;
}

.rental-sidebar-inner {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
}

/* Property Header */
.rental-header {
    margin-bottom: 2rem;
}

.rental-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.rental-address {
    font-size: 1.25rem;
    color: #666;
    margin: 0;
}

/* Key Info Bar */
.rental-key-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.key-info-item {
    text-align: center;
}

.key-info-item .label {
    display: block;
    font-size: 0.875rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.key-info-item .value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.key-info-item.price .value {
    color: #477233;
}

/* Property Details Section */
.rental-details-section {
    margin-bottom: 3rem;
}

.rental-details-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.rental-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.detail-label {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.detail-value {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

/* Description Section */
.rental-description-section {
    margin-bottom: 3rem;
}

.rental-description-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.rental-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #444;
}

/* CTA Section */
.rental-cta {
    display: flex;
    gap: 1rem;
    margin: 3rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #477233;
    color: white;
}

.btn-primary:hover {
    background: #477233;
    transform: translateY(-2px);
    color: #fff;
}

.btn-secondary {
    background: white;
    color: #477233;
    border: 2px solid #477233;
}

.btn-secondary:hover {
    background: #477233;
    color: white;
    transform: translateY(-2px);
}

/* ==========================================================================
   Archive Page Styles
   ========================================================================== */

.rentals-archive-container {
    max-width: 1290px;
    margin: 0 auto;
    padding: 80px 1.5rem 2rem;
}

/* Archive Header */
.rentals-archive-header {
    margin-bottom: 3rem;
    text-align: center;
}

.rentals-archive-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.rentals-count {
    font-size: 1.125rem;
    color: #666;
}

/* Rentals Grid */
.rentals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Rental Card */
.rental-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rental-card:hover {
    /*transform: translateY(-4px);*/
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.rental-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Card Image */
.rental-card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.rental-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Price Badge */
.rental-price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #477233;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Card Content */
.rental-card-content {
    padding: 1.5rem;
}

.rental-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.rental-card-address {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Property Stats */
.rental-card-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.stat-item svg {
    color: #477233;
    flex-shrink: 0;
}

/* Pagination */
.rentals-pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.rentals-pagination .nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.rentals-pagination .page-numbers {
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.rentals-pagination .page-numbers:hover,
.rentals-pagination .page-numbers.current {
    background: #477233;
    color: white;
}

/* No Rentals Message */
.no-rentals {
    text-align: center;
    padding: 4rem 2rem;
}

.no-rentals h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.no-rentals p {
    font-size: 1.125rem;
    color: #666;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet Breakpoint */
@media (max-width: 1024px) {
    .rental-gallery-desktop {
        grid-template-columns: 1.5fr 1fr;
    }
    
    .rental-gallery-main img {
        height: 700px;
    }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
    .rental-gallery-desktop {
        display: none;
    }
    
    .rental-gallery-mobile {
        display: block;
    }
    
    .rental-gallery-wrapper {
        padding-top: 32px;
    }
    
    .rental-swiper {
        width: 100%;
        height: 400px;
        border-radius: 8px;
    }
    
    .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Stack sidebar below content on mobile */
    .rental-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .rental-sidebar {
        position: static;
        order: 2;
    }
    
    .rental-title {
        font-size: 1.75rem;
    }
    
    .rental-address {
        font-size: 1rem;
    }
    
    .rental-key-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .key-info-item .value {
        font-size: 1.25rem;
    }
    
    .rental-details-grid {
        grid-template-columns: 1fr;
    }
    
    .rental-cta {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        text-align: center;
        width: 100%;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    /* Archive Responsive */
    .rentals-archive-container {
        padding-top: 32px;
    }
    
    .rentals-archive-header h1 {
        font-size: 1.75rem;
    }
    
    .rentals-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .rental-card-stats {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .rental-swiper {
        height: 300px;
    }
    
    .rental-key-info {
        grid-template-columns: 1fr;
    }
    
    .rental-price-badge {
        font-size: 1rem;
        padding: 6px 12px;
    }
    
    .rental-card-title {
        font-size: 1.25rem;
    }
}

