/*
 * Audelare Single Property Page Styles - v3.3 (Fixed Custom Slider)
 */

body.single-audelare-property .entry-content,
body.single-audelare-property #content {
    max-width: none !important; 
    width: 100% !important;
    padding: 0 !important; 
    margin: 0 !important;
}

#audelare-single-property-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    background-color: #fff;
}

.asp-content-wrapper {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.asp-gallery-column {
    width: 60%;
    padding-right: 40px;
    box-sizing: border-box;
}

/* =============================================
   CUSTOM GALLERY SLIDER STYLES - FIXED
   ============================================= */
.custom-gallery-container {
    width: 100%;
}

/* Main Gallery Container */
.main-gallery {
    position: relative;
    width: 100%;
    height: 500px;
    margin-bottom: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

/* Main Image Container */
.main-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual Slides */
.main-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.main-slide.active {
    opacity: 1;
    z-index: 2;
}

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

/* Navigation Arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Image Counter */
.image-counter {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10;
}

/* Thumbnail Gallery */
.thumbnail-gallery {
    position: relative;
    width: 100%;
    padding: 10px 0;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease;
    overflow: visible;
}

.thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.thumbnail:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.thumbnail.active {
    opacity: 1;
    border-color: #f5a623;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3);
}

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

/* Thumbnail Navigation Buttons */
.thumb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.thumb-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.thumb-prev {
    left: -20px;
}

.thumb-next {
    right: -20px;
}

/* =============================================
   EXISTING STYLES (UNCHANGED)
   ============================================= */
.asp-details-column { 
    width: 40%; 
    box-sizing: border-box; 
}

.details-sticky-content { 
    position: sticky; 
    top: 50px; 
}

.asp-header h1 { 
    font-family: serif; 
    font-size: 2.2rem; 
    margin: 0 0 5px 0; 
    line-height: 1.2; 
    font-weight: 600; 
}

.asp-header .city-state-zip { 
    font-size: 1.1rem; 
    color: #555; 
    margin-bottom: 20px; 
}

.asp-header .price { 
    font-size: 1.8rem; 
    font-weight: 600; 
    margin-bottom: 25px; 
}

.asp-specs-bar { 
    display: flex; 
    justify-content: space-between; 
    text-align: left; 
    padding: 20px 0; 
    margin-bottom: 25px; 
    border-top: 1px solid #e0e0e0; 
    border-bottom: 1px solid #e0e0e0; 
}

.spec-item .value { 
    display: block; 
    font-size: 1.5rem; 
    font-weight: 500; 
}

.spec-item .label { 
    font-size: 0.8rem; 
    color: #888; 
    text-transform: uppercase; 
}

.asp-actions { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 15px; 
}

.action-btn-secondary { 
    flex: 1; 
    height: 50px; 
    background-color: #fff; 
    color: #333; 
    border: 1px solid #ccc; 
    cursor: pointer; 
    font-weight: 600; 
    transition: all 0.2s ease; 
}

.action-btn-secondary:hover { 
    border-color: #000; 
}

.action-btn-primary { 
    display: block; 
    width: 100%; 
    height: 50px; 
    background-color: #f5a623; 
    color: #fff; 
    border: none; 
    cursor: pointer; 
    font-weight: 600; 
    font-size: 1rem; 
    text-align: center; 
    line-height: 50px; 
    text-decoration: none; 
    transition: background-color 0.2s ease; 
}

.action-btn-primary:hover { 
    background-color: #d48f1e; 
}

.asp-highlights { 
    margin-top: 30px; 
}

.asp-highlights h3 { 
    font-size: 1rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    border-bottom: 1px solid #e0e0e0; 
    padding-bottom: 10px; 
    margin-bottom: 15px; 
}

.highlights-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px; 
}

.highlight-item .label { 
    display: block; 
    font-size: 0.8rem; 
    color: #888; 
    text-transform: uppercase; 
}

.highlight-item .value { 
    font-weight: 500; 
}

.asp-full-width-section { 
    max-width: 1400px; 
    margin: 50px auto; 
    padding: 0 20px; 
}

.asp-full-width-section h3 { 
    font-size: 1.8rem; 
    font-family: serif; 
    margin-bottom: 20px; 
}

.asp-full-width-section p { 
    line-height: 1.8; 
    color: #555; 
}

.asp-agent-info { 
    margin-top: 30px; 
}

.asp-agent-info h3 { 
    font-size: 1rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    border-bottom: 1px solid #e0e0e0; 
    padding-bottom: 10px; 
    margin-bottom: 15px; 
}

.agent-details { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.agent-photo { 
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    object-fit: cover; 
}

.agent-contact p { 
    margin: 0; 
    line-height: 1.4; 
}

.agent-name { 
    font-weight: 600; 
    font-size: 1.1rem; 
}

.agent-phone, .agent-email { 
    color: #555; 
    font-size: 0.9rem; 
}

/* =============================================
   RESPONSIVE STYLES
   ============================================= */
@media (max-width: 1024px) {
    .asp-content-wrapper {
        flex-direction: column;
        padding: 20px 15px;
    }
    
    .asp-gallery-column,
    .asp-details-column {
        width: 100%;
        padding-right: 0;
    }
    
    .asp-gallery-column {
        margin-bottom: 30px;
    }
    
    .details-sticky-content {
        position: static;
    }
    
    .main-gallery {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .asp-content-wrapper {
        padding: 15px 10px;
    }
    
    .main-gallery {
        height: 300px;
        margin-bottom: 10px;
    }
    
    .thumbnail {
        width: 100px;
        height: 65px;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .thumb-nav {
        width: 35px;
        height: 35px;
    }
    
    .thumb-prev {
        left: -17px;
    }
    
    .thumb-next {
        right: -17px;
    }
    
    .asp-specs-bar {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .spec-item {
        flex: 1;
        min-width: calc(50% - 7.5px);
    }
    
    .asp-header h1 {
        font-size: 1.8rem;
    }
    
    .asp-header .price {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .main-gallery {
        height: 250px;
    }
    
    .thumbnail {
        width: 80px;
        height: 55px;
    }
    
    .thumbnail-gallery {
        padding: 5px 0;
    }
    
    .thumbnail-container {
        gap: 8px;
    }
    
    .gallery-nav {
        width: 35px;
        height: 35px;
    }
    
    .image-counter {
        bottom: 15px;
        left: 15px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .thumb-nav {
        width: 30px;
        height: 30px;
    }
    
    .thumb-prev {
        left: -15px;
    }
    
    .thumb-next {
        right: -15px;
    }
}

/* =============================================
   RENTAL PRICING SECTION (NEW)
   ============================================= */
.asp-rental-pricing {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.asp-rental-pricing h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 15px 0;
    color: #333;
}

.rental-prices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.rental-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #f5a623;
}

.rental-price-item .month {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.rental-price-item .price {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.year-round-price {
    padding: 12px 15px;
    background: #e8f5e9;
    border-radius: 6px;
    border-left: 3px solid #2ecc71;
    font-size: 1rem;
    color: #333;
}

.year-round-price strong {
    color: #2ecc71;
}


.asp-amenities {
    margin-top: 30px;
    margin-bottom: 30px;
}

.asp-amenities h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #333;
}

.amenities-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.amenity-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #495057;
    transition: all 0.3s ease;
    cursor: default;
}

.amenity-tag:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #adb5bd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.amenity-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.amenity-label {
    font-weight: 500;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .amenities-tags {
        gap: 8px;
    }
    
    .amenity-tag {
        padding: 7px 12px;
        font-size: 0.8rem;
    }
    
    .amenity-icon {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .amenities-tags {
        gap: 6px;
    }
    
    .amenity-tag {
        padding: 6px 10px;
        font-size: 0.75rem;
        border-radius: 15px;
    }
    
    .amenity-icon {
        font-size: 0.95rem;
    }
}

/* Multiple Agents Styling for Single Property Page */

.asp-agent-info .agents-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.asp-agent-info .agent-card {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.asp-agent-info .agent-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d0d0d0;
}

.asp-agent-info .agent-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.asp-agent-info .agent-photo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #999;
}

.asp-agent-info .agent-contact {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.asp-agent-info .agent-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.asp-agent-info .agent-title {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin: 2px 0;
}

.asp-agent-info .agent-license {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.asp-agent-info .agent-phone,
.asp-agent-info .agent-email {
    font-size: 14px;
    color: #444;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.asp-agent-info .agent-phone svg,
.asp-agent-info .agent-email svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.asp-agent-info .agent-phone a,
.asp-agent-info .agent-email a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.asp-agent-info .agent-phone a:hover,
.asp-agent-info .agent-email a:hover {
    color: #004499;
    text-decoration: underline;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .asp-agent-info .agent-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
    }
    
    .asp-agent-info .agent-photo,
    .asp-agent-info .agent-photo-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .asp-agent-info .agent-contact {
        align-items: center;
    }
    
    .asp-agent-info .agent-phone,
    .asp-agent-info .agent-email {
        justify-content: center;
    }
}

/* Single agent backward compatibility */
.asp-agent-info .agent-details {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.asp-agent-info .agent-details .agent-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.asp-agent-info .agent-details .agent-contact {
    flex: 1;
}

.asp-agent-info .agent-details .agent-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 5px 0;
}

.asp-agent-info .agent-details .agent-phone,
.asp-agent-info .agent-details .agent-email {
    font-size: 14px;
    color: #444;
    margin: 3px 0;
}