/* Listing Detail Page Styles */

.listing-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #e9ecef;
}

/* Centered Header */
.listing-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.listing-header h1 {
    font-size: 1.8rem;
    color: #333;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
}

/* Two Column Layout */
.listing-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Gallery Column */
.listing-gallery-column {
    display: flex;
    flex-direction: column;
    max-width: 500px;
}

.listing-gallery {
    position: sticky;
    top: 20px;
}

.gallery-main {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: white;
    max-height: 500px;
    min-height: 320px;
    width: 500px;
}

.gallery-main a {
    display: block;
    position: relative;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    min-height: 320px;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Thumbnail Scroll */
.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 8px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.gallery-thumbnails a {
    flex-shrink: 0;
    max-width: 100px;
    max-height: 130px;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-thumbnails a:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

/* No Images State */
.no-images {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 320px;
    max-height: 500px;
    width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.no-images img {
    max-width: 200px;
    width: 100%;
    height: auto;
    opacity: 0.7;
    margin-bottom: 20px;
    object-fit: contain;
}

.no-images p {
    color: #999;
    font-size: 1rem;
    margin: 0;
}

/* Info Column */
.listing-info-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Card Styles */
.listing-details-card,
.listing-services-card,
.listing-other-prices-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.listing-details-card h2,
.listing-services-card h2,
.listing-other-prices-card h2 {
    font-size: 0.91rem;
    color: #555;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 600;
    text-align: left;
}

/* Details List */
.details-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid #f5f5f5;
    flex-direction: row-reverse;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row dt {
    font-weight: 500;
    color: #666;
    font-size: 0.95rem;
    text-align: right;
}

.detail-row dd {
    font-weight: 600;
    color: #333;
    margin: 0;
    text-align: left;
}

.price-value {
    color: #F87171 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}

/* Services */
.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.service-badge {
    display: inline-block;
    padding: 3px 10px;
    color: #001a29;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    background-color: #eff6ff;
    cursor: pointer;
}

a.service-badge::before {
    content: '#';
    padding-right: 2px;
}

.service-badge.sex-type {
    background-color: #eff6ff;
}

.service-badge.sex-type:hover {
    background: #dbeafe;
}

.no-services {
    color: #999;
    font-style: italic;
    margin: 0;
}

/* Other Prices */
.price-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.price-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    min-width: 90px;
}

.price-badge:hover {
    border-color: #22c55e;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.15);
}

.price-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 500;
    white-space: nowrap;
}

.price-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
}

/* Full Width Sections */
.listing-description,
.listing-contact {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.listing-description h2,
.listing-contact h2 {
    font-size: 1.5rem;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 600;
}

.description-text {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
    white-space: pre-wrap;
}

/* Contact Section */
.contact-wrapper {
    text-align: center;
    padding: 20px;
}

.phone-icon {
    margin: 0 auto 15px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b9d 0%, #c94b7b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.phone-icon svg {
    color: white;
}

.contact-label {
    font-size: 1.1rem;
    color: #666;
    margin: 15px 0;
    font-weight: 500;
}

.show-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #ff6b9d 0%, #c94b7b 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.show-phone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.show-phone-btn:active {
    transform: translateY(0);
}

.show-phone-btn svg {
    width: 20px;
    height: 20px;
}

.phone-numbers {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.phone-link {
    display: inline-block;
    padding: 12px 24px;
    background: #f0f9ff;
    color: #0369a1;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid #bae6fd;
    transition: all 0.2s ease;
}

.phone-link:hover {
    background: #e0f2fe;
    border-color: #7dd3fc;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .listing-layout {
        grid-template-columns: 1fr;
    }
    
    .listing-gallery {
        position: static;
    }
}

@media (max-width: 768px) {
    .listing-detail {
        padding: 0;
        background: none;
    }
    
    .listing-header {
        margin-bottom: 10px;
        padding: 15px;
    }
    
    .listing-header h1 {
        font-size: 1.4rem;
    }
    
    .listing-details-card,
    .listing-services-card,
    .listing-other-prices-card,
    .listing-description,
    .listing-contact {
        padding: 20px;
    }
    
    .price-badges {
        justify-content: center;
    }
    
    .price-badge {
        flex: 1 1 calc(50% - 7.5px);
        min-width: 0;
    }
    
    .gallery-thumbnails a {
        max-width: 100px;
        max-height: 133px;
    }
    
    .detail-row {
        align-items: flex-start;
        gap: 5px;
    }
    
    .detail-row dd {
        text-align: left;
    }
    
    .gallery-main {
        width: 100%;
        max-width: 500px;
        max-height: 450px;
    }
    
    .gallery-main img {
        max-height: 450px;
    }
    
    .no-images {
        width: 100%;
        max-width: 500px;
        max-height: 450px;
    }
}

@media (max-width: 480px) {
    
    .gallery-thumbnails a {
        max-width: 80px;
        max-height: 107px;
    }
    
    .show-phone-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .phone-icon {
        width: 60px;
        height: 60px;
    }
    
    .phone-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .gallery-main {
        width: 100%;
        max-width: 100%;
        max-height: 380px;
    }
    
    .gallery-main img {
        max-height: 380px;
    }
    
    .no-images {
        width: 100%;
        max-width: 100%;
        max-height: 380px;
    }
}
