/* Virtual Tours Hero */
.virtual-hero {
    position: relative;
    height: 300px;
    background: linear-gradient(rgba(30, 41, 59, 0.85), rgba(30, 41, 59, 0.9)), url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.virtual-hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.virtual-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.virtual-hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--rounded-md);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.cta-button:hover {
    background-color: #0f766e;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Tours Filter */
.tours-filter {
    background-color: var(--light);
    padding: 25px;
    border-radius: var(--rounded-md);
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-header h2 {
    color: var(--dark);
    font-size: 1.5rem;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.filter-group select, .filter-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--rounded-sm);
    background: white;
    transition: all 0.3s ease;
}

.filter-group select:focus, .filter-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filter-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.filter-reset {
    color: var(--deep-blue);
    text-decoration: none;
    font-size: 0.9rem;
}

/* Virtual Tours Grid */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.tour-card {
    background: white;
    border-radius: var(--rounded-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
}

.tour-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.tour-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

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

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

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

.tour-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px;
    color: white;
    z-index: 1;
}

.tour-overlay h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.tour-overlay .location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.tour-content {
    padding: 20px;
}

.tour-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--gray);
}

.tour-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tour-description {
    color: var(--dark);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: justify;
}

.tour-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tour-tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tour-tag:hover {
    background-color: var(--primary);
    color: white;
}

.tour-actions {
    display: flex;
    justify-content: space-between;
}

.tour-button {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: var(--light);
    color: var(--dark);
    text-decoration: none;
    border-radius: var(--rounded-sm);
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tour-button.primary {
    background: var(--primary);
    color: white;
    margin-right: 10px;
}

.tour-button:hover {
    background: var(--primary-light);
    color: white;
}

/* Featured Tour */
.featured-tour {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    border-radius: var(--rounded-md);
    overflow: hidden;
    display: flex;
    margin-bottom: 60px;
    box-shadow: var(--shadow-lg);
}

.featured-tour-image {
    flex: 1;
    min-height: 400px;
    background: url('https://images.unsplash.com/photo-1582266255765-fa5cf1a1d501?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
}

.featured-tour-content {
    flex: 1;
    padding: 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-badge {
    background: var(--secondary);
    color: white;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    align-self: flex-start;
}

.featured-tour-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.featured-tour-content p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.7;
}

.featured-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* How It Works */
.how-it-works {
    padding: 60px 0;
    background-color: var(--light);
    margin-bottom: 60px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    color: var(--dark);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.step-card {
    background: white;
    border-radius: var(--rounded-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary);
}

.step-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(37, 99, 235, 0.1);
    line-height: 1;
}

.step-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.step-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* Call to Action */
.virtual-cta {
    background: linear-gradient(135deg, var(--secondary) 0%, #0d9488 100%);
    border-radius: var(--rounded-md);
    padding: 60px;
    text-align: center;
    color: white;
    margin-bottom: 60px;
}

.virtual-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.virtual-cta p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.loading {
    position: relative;
    min-height: 200px;
}

.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1000;
}

.loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1001;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Add hover state for cards */
.company-card.hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

 /* No Results Card Styles */
.no-results-card {
    background-color: white;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 40px auto;
}

.no-results-icon {
    font-size: 4rem;
    color: var(--soft-aqua);
    margin-bottom: 20px;
}

.no-results-title {
    color: var(--deep-blue);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.no-results-message {
    color: var(--gray);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.no-results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Adjust directory grid when empty */
.tours-grid:empty {
    display: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .featured-tour {
        flex-direction: column;
    }
    
    .featured-tour-image {
        min-height: 300px;
    }
    
    .virtual-hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .tours-grid {
        grid-template-columns: 1fr;
    }
    
    .tour-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .tour-button.primary {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .virtual-hero {
        height: 400px;
    }
    
    .virtual-hero h1 {
        font-size: 1.8rem;
    }
    
    .featured-stats {
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .virtual-hero {
        height: 350px;
    }
    
    .filter-options {
        flex-direction: column;
    }
    
    .virtual-cta {
        padding: 40px 20px;
    }
    
    .virtual-cta h2 {
        font-size: 1.8rem;
    }
}