/* ========================================
   FONT FACES
======================================== */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    direction: rtl;
    background: #f5f7fa;
    color: #2c3e50;
    line-height: 1.6;
    font-weight: 400;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-weight: 800;
}

h2 {
    font-weight: 700;
}

h3 {
    font-weight: 600;
}

h4, h5, h6 {
    font-weight: 600;
}

p, span, div, a, li, td, th, input, textarea, select, button, label, small, strong, em {
    font-family: 'Vazirmatn', sans-serif;
}

/* Specific font weights for common elements */
.btn, button {
    font-weight: 500;
}

.logo, .brand {
    font-weight: 800;
}

.card-title, .tour-title, .dashboard-header h1 {
    font-weight: 700;
}

.nav-links a, .sidebar-menu a {
    font-weight: 500;
}

table th {
    font-weight: 600;
}

table td {
    font-weight: 400;
}

:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --dark-color: #34495e;
    --light-color: #ecf0f1;
    --border-radius: 12px;
    --box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.2);
}

.btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-success {
    background: var(--secondary-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9)), url('/assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s;
}

.search-box {
    max-width: 600px;
    margin: 2rem auto;
    animation: fadeInUp 1.4s;
}

.search-box input {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.filters {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 2rem 0;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-row select,
.filter-row input {
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tour-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.tour-image-container {
    position: relative;
    overflow: hidden;
}

.tour-image {
    width: 100%;
    margin-bottom: 15px;
    height: 240px;
    object-fit: cover;
    border-radius: 16px 16px 16px 16px;
}

/* نوار اطلاعات overlay در بالای تصویر */
.tour-overlay-info {
    position: absolute;
    top: 215px;
    left: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.overlay-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.overlay-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.overlay-icon.purple {
    color: #8B5CF6;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ستاره‌های امتیاز */
.tour-rating {
    position: absolute;
    top: 214px;
    left: 16px;
    right: 16px;
    text-align: center;
    margin-top: 8px;
}

.rating-stars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
}

.rating-stars svg {
    color: #FFD700;
    width: 18px;
    height: 18px;
}

.tour-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #EF4444;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.tour-content {
    padding: 20px;
    background: white;
}

.tour-title {
    font-size: 20px;
    justify-self: right;
    margin-bottom: 12px;
    color: #1F2937;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}

.tour-destination {
    color: #6B7280;
    justify-self: right;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.location-icon.red {
    color: #EF4444;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.tour-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
}

.tour-price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* .price-label حذف شد */

.tour-price.blue {
    font-size: 20px;
    color: #3B82F6;
    font-weight: 700;
    line-height: 1;
}

.price-currency {
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 2px;
}

.btn-explore.blue {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #3B82F6;
    text-decoration: underline;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    padding: 4px 0;
}

.btn-explore.blue:hover {
    color: #2563EB;
    transform: translateX(-2px);
}

.explore-arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn-explore.blue:hover .explore-arrow {
    transform: translateX(2px);
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
}

.auth-box {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 450px;
    width: 100%;
    animation: fadeIn 0.5s;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.dashboard {
    padding: 2rem 0;
}

.dashboard-header {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #7f8c8d;
}

.table-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid #ecf0f1;
}

table th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--dark-color);
}

table tr:hover {
    background: #f8f9fa;
}

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #7f8c8d;
}

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

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

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .navbar {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(102, 126, 234, 0.98);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1rem;
        transition: right 0.3s ease;
        z-index: 9999;
        align-items: flex-start;
        overflow-y: auto;
        backdrop-filter: blur(10px);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        width: 100%;
        padding: 0.8rem 1rem;
        border-radius: 8px;
        text-align: right;
    }
    
    .hamburger {
        display: flex !important;
        cursor: pointer;
        z-index: 10000;
        padding: 8px;
        background: rgba(255,255,255,0.1);
        border-radius: 6px;
        color: white;
        transition: all 0.3s ease;
    }
    
    .hamburger:hover {
        background: rgba(255,255,255,0.2);
    }
    
    .hamburger.active {
        background: rgba(255,255,255,0.3);
    }
    
    .hamburger svg {
        transition: transform 0.3s ease;
    }
    
    .hamburger.active svg {
        transform: rotate(90deg);
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .search-box {
        margin: 1.5rem auto;
    }
    
    .search-box input {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .filters {
        padding: 1rem;
    }
    
    .tours-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tour-card {
        margin: 0;
    }
    
    .tour-image {
        height: 200px;
    }
    
    .tour-card {
        max-width: 100%;
        margin: 0;
    }
    
    .tour-image {
        height: 200px;
    }
    
    .tour-overlay-info {
        top: 12px;
        left: 12px;
        right: 12px;
        padding: 10px 12px;
    }
    
    .overlay-info-item {
        font-size: 12px;
        gap: 4px;
    }
    
    .overlay-icon.purple {
        width: 14px;
        height: 14px;
    }
    
    .tour-rating {
        top: 70px;
        left: 12px;
        right: 12px;
    }
    
    .rating-stars svg {
        width: 16px;
        height: 16px;
    }
    
    .tour-content {
        padding: 16px;
    }
    
    .tour-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .tour-destination {
        font-size: 13px;
        margin-bottom: 16px;
    }
    
    .location-icon.red {
        width: 14px;
        height: 14px;
    }
    
    .tour-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .tour-price-section {
        text-align: center;
        align-items: center;
    }
    
    .tour-price.blue {
        font-size: 18px;
    }
    
    .btn-explore.blue {
        justify-content: center;
        padding: 8px;
        text-decoration: none;
        background: #F3F4F6;
        border-radius: 8px;
        border: 1px solid #E5E7EB;
    }
    
    .btn-explore.blue:hover {
        background: #E5E7EB;
        transform: none;
    }
    
    .auth-box {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .auth-box h2 {
        font-size: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .dashboard-header {
        padding: 1.5rem;
    }
    
    .dashboard-header h1 {
        font-size: 1.5rem;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    table th,
    table td {
        padding: 0.6rem;
        white-space: nowrap;
    }
    
    .table-container {
        margin: 1rem 0;
        border-radius: 8px;
    }
    
    /* Mobile Admin Sidebar */
    .sidebar-toggle {
        display: flex !important;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 10000;
        background: var(--primary-color);
        color: white;
        border: none;
        padding: 0.7rem;
        border-radius: 8px;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
    
    .sidebar-overlay {
        display: none;
    }
    
    .admin-layout .sidebar,
    .sidebar.admin-layout,
    #adminSidebar {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        z-index: 9999;
        background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
        color: white;
        transition: right 0.3s ease;
        overflow-y: auto;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }
    
    .admin-layout .sidebar.active,
    .sidebar.admin-layout.active,
    #adminSidebar.active {
        display: block;
        right: 0;
    }
    
    .admin-layout .main-content {
        margin-right: 0;
        padding: 1rem;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transition: all 0.3s ease;
    }
    
    .admin-layout .main-content.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    /* Mobile User Sidebar */
    .user-layout .sidebar {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        z-index: 9999;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        transition: right 0.3s ease;
        overflow-y: auto;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }
    
    .user-layout .sidebar.active {
        display: block;
        right: 0;
    }
    
    .user-layout .main-content {
        margin-right: 0;
        padding: 1rem;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transition: all 0.3s ease;
    }
    
    .user-layout .main-content.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        max-height: 85vh;
    }
    
    .tour-info {
        font-size: 0.9rem;
    }
    
    .badge {
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .filter-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tours-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .tour-overlay-info {
        top: 14px;
        left: 14px;
        right: 14px;
        padding: 11px 14px;
    }
    
    .overlay-info-item {
        font-size: 13px;
        gap: 5px;
    }
    
    .overlay-icon.purple {
        width: 15px;
        height: 15px;
    }
    
    .tour-rating {
        top: 75px;
        left: 14px;
        right: 14px;
    }
    
    .rating-stars svg {
        width: 17px;
        height: 17px;
    }
    
    .tour-content {
        padding: 18px;
    }
    
    .tour-title {
        font-size: 19px;
        margin-bottom: 11px;
    }
    
    .tour-destination {
        font-size: 13px;
        margin-bottom: 18px;
    }
    
    .tour-bottom {
        flex-direction: row;
        align-items: flex-end;
        gap: 14px;
    }
    
    .tour-price.blue {
        font-size: 19px;
    }
    
    .btn-explore.blue {
        padding: 6px 12px;
        background: transparent;
        border: none;
        text-decoration: underline;
    }
    
    .auth-box {
        padding: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Tablet Admin Sidebar */
    .sidebar-toggle {
        display: flex !important;
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 10000;
        background: var(--primary-color);
        color: white;
        border: none;
        padding: 0.8rem;
        border-radius: 8px;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
    
    .sidebar-overlay {
        display: none;
    }
    
    .admin-layout .sidebar,
    .sidebar.admin-layout,
    #adminSidebar {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        z-index: 9999;
        background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
        color: white;
        transition: right 0.3s ease;
        overflow-y: auto;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }
    
    .admin-layout .sidebar.active,
    .sidebar.admin-layout.active,
    #adminSidebar.active {
        display: block;
        right: 0;
    }
    
    .admin-layout .main-content {
        margin-right: 0;
        padding: 1.5rem;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transition: all 0.3s ease;
    }
    
    .admin-layout .main-content.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    /* Tablet User Sidebar */
    .user-layout .sidebar {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 220px;
        height: 100vh;
        z-index: 9999;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        transition: right 0.3s ease;
        overflow-y: auto;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }
    
    .user-layout .sidebar.active {
        display: block;
        right: 0;
    }
    
    .user-layout .main-content {
        margin-right: 0;
        padding: 1.5rem;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transition: all 0.3s ease;
    }
    
    .user-layout .main-content.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

/* ========================================
   TABLET STYLES (769px - 1024px)
======================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .tours-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Hide mobile elements */
    .hamburger,
    .sidebar-toggle,
    .sidebar-overlay {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Admin layout tablet */
    .admin-layout {
        display: flex;
        min-height: 100vh;
    }
    
    .admin-layout .sidebar,
    .sidebar.admin-layout,
    #adminSidebar {
        width: 175px;
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        z-index: 1000;
        overflow-y: hidden;
        overflow-x: hidden;
        background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
        color: white;
    }
    
    .admin-layout .main-content {
        margin-right: 175px;
        width: calc(100% - 175px);
        min-height: 100vh;
        flex: 1;
        background: #f5f7fa;
        padding: 2rem;
    }
    
    /* User layout tablet */
    .user-layout {
        display: flex;
        min-height: 100vh;
    }
    
    .user-layout .sidebar {
        width: 175px;
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        z-index: 1000;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        overflow-y: hidden;
        overflow-x: hidden;
    }
    
    .user-layout .main-content {
        margin-right: 175px;
        width: calc(100% - 175px);
        min-height: 100vh;
        flex: 1;
        background: #f5f7fa;
        padding: 2rem;
    }
}

/* ========================================
   DESKTOP STYLES (min-width: 1025px)
======================================== */
@media (min-width: 1025px) {
    .container {
        max-width: 1200px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .tours-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Hide mobile elements */
    .hamburger,
    .sidebar-toggle,
    .sidebar-overlay {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Reset navigation for desktop */
    .nav-links {
        position: static;
        width: auto;
        height: auto;
        background: none;
        flex-direction: row;
        padding: 0;
        gap: 2rem;
        align-items: center;
        overflow: visible;
        right: auto;
        transition: none;
        transform: none;
    }
    
    .nav-links a {
        width: auto;
        padding: 0.5rem 1rem;
    }
    
    /* Admin layout desktop */
    .admin-layout {
        display: flex;
        min-height: 100vh;
    }
    
    .admin-layout .sidebar,
    .sidebar.admin-layout,
    #adminSidebar {
        position: fixed;
        right: 0;
        top: 0;
        width: 175px;
        height: 100vh;
        z-index: 1000;
        background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
        color: white;
        overflow-y: hidden;
        overflow-x: hidden;
        transition: none;
        transform: none;
    }
    
    .admin-layout .sidebar.active,
    #adminSidebar.active {
        right: 0;
        transform: none;
    }
    
    .admin-layout .main-content {
        margin-right: 175px;
        padding: 2rem;
        width: calc(100% - 175px);
        min-height: 100vh;
        flex: 1;
        background: #f5f7fa;
    }
    
    /* User layout desktop */
    .user-layout {
        display: flex;
        min-height: 100vh;
    }
    
    .user-layout .sidebar {
        position: fixed;
        right: 0;
        top: 0;
        width: 175px;
        height: 100vh;
        z-index: 1000;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        overflow-y: hidden;
        overflow-x: hidden;
        transition: none;
        transform: none;
    }
    
    .user-layout .sidebar.active {
        right: 0;
        transform: none;
    }
    
    .user-layout .main-content {
        margin-right: 175px;
        padding: 2rem;
        width: calc(100% - 175px);
        min-height: 100vh;
        flex: 1;
        background: #f5f7fa;
    }
}


/* ========================================
   ADMIN PANEL STYLES (Only for admin pages)
======================================== */

.admin-layout {
    display: flex;
    flex-flow: wrap;
    min-height: 100vh;
}

.user-layout {
    display: flex;
    min-height: 100vh;
}

.user-layout .sidebar {
    width: 175px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    top: 0;
    right: 0;
}

.user-layout .sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-layout .sidebar-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    border-right: 3px solid transparent;
}

.user-layout .sidebar-menu a:hover,
.user-layout .sidebar-menu a.active {
    background: rgba(255,255,255,0.2);
    border-right-color: white;
}

.user-layout .main-content {
    margin-right: 250px;
    flex: 1;
    background: #f5f7fa;
    padding: 2rem;
    min-height: 100vh;
    width: calc(100% - 250px);
}

.admin-layout .sidebar,
.sidebar.admin-layout,
#adminSidebar {
    width: 175px;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: hidden;
    overflow-x: hidden;
    z-index: 1000;
    border-radius: 25px 0px 0px 25px;
    top: 0;
    right: 0;
}

.admin-layout .sidebar-menu,
.sidebar.admin-layout .sidebar-menu,
#adminSidebar .sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: calc(90vh - 120px);
    justify-content: space-between;
}

.admin-layout .sidebar-menu a,
.sidebar.admin-layout .sidebar-menu a,
#adminSidebar .sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.2rem;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    border-right: 3px solid transparent;
    font-size: 0.9rem;
    line-height: 1.2;
}

.admin-layout .sidebar-menu a svg,
.sidebar.admin-layout .sidebar-menu a svg,
#adminSidebar .sidebar-menu a svg {
    flex-shrink: 0;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.admin-layout .sidebar-menu a:hover svg,
.sidebar.admin-layout .sidebar-menu a:hover svg,
#adminSidebar .sidebar-menu a:hover svg,
.admin-layout .sidebar-menu a.active svg,
.sidebar.admin-layout .sidebar-menu a.active svg,
#adminSidebar .sidebar-menu a.active svg {
    opacity: 1;
}

.admin-layout .sidebar-menu a:hover,
.admin-layout .sidebar-menu a.active,
.sidebar.admin-layout .sidebar-menu a:hover,
.sidebar.admin-layout .sidebar-menu a.active,
#adminSidebar .sidebar-menu a:hover,
#adminSidebar .sidebar-menu a.active {
    background: rgba(255,255,255,0.1);
    border-right-color: var(--primary-color);
}

.admin-layout .main-content {
    flex: 1;
    background: #f5f7fa;
    padding: 5rem 1rem 0rem 1rem;
        min-height: 100vh;
    width: calc(100% - 175px);
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    color: white;
}

.stat-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}

.admin-layout .table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

.admin-layout .table-container table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius);
    overflow: visible; /* allow dropdowns inside cells to overflow */
    box-shadow: var(--box-shadow);
}

.admin-layout .table-container th,
.admin-layout .table-container td {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid #ecf0f1;
}

.admin-layout .table-container th {
    background: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
}

.admin-layout .table-container tr:hover {
    background: #f8f9fa;
}

.admin-layout .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-secondary {
    background: #e2e3e5;
    color: #383d41;
}

