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

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #4a9b9b 0%, #2d4f5f 100%);
    min-height: 100vh;
    direction: rtl;
    text-align: right;
}

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

/* Header */
header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.header-logo {
    margin-bottom: 1rem;
}

.logo {
    max-width: 300px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

header h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 300;
}

/* Search Section */
.search-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

#searchInput {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 50px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
}

#searchInput:focus {
    outline: none;
    border-color: #4a9b9b;
    box-shadow: 0 0 0 3px rgba(74, 155, 155, 0.1);
}

#searchBtn {
    padding: 15px 25px;
    background: #4a9b9b;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

#searchBtn:hover {
    background: #3a8a8a;
    transform: translateY(-2px);
}

.filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filters select {
    padding: 12px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 25px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filters select:focus {
    outline: none;
    border-color: #4a9b9b;
}

#clearFilters {
    padding: 12px 20px;
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e1e5e9;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
}

#clearFilters:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* Statistics Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: #4a9b9b;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #6c757d;
    font-weight: 400;
}

/* Favorites Section */
.favorites-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.favorites-section h2 {
    color: #2d4f5f;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.clear-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* Publishers Section */
.publishers-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header h2 {
    color: #2d4f5f;
    font-size: 1.8rem;
    margin: 0;
}

.favorites-badge {
    background: #4a9b9b;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(74, 155, 155, 0.3);
}

.view-toggle {
    display: flex;
    gap: 5px;
    background: #f8f9fa;
    padding: 5px;
    border-radius: 25px;
}

.view-toggle button {
    padding: 10px 20px;
    border: none;
    background: transparent;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
}

.view-toggle button.active {
    background: #4a9b9b;
    color: white;
}

/* Publishers Grid */
.publishers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.publisher-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.publisher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #4a9b9b;
}

.publisher-card.favorite {
    border-color: #28a745;
    background: #f8fff9;
}

.publisher-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.booth-number {
    background: #2d4f5f;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.favorite-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.favorite-btn:hover {
    transform: scale(1.2);
}

.publisher-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.publisher-country {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e9ecef;
    color: #495057;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* List View */
.publishers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.publishers-list .publisher-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.publishers-list .publisher-info {
    flex: 1;
}

.publishers-list .publisher-details {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Loading Indicator */
.loading-container {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4a9b9b;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

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

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Floating Map Button */
.floating-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #4a9b9b;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-btn:hover {
    background: #3a8a8a;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 1000px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 20px;
    left: 30px;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* Map Container */
.map-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.hall {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
}

.hall h3 {
    text-align: center;
    color: #2d4f5f;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.booths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 5px;
}

.booth {
    background: #e9ecef;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 8px 4px;
    text-align: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.booth:hover {
    background: #4a9b9b;
    color: white;
}

.booth.favorite {
    background: #28a745;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    .search-section {
        padding: 1.5rem;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filters select, #clearFilters {
        width: 100%;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .publishers-grid {
        grid-template-columns: 1fr;
    }

    .publishers-list .publisher-card {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .publishers-list .publisher-details {
        justify-content: space-between;
    }

    .floating-btn {
        bottom: 20px;
        left: 20px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }

    .map-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .search-container {
        flex-direction: column;
    }

    #searchBtn {
        padding: 12px 20px;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    .booth {
        font-size: 0.7rem;
        padding: 6px 2px;
    }
}


body.has-notice {
    padding-top: 60px;
}

/* Ensure the notice doesn't cover content */
#inAppNotice {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10000 !important;
}

/* In-app browser specific fixes */
@media screen and (max-width: 768px) {
    /* Force simple layout for in-app browsers */
    .publishers-grid {
        display: block !important;
    }
    
    .publisher-card {
        display: block !important;
        width: 100% !important;
        margin-bottom: 1rem !important;
    }
}