/* PGHut Listings Plugin Styles */
.pghut-search-form {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pghut-search-form .filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.pghut-search-form .filter-group {
    flex: 1;
    min-width: 200px;
}

.pghut-search-form .filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #475569;
}

.pghut-search-form .filter-group input,
.pghut-search-form .filter-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
    background: #f8fafc;
}

.pghut-search-form .price-range {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pghut-search-form .price-range input {
    flex: 1;
}

.pghut-search-form .price-range span {
    color: #64748b;
    font-weight: 600;
}

.pghut-search-form .dropdown-amenities {
    position: relative;
    display: inline-block;
    width: 100%;
}

.pghut-search-form .dropdown-toggle {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pghut-search-form .dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 8px;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #e2e8f0;
}

.pghut-search-form .amenity-option {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.pghut-search-form .amenity-option:hover {
    background: #f1f5f9;
}

.pghut-search-form .amenity-option input {
    margin-right: 10px;
}

.pghut-search-form .amenity-icon {
    margin-right: 8px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.pghut-search-form .selected-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.pghut-search-form .selected-amenity {
    background: #e0e7ff;
    color: #3730a3;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pghut-search-form .remove-amenity {
    cursor: pointer;
    font-weight: bold;
    margin-left: 5px;
}

.pghut-search-form .search-button {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    display: block;
    margin: 25px auto 10px;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.3);
}

.pghut-search-form .search-button:hover {
    background: #4338ca;
}

/* Single Line Search Form Styles */
.single-line-search .search-filters-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.single-line-search .filter-group.compact {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 150px;
}

.single-line-search .filter-icon {
    margin-right: 8px;
    font-size: 16px;
}

.single-line-search .filter-group.compact input,
.single-line-search .filter-group.compact select {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    width: 100%;
    outline: none;
}

.single-line-search .price-range-group {
    min-width: 250px;
}

.single-line-search .range-separator {
    margin: 0 8px;
    color: #64748b;
}

.single-line-search .amenities-dropdown {
    position: relative;
    cursor: pointer;
}

.single-line-search .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.single-line-search .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 5px;
}

.single-line-search .search-button-group {
    background: transparent;
    border: none;
    padding: 0;
}

.single-line-search .search-button {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.selected-amenities-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

/* Listings Grid */
.pghut-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

/* Listing Card */
.listing-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.listing-card.male {
    border-left: 5px solid #3b82f6;
    background: linear-gradient(to right, #f0f9ff, white);
}

.listing-card.female {
    border-left: 5px solid #ec4899;
    background: linear-gradient(to right, #fdf2f8, white);
}

.listing-card.unisex {
    border-left: 5px solid #8b5cf6;
    background: linear-gradient(to right, #f5f3ff, white);
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

.listing-image-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

/* Listing Card Slider Styles */
.listing-image-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.listing-image-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.listing-image-slider .slide.active {
    opacity: 1;
}

.listing-image-slider .listing-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Slider Dots for Listing Cards */
.listing-image-slider .slider-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 3;
}

.listing-image-slider .slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.listing-image-slider .slider-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Image Navigation Buttons */
.image-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    transform: translateY(-50%);
    z-index: 2;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #4f46e5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.nav-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.image-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 2;
}

/* Hover effects */
.listing-image-slider:hover .nav-btn {
    opacity: 1;
}

.listing-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.listing-badge {
    background: #10b981;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.gender-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-left: 10px;
}

.male-badge {
    background: #dbeafe;
    color: #1e40af;
}

.female-badge {
    background: #fce7f3;
    color: #be185d;
}

.unisex-badge {
    background: #ede9fe;
    color: #5b21b6;
}

.listing-price {
    font-size: 22px;
    font-weight: 700;
    color: #4f46e5;
    margin: 5px 0;
}

.deposit-info {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
}

.listing-title {
    font-size: 18px;
    font-weight: 600;
    margin: 5px 0;
    color: #1e293b;
}

.listing-location {
    color: #64748b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.listing-rating {
    color: #f59e0b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.sharing-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.sharing-option {
    background: #f1f5f9;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.listing-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.feature {
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #e2e8f0;
}

.listing-actions {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 15px;
}

.action-button {
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    transition: all 0.2s;
}

.contact-btn {
    background: #4f46e5;
    color: white;
    border: none;
}

.contact-btn:hover {
    background: #4338ca;
}

.view-btn {
    background: white;
    color: #4f46e5;
    border: 1px solid #cbd5e1;
}

.view-btn:hover {
    background: #f1f5f9;
}

.pghut-pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.pghut-pagination .page-numbers {
    padding: 8px 16px;
    margin: 0 5px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    text-decoration: none;
    color: #4f46e5;
}

.pghut-pagination .page-numbers.current {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

.pghut-pagination .page-numbers:hover {
    background: #f1f5f9;
}

/* Featured Image Slider on Single PG Page */
.featured-image-slider {
    position: relative;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.featured-image-slider .slider-main {
    position: relative;
    height: 400px;
    width: 100%;
}

.featured-image-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.featured-image-slider .slide.active {
    opacity: 1;
}

.featured-image-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider Controls for Featured Image */
.featured-image-slider .slider-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 3;
}

.featured-image-slider .slider-prev,
.featured-image-slider .slider-next {
    background: rgba(79, 70, 229, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.featured-image-slider .slider-prev:hover,
.featured-image-slider .slider-next:hover {
    background: #4f46e5;
    transform: scale(1.1);
}

.featured-image-slider .slider-counter {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

/* Dots for Featured Image Slider */
.slider-dots-main {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 3;
}

.slider-dots-main .slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dots-main .slider-dot.active {
    background: white;
    transform: scale(1.3);
}

.featured-image-slider:hover .slider-controls {
    opacity: 1;
}

/* PG Gallery Slider */
.pg-gallery-slider {
    position: relative;
    margin: 20px 0;
}

.pg-gallery-slider .slider-main {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
}

.pg-gallery-slider .slider-main .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.pg-gallery-slider .slider-main .slide.active {
    opacity: 1;
}

.pg-gallery-slider .slider-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg-gallery-slider .slider-thumbnails {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    overflow-x: auto;
    padding: 10px 0;
}

.pg-gallery-slider .slider-thumbnails .thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    flex-shrink: 0;
}

.pg-gallery-slider .slider-thumbnails .thumb.active {
    opacity: 1;
    border: 2px solid #4f46e5;
}

.pg-gallery-slider .slider-thumbnails .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg-gallery-slider .slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.pg-gallery-slider .slider-prev,
.pg-gallery-slider .slider-next {
    background: #4f46e5;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pg-gallery-slider .slider-counter {
    font-weight: 600;
    color: #374151;
}

/* Nearby Locations */
.pg-nearby-locations {
    margin: 30px 0;
}

.pg-near-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.pg-near-card {
    background: #f9fbff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pg-near-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.pg-near-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(11, 74, 219, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.pg-near-title {
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 16px;
}

.pg-near-address {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
}

.pg-near-dist {
    font-size: 14px;
    color: #2563eb;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pghut-search-form .filter-row {
        flex-direction: column;
    }
    
    .single-line-search .search-filters-row {
        flex-direction: column;
    }
    
    .single-line-search .filter-group.compact {
        width: 100%;
    }
    
    .single-line-search .price-range-group {
        min-width: auto;
    }
    
    .pghut-listings-grid {
        grid-template-columns: 1fr;
    }
    
    .pg-near-grid {
        grid-template-columns: 1fr;
    }
    
    .listing-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-button {
        width: 100%;
        justify-content: center;
    }
    
    .featured-image-slider .slider-main {
        height: 300px;
    }
    
    .featured-image-slider .slider-prev,
    .featured-image-slider .slider-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .slider-dots-main {
        bottom: 70px;
    }
    
    .pg-gallery-slider .slider-main {
        height: 300px;
    }
}
/* Ensure slider dots are visible and positioned correctly */
.listing-image-slider .slider-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 3;
}

.listing-image-slider .slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.listing-image-slider .slider-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Ensure navigation buttons are visible */
.listing-image-slider .nav-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #4f46e5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    opacity: 0;
    transform: translateY(-50%);
}

.listing-image-slider:hover .nav-btn {
    opacity: 1;
}

.listing-image-slider .nav-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Ensure image counter is positioned correctly */
.listing-image-slider .image-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 2;
}

/* Fix slide transitions */
.listing-image-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.listing-image-slider .slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Ensure listing image covers properly */
.listing-image-slider .listing-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Search Result Grid Slider Styles */
.listing-image-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.listing-image-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.listing-image-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.listing-image-slider .slide.active {
    opacity: 1;
    pointer-events: auto;
}

.listing-image-slider .listing-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Image Counter */
.listing-image-slider .image-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 2;
}

/* Navigation Buttons */
.listing-image-slider .image-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    transform: translateY(-50%);
    z-index: 2;
}

.listing-image-slider .nav-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #4f46e5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    opacity: 0;
    transform: translateY(-50%);
}

.listing-image-slider:hover .nav-btn {
    opacity: 1;
}

.listing-image-slider .nav-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Slider Dots */
.listing-image-slider .slider-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 3;
}

.listing-image-slider .slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.listing-image-slider .slider-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Hide navigation for single image */
.listing-image-slider:has(.slide:only-child) .image-nav,
.listing-image-slider:has(.slide:only-child) .slider-dots {
    display: none !important;
}
