/* ========================================
   VIRTUAL TOUR PAGE - MATCHING THEME
   ======================================== */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gold: #d4af37;
    --secondary-gold: #ffd700;
    --dark-bg: #0a0a0a;
    --card-bg: rgba(26, 26, 46, 0.6);
    --text-primary: #e8d5b7;
    --text-secondary: rgba(232, 213, 183, 0.7);
    --border-color: rgba(212, 175, 55, 0.3);
}

body {
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1545569341-9eb8b30979d9?w=1600') center/cover;
    opacity: 0.1;
    filter: blur(3px);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hero-icon {
    font-size: 80px;
    color: var(--primary-gold);
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Search Section */
.search-section {
    padding: 50px 20px;
    background: rgba(26, 26, 46, 0.3);
}

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

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 8px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--primary-gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.search-icon {
    color: var(--primary-gold);
    font-size: 18px;
    margin: 0 15px 0 20px;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 16px;
    padding: 12px 0;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    color: var(--dark-bg);
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.search-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(212, 175, 55, 0.2);
    color: var(--primary-gold);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
}

/* Tours Section */
.tours-section {
    padding: 60px 20px;
    min-height: 60vh;
}

.tours-container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: 36px;
    color: var(--primary-gold);
    margin-bottom: 10px;
}

.results-count {
    color: var(--text-secondary);
    font-size: 16px;
}

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

/* Tour Card */
.tour-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    animation: fadeIn 0.6s ease;
}

.tour-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.3);
}

.tour-card-image-container {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

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

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

.tour-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    color: var(--dark-bg);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tour-card-content {
    padding: 25px;
}

.tour-card-title {
    font-size: 24px;
    color: var(--primary-gold);
    margin-bottom: 12px;
    font-weight: 600;
}

.tour-card-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
}

.tour-card-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tour Card Actions - FIXED LAYOUT */
.tour-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tour-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-color);
    color: var(--primary-gold);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.tour-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.tour-btn i {
    font-size: 18px;
}

.tour-btn.primary {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    color: var(--dark-bg);
    border: none;
    padding: 14px 20px;
    margin-bottom: 5px;
}

.tour-btn.primary:hover {
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.tour-btn.primary i {
    font-size: 20px;
}

/* Secondary buttons row */
.tour-secondary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 100px 20px;
}

.no-results-content i {
    font-size: 100px;
    color: rgba(212, 175, 55, 0.2);
    margin-bottom: 25px;
}

.no-results h3 {
    font-size: 28px;
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.no-results p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Virtual Tour Modal */
.vtour-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.vtour-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vtour-modal-content {
    position: relative;
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(212, 175, 55, 0.2);
    border: 2px solid var(--primary-gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--primary-gold);
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background: rgba(212, 175, 55, 0.4);
    transform: rotate(90deg);
}

.vtour-header {
    text-align: center;
    margin-bottom: 20px;
}

.vtour-title {
    font-size: 32px;
    color: var(--primary-gold);
    margin-bottom: 8px;
}

.vtour-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 16px;
}

/* Panorama Viewer */
.panorama-viewer {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid var(--border-color);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    background: var(--dark-bg);
}

/* Tour Controls */
.vtour-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--border-color);
    color: var(--primary-gold);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
}

.vtour-info {
    text-align: center;
    margin-top: 15px;
}

.vtour-info p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Footer */
.footer {
    background: rgba(10, 10, 10, 0.95);
    border-top: 2px solid var(--border-color);
    padding: 50px 20px 30px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--primary-gold);
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section h4 {
    color: var(--primary-gold);
    font-size: 16px;
    margin-bottom: 12px;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tours-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-icon {
        font-size: 60px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .tours-grid {
        grid-template-columns: 1fr;
    }
    
    .search-filters {
        gap: 8px;
    }
    
    .filter-btn {
        font-size: 12px;
        padding: 8px 15px;
    }
    
    .vtour-modal-content {
        width: 100%;
        height: 100vh;
        padding: 10px;
    }
    
    .vtour-title {
        font-size: 24px;
    }
    
    .vtour-controls {
        gap: 8px;
    }
    
    .control-btn {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .control-btn span {
        display: none;
    }
    
    .control-btn i {
        font-size: 18px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .tour-card-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .search-btn span {
        display: none;
    }
    
    .tour-secondary-actions {
        grid-template-columns: 1fr;
    }
}
