/* HostessAdvisor Carousel & Card Styles */

/* Featured Section */
.featured-section {
    background: linear-gradient(135deg, rgba(139, 95, 191, 0.05), rgba(79, 195, 215, 0.05));
    border-radius: var(--radius-2xl);
    padding: 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.featured-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/pattern-subtle.png') repeat;
    opacity: 0.03;
    z-index: 0;
}

.featured-section > * {
    position: relative;
    z-index: 1;
}

/* Hostess Cards */
.hostess-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    cursor: pointer;
    margin-bottom: 1.5rem;
    position: relative;
}

.hostess-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 1;
    pointer-events: none;
}

.hostess-card:hover::before {
    opacity: 0.05;
}

.hostess-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.featured-card {
    height: 100%;
    min-height: 450px;
}

/* Card Images with L-Shape Layout */
.card-images {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.main-image {
    position: relative;
    width: 70%;
    height: 100%;
    float: left;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.hostess-card:hover .main-image img {
    transform: scale(1.1);
}

/* VIP Badge */
.vip-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--vip-gold);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: var(--shadow-md);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: var(--shadow-md);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    }
}

/* L-Shape Thumbnail Grid */
.thumbnail-grid {
    width: 30%;
    height: 100%;
    float: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
}

.thumbnail-grid .thumb {
    overflow: hidden;
    position: relative;
    background: var(--bg-secondary);
}

.thumbnail-grid .thumb:nth-child(1) {
    height: 60%;
}

.thumbnail-grid .thumb:nth-child(2),
.thumbnail-grid .thumb:nth-child(3) {
    height: 20%;
}

.thumbnail-grid .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-normal);
    filter: brightness(0.9);
}

.thumbnail-grid .thumb:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

/* More Images Overlay */
.thumbnail-grid .thumb:last-child {
    position: relative;
}

.thumbnail-grid .thumb:last-child::after {
    content: '+3 más';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.hostess-card:hover .thumbnail-grid .thumb:last-child::after {
    opacity: 1;
}

/* Card Content */
.card-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.hostess-name {
    color: var(--primary-purple);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.location {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.location::before {
    content: '📍';
    font-size: 0.8rem;
}

/* Rating System */
.rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.star {
    color: #ddd;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

.star.filled {
    color: #ffd700;
    filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.5));
}

.review-count {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-left: 0.5rem;
    white-space: nowrap;
}

.last-review {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

.price {
    color: var(--primary-purple);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Contact Buttons */
.contact-buttons {
    display: flex;
    gap: 0.75rem;
}

.contact-buttons-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.contact-buttons .btn,
.contact-buttons-vertical .btn {
    flex: 1;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.contact-buttons .btn::before,
.contact-buttons-vertical .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateY(-50%);
    transition: left var(--transition-fast);
}

.contact-buttons .btn:hover::before,
.contact-buttons-vertical .btn:hover::before {
    left: 100%;
}

.btn-whatsapp {
    background: var(--whatsapp-green);
    color: var(--text-white);
    border: none;
}

.btn-whatsapp:hover {
    background: #1AB850;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-call {
    background: var(--call-red);
    color: var(--text-white);
    border: none;
}

.btn-call:hover {
    background: #B91C1C;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.contact-buttons .btn:disabled,
.contact-buttons-vertical .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.contact-buttons .btn:disabled:hover,
.contact-buttons-vertical .btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Listing Cards (Non-Carousel) */
.listing-card {
    margin-bottom: 1.5rem;
    min-height: 200px;
}

.listing-card .card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.listing-card .hostess-name {
    font-size: 1.2rem;
}

.listing-card .main-image {
    width: 100%;
}

.listing-card .thumbnail-grid {
    display: none;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--primary-purple);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    border: 3px solid var(--bg-primary);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--primary-cyan);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
    background-size: 100%, 100%;
}

.carousel-indicators {
    bottom: -40px;
    margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-purple);
    border: 2px solid var(--bg-primary);
    opacity: 0.5;
    transition: all var(--transition-normal);
}

.carousel-indicators .active {
    opacity: 1;
    transform: scale(1.2);
    background-color: var(--primary-cyan);
}

/* Status Indicators */
.availability-status {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 2;
}

.availability-status .badge {
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.availability-status .bg-success {
    background: var(--success-green) !important;
    animation: pulse 2s infinite;
}

.availability-status .bg-warning {
    background: var(--warning-yellow) !important;
    color: var(--text-primary) !important;
}

.availability-status .bg-secondary {
    background: var(--text-light) !important;
}

/* Special Effects */
.card-shimmer {
    position: relative;
    overflow: hidden;
}

.card-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 1s;
}

.card-shimmer:hover::after {
    left: 100%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .featured-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .card-images {
        height: 250px;
    }
    
    .thumbnail-grid {
        display: none;
    }
    
    .main-image {
        width: 100%;
    }
    
    .contact-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
        border-width: 2px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
    
    .featured-card {
        min-height: 400px;
    }
    
    .hostess-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .card-content {
        padding: 1rem;
    }
    
    .rating {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .review-count {
        margin-left: 0;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    
    .featured-card {
        min-height: 350px;
    }
    
    .card-images {
        height: 200px;
    }
}

/* Loading States */
.hostess-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.hostess-card.loading .card-images::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0) 100%);
    animation: shimmer 1.5s infinite;
    z-index: 2;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Favorite Button (Future Feature) */
.favorite-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all var(--transition-normal);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-btn:hover,
.favorite-btn.active {
    color: var(--error-red);
    background: var(--bg-primary);
    transform: scale(1.1);
}

/* Verified Badge */
.verified-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--success-green);
    color: var(--text-white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    z-index: 2;
}

/* Premium Card Styling */
.hostess-card.premium {
    border: 2px solid var(--primary-purple);
    background: linear-gradient(135deg, rgba(139, 95, 191, 0.02), rgba(79, 195, 215, 0.02));
}

.hostess-card.premium .card-content {
    background: linear-gradient(to bottom, transparent, rgba(139, 95, 191, 0.05));
}