/* Housing Vacancies Plugin Styles */
/* Version: 1.0.0 */

/* Reset and Base Styles */
.housing-vacancies-grid,
.housing-vacancy-single {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 3-Column Card Layout Styles */
.housing-vacancies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.housing-vacancy-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.housing-vacancy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.key-features {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: #6c757d;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
}

.feature-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.view-details-btn {
    background: #ff6b35;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.view-details-btn:hover {
    background: #e55a2b;
    color: white;
}

/* Single Page Styles */
.housing-vacancy-single {
    min-height: 100vh;
}

.hero-section {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.4);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

.hero-title {
    color: white!important;
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.main-content {
    background: white;
    padding: 60px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 30px 0;
    color: #333;
}

.key-features-section {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.key-features-section .feature-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    min-width: 120px;
    text-align: center;
}

.key-features-section .feature-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    background: white;
    border: 2px solid #e9ecef;
}

.key-features-section .feature-icon svg {
    width: 24px;
    height: 24px;
}

.key-features-section .feature-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.location-info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid #ff6b35;
}

.location-info p {
    margin: 0 0 15px 0;
    font-size: 16px;
}

.location-text {
    color: #ff6b35;
    font-weight: 600;
}

.short-description {
    font-style: italic;
    color: #666;
    margin: 20px 0 !important;
}

.availability-status {
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.status-label {
    font-weight: 600;
    margin-right: 10px;
}

.status-value {
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.status-available {
    background: #d4edda;
    color: #155724;
}

.status-occupied {
    background: #f8d7da;
    color: #721c24;
}

.status-maintenance {
    background: #fff3cd;
    color: #856404;
}

.status-coming_soon {
    background: #cce5ff;
    color: #004085;
}

.enquire-btn {
    background: #ff6b35;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.enquire-btn:hover {
    background: #e55a2b;
    color: white;
}

.description-section {
    margin: 60px 0;
}

.description-content {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.description-content p {
    margin-bottom: 20px;
}

.gallery-section {
    margin: 60px 0;
}

.gallery-section h3 {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    color: #333;
}

/* Gallery Slideshow Styles */
.gallery-slideshow {
    max-width: 800px;
    margin: 0 auto;
}

.slideshow-container {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.slide {
    display: none;
    width: 100%;
    height: 500px;
    position: relative;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation arrows */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Thumbnail navigation */
.thumbnail-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.thumbnail {
    cursor: pointer;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: border-color 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
}

.thumbnail.active {
    border-color: #ff6b35;
    opacity: 1;
}

.thumbnail:hover {
    opacity: 1;
    border-color: #ff6b35;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Legacy gallery grid styles (kept for backward compatibility) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

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

.gallery-link {
    display: block;
    text-decoration: none;
}

.contact-section {
    margin: 60px 0;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
}

.contact-section h3 {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .housing-vacancies-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .key-features-section {
        justify-content: center;
    }
    
    .key-features-section .feature-item {
        min-width: 100px;
        padding: 15px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .gallery-slideshow {
        max-width: 100%;
    }
    
    .slide {
        height: 300px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 40px 0;
    }
    
    .hero-section {
        height: 50vh;
        min-height: 300px;
    }
    
    .hero-overlay {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .housing-vacancies-grid {
        padding: 10px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    .key-features {
        gap: 10px;
    }
    
    .feature-icon {
        width: 35px;
        height: 35px;
    }
    
    .feature-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .feature-value {
        font-size: 12px;
    }
    
    .view-details-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .location-info {
        padding: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .slide {
        height: 250px;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .thumbnail-container {
        gap: 5px;
    }
    
    .contact-section {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .hero-section {
        height: auto;
        min-height: auto;
    }
    
    .hero-overlay {
        background: none;
        padding: 0;
    }
    
    .hero-title {
        color: #333;
        text-shadow: none;
    }
    
    .view-details-btn,
    .enquire-btn {
        background: #333 !important;
        color: white !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .housing-vacancy-card,
    .card-image img,
    .gallery-item img,
    .view-details-btn,
    .enquire-btn {
        transition: none;
    }
    
    .housing-vacancy-card:hover {
        transform: none;
    }
    
    .housing-vacancy-card:hover .card-image img,
    .gallery-item:hover img {
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .housing-vacancy-card {
        border: 2px solid #000;
    }
    
    .feature-icon {
        border: 2px solid #000;
    }
    
    .view-details-btn,
    .enquire-btn {
        border: 2px solid #000;
    }
}
