/*
Theme Name: Artee360
Theme URI: https://artee.sa
Description: A premium virtual tour showcase platform for Riyadh's leading 360° capture service.
Author: Faisal
Author URI: https://artee.sa
Version: 3.0.2
Text Domain: artee360
License: GNU General Public License v2 or later
Link: http://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --bg-primary: #121212;
    --bg-secondary: #1a1a1a;
    --bg-elevated: #1f1f1f;
    --surface: #181818;
    --surface-hover: #222222;

    --accent-primary: #6e66f8;
    --accent-hover: #8078ff;
    --accent-glow: rgba(110, 102, 248, 0.3);

    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #a0a0a0;
    --text-dim: #707070;

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.15);

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 24px var(--accent-glow);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 80px;
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Tajawal', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5em;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 10vw, 5rem);
    color: var(--text-primary);
}

h2 {
    font-size: clamp(1.8rem, 6vw, 3rem);
    color: var(--text-primary);
}

h3 {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    color: var(--text-secondary);
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

/* Header */
.site-header {
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.site-title a {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text-primary) !important;
    transition: var(--transition);
}

.site-title a:hover {
    color: var(--accent-primary) !important;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

@media (max-width: 1024px) {
    .main-navigation {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: 0;
        background: var(--bg-primary);
        overflow: hidden;
        transition: height 0.4s ease;
        z-index: 1000;
        border-top: 1px solid var(--border-subtle);
    }

    .main-navigation.is-active {
        height: calc(100vh - var(--header-height));
    }

    .main-navigation ul {
        flex-direction: column-reverse;
        padding: 40px 20px;
        gap: 24px;
        align-items: center;
        width: 100%;
    }

    .main-navigation li {
        text-align: center;
        width: 100%;
    }

    .main-navigation a {
        font-size: 1.2rem;
        font-weight: 600;
        display: block;
    }
}

.main-navigation a {
    color: var(--text-muted) !important;
    font-weight: 500;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.main-navigation a:hover {
    color: var(--text-primary) !important;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
    }
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    margin: 6px 0;
    transition: var(--transition);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 32px;
}

@media (max-width: 1024px) {
    .header-actions {
        display: none;
    }
}

/* Language Toggle — inherits .btn .btn-outline */
.lang-toggle-btn {
    gap: 10px;
}
.lang-flag-img {
    display: inline-block !important;
    width: 22px !important;
    height: 16px !important;
    flex-shrink: 0;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
    vertical-align: middle;
    margin: 0 !important;
    object-fit: cover;
}

/* Compact Button for Header */
.header-actions .btn {
    padding: 10px 24px;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* Mobile Menu Button */
.mobile-cta {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-cta {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-top: 32px;
        padding: 0 20px;
    }
}

.mobile-cta .btn {
    display: flex !important;
    width: 100%;
    padding: 14px 36px;
    font-size: 0.85rem;
    letter-spacing: 1.2px;
    justify-content: center;
}

/* Tour Search Box */
.tour-search-wrapper {
    position: relative;
}

.tour-search-input {
    width: 100%;
    padding: 12px 18px;
    font-size: 0.9rem;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    transition: var(--transition);
}

.tour-search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.tour-search-input::placeholder {
    color: var(--text-dim);
}

/* Tour Filters Section */
.tour-filters-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

/* Category Tabs */
.tour-category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.tour-filter-tab {
    padding: 8px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.tour-filter-tab:hover {
    background: var(--surface-hover);
    border-color: var(--border-medium);
    color: var(--text-primary);
}

.tour-filter-tab.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Loading Indicator */
.tour-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-subtle);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .tour-category-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tour-category-tabs::-webkit-scrollbar {
        display: none;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--accent-primary);
    background: var(--accent-primary);
    color: var(--bg-primary) !important;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text-primary) !important;
}

.btn-outline:hover {
    background: var(--surface-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary) !important;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-primary) 100%);
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
}

/* Grids */
.section {
    padding: 140px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }
}

.tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    width: 100%;
}

@media (max-width: 400px) {
    .tour-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1200px) {
    .tour-grid {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    }
}

/* Tour Cards - FULLY CLICKABLE */
.tour-card {
    display: block;
    border: 1px solid var(--border-subtle);
    background: var(--surface);
    transition: var(--transition);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.tour-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-6px);
}

.tour-thumbnail {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.tour-thumbnail img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-card:hover .tour-thumbnail img {
    transform: scale(1.1);
}

.tour-info {
    padding: 28px;
}

.tour-info h3 {
    color: var(--text-primary) !important;
}

/* Single Tour */
.single-tour-container {
    padding: 0;
}

.tour-viewer-outer {
    position: relative;
}

.tour-viewer-wrapper {
    height: 65vh;
    background: var(--bg-secondary);
    width: 100%;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .tour-viewer-wrapper {
        height: 55vh;
    }
}

@media (max-width: 480px) {
    .tour-viewer-wrapper {
        height: 50vh;
    }
}


.single-details-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

@media (max-width: 768px) {
    .single-details-section {
        padding: 50px 0;
    }
}

.spec-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-subtle);
}

/* Footer */
.site-footer {
    padding: 120px 0 60px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-medium);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
}

.footer-brand {
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-tagline {
    color: var(--text-muted);
    max-width: 400px;
    line-height: 1.8;
}

.footer-heading {
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.footer-list {
    list-style: none;
    padding: 0;
    color: var(--text-muted);
    line-height: 2;
}

.footer-list li {
    margin-bottom: 12px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

.social-links a {
    color: var(--text-muted) !important;
    transition: var(--transition);
}

.social-links .social-whatsapp {
    color: var(--accent-primary) !important;
    font-weight: 700;
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
    color: var(--text-dim);
    font-size: 0.8rem;
    letter-spacing: 1.5px;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .footer-tagline {
        max-width: 100%;
    }

    .social-links {
        align-items: center;
    }

    .footer-bottom {
        margin-top: 48px;
    }

    .footer-bottom p {
        text-align: center;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-big {
    margin-top: 120px;
}

@media (max-width: 768px) {
    .mt-big {
        margin-top: 80px;
    }
}

/* Pagination */
.pagination ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.pagination a,
.pagination span {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--text-secondary) !important;
    padding: 12px 20px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--surface);
    transition: var(--transition);
}

.pagination a:hover {
    border-color: var(--accent-primary);
    background: var(--surface-hover);
    color: var(--accent-primary) !important;
}

.pagination .current {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
    color: var(--bg-primary) !important;
}

/* Form Elements */
input,
select,
textarea {
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 3px var(--accent-glow);
}