@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary-red: #a71c20;
    --primary-blue: #25256b;
    --light-red: #f8f1f1;
    --light-blue: #f1f2f6;
    --dark-gray: #2d3748;
    --medium-gray: #4a5568;
    --light-gray: #e2e8f0;
    --white: #ffffff;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --border-radius-large: 16px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--dark-gray);
    line-height: 1.5;
    margin: 0;
    padding: 0.5rem;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.section-container {
    break-inside: avoid-page;
}

.hall-section {
    break-before: page;
}

/* Hall background tints */
.hall-section:nth-child(1) {
    background: linear-gradient(135deg, rgba(37, 37, 107, 0.15) 0%, rgba(74, 74, 158, 0.20) 100%);
}

.hall-section:nth-child(2) {
    background: linear-gradient(135deg, rgba(167, 28, 32, 0.15) 0%, rgba(200, 40, 43, 0.20) 100%);
}

.hall-section:nth-child(3) {
    background: linear-gradient(135deg, rgba(37, 107, 37, 0.15) 0%, rgba(74, 158, 74, 0.20) 100%);
}

.hall-section:nth-child(4) {
    background: linear-gradient(135deg, rgba(107, 37, 107, 0.15) 0%, rgba(158, 74, 158, 0.20) 100%);
}

.hall-section:nth-child(5) {
    background: linear-gradient(135deg, rgba(107, 80, 37, 0.15) 0%, rgba(158, 120, 74, 0.20) 100%);
}

.modern-card {
    background: var(--white);
    border-radius: var(--border-radius-large);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 1rem;
    width: 100%;
}

.modern-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.modern-card:active {
    transform: scale(0.98);
}

.hall-header {
    color: white;
    padding: 1.5rem 1rem;
    position: relative;
    overflow: hidden;
    min-height: 80px;
    display: flex;
    align-items: center;
}

/* Hall header colors matching hall tints */
.hall-section:nth-child(1) .hall-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a237e 100%);
}

.hall-section:nth-child(2) .hall-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, #8b1a1d 100%);
}

.hall-section:nth-child(3) .hall-header {
    background: linear-gradient(135deg, #256325 0%, #1a4d1a 100%);
}

.hall-section:nth-child(4) .hall-header {
    background: linear-gradient(135deg, #6b256b 0%, #4a1a4a 100%);
}

.hall-section:nth-child(5) .hall-header {
    background: linear-gradient(135deg, #6b5025 0%, #4a351a 100%);
}

.hall-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    z-index: 2;
    position: relative;
    flex: 1;
}

.hall-header {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.collapse-icon {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
    font-weight: bold;
}

.hall-content {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.hall-content.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0 1rem;
}

.hall-content.expanded {
    max-height: 5000px;
    opacity: 1;
}




.company-item, .product-item {
    background: var(--white);
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    position: relative;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    touch-action: manipulation;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.company-item:hover, .product-item:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Hall-specific hover colors */
.hall-section:nth-child(1) .company-item:hover,
.hall-section:nth-child(1) .product-item:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(37, 37, 107, 0.1);
}

.hall-section:nth-child(2) .company-item:hover,
.hall-section:nth-child(2) .product-item:hover {
    border-color: var(--primary-red);
    box-shadow: 0 2px 8px rgba(167, 28, 32, 0.1);
}

.hall-section:nth-child(3) .company-item:hover,
.hall-section:nth-child(3) .product-item:hover {
    border-color: #256325;
    box-shadow: 0 2px 8px rgba(37, 107, 37, 0.1);
}

.hall-section:nth-child(4) .company-item:hover,
.hall-section:nth-child(4) .product-item:hover {
    border-color: #6b256b;
    box-shadow: 0 2px 8px rgba(107, 37, 107, 0.1);
}

.hall-section:nth-child(5) .company-item:hover,
.hall-section:nth-child(5) .product-item:hover {
    border-color: #6b5025;
    box-shadow: 0 2px 8px rgba(107, 80, 37, 0.1);
}

.company-item:active, .product-item:active {
    transform: scale(0.98);
    background-color: #f8f9fa;
}

.company-name, .product-name {
    font-weight: 900;
    font-size: 1.43rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    display: block;
}

/* Hall-specific company/product name colors */
.hall-section:nth-child(1) .company-name,
.hall-section:nth-child(1) .product-name {
    color: var(--primary-blue);
}

.hall-section:nth-child(2) .company-name,
.hall-section:nth-child(2) .product-name {
    color: var(--primary-red);
}

.hall-section:nth-child(3) .company-name,
.hall-section:nth-child(3) .product-name {
    color: #256325;
}

.hall-section:nth-child(4) .company-name,
.hall-section:nth-child(4) .product-name {
    color: #6b256b;
}

.hall-section:nth-child(5) .company-name,
.hall-section:nth-child(5) .product-name {
    color: #6b5025;
}

.stand-number {
    color: var(--white);
    font-weight: 600;
    font-size: 1.65rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
    margin-top: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Stand number colors matching hall tints */
.hall-section:nth-child(1) .stand-number {
    background: var(--primary-blue);
}

.hall-section:nth-child(2) .stand-number {
    background: var(--primary-red);
}

.hall-section:nth-child(3) .stand-number {
    background: #256325;
}

.hall-section:nth-child(4) .stand-number {
    background: #6b256b;
}

.hall-section:nth-child(5) .stand-number {
    background: #6b5025;
}

.section-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem 0;
    position: relative;
    padding-left: 0.75rem;
}

/* Hall-specific section title colors */
.hall-section:nth-child(1) .section-title {
    color: var(--primary-blue);
}

.hall-section:nth-child(2) .section-title {
    color: var(--primary-red);
}

.hall-section:nth-child(3) .section-title {
    color: #256325;
}

.hall-section:nth-child(4) .section-title {
    color: #6b256b;
}

.hall-section:nth-child(5) .section-title {
    color: #6b5025;
}

/* Hall-specific section title accents */
.hall-section:nth-child(1) .section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 1.5rem;
    background: var(--primary-blue);
    border-radius: 2px;
}

.hall-section:nth-child(2) .section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 1.5rem;
    background: var(--primary-red);
    border-radius: 2px;
}

.hall-section:nth-child(3) .section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 1.5rem;
    background: #256325;
    border-radius: 2px;
}

.hall-section:nth-child(4) .section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 1.5rem;
    background: #6b256b;
    border-radius: 2px;
}

.hall-section:nth-child(5) .section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 1.5rem;
    background: #6b5025;
    border-radius: 2px;
}

.main-title {
    font-weight: 900;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.title-red {
    color: var(--primary-red);
}

.title-blue {
    color: var(--primary-blue);
}

.subtitle {
    color: var(--medium-gray);
    font-size: 1rem;
    text-align: center;
    font-weight: 400;
    margin-bottom: 1rem;
    padding: 0 1rem;
}


.search-section {
    background: var(--white);
    border-radius: var(--border-radius-large);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.bulk-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    flex-wrap: wrap;
}

.search-title {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    text-align: center;
}

.search-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.search-input-container {
    display: flex;
    width: 100%;
    max-width: 500px;
    background: var(--white);
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.search-input {
    flex: 1;
    padding: 0.5rem 0.8rem;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    background: transparent;
    color: var(--dark-gray);
    min-height: 36px;
    touch-action: manipulation;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.search-input:focus {
    outline: none;
}

.search-input-container:focus-within {
    box-shadow: 0 8px 20px rgba(37, 37, 107, 0.2), 0 4px 8px rgba(37, 37, 107, 0.12), 0 2px 4px rgba(37, 37, 107, 0.08), 0 0 0 3px rgba(37, 37, 107, 0.1);
}

.search-input::placeholder {
    color: var(--medium-gray);
}


.search-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.search-btn {
    color: var(--white);
    padding: 0.5rem 0.9rem;
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    min-height: 36px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-width: 75px;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Buttons inside search container */
.search-input-container .search-btn {
    border-radius: 0;
    box-shadow: none;
}

.search-input-container .search-btn:last-child {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Buttons outside search container */
.search-buttons .search-btn {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.bulk-btn {
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-red) 100%);
}

.bulk-btn:hover {
    background: linear-gradient(135deg, #1a237e 0%, #8b1a1d 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.bulk-btn:active {
    transform: translateY(0);
}

/* Search button specific styling */
.search-btn {
    background: var(--primary-red);
}

.search-btn.clear-search-btn {
    background: var(--primary-blue);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.search-btn:not(.clear-search-btn):hover {
    background: #8b1a1d;
}

.search-btn.clear-search-btn:hover {
    background: #1a237e;
}

.search-btn:active {
    transform: translateY(0);
}

.hall-section.hidden {
    display: none;
}

.company-item.hidden, .product-item.hidden {
    display: none;
}

.no-results-message {
    background: var(--light-red);
    border: 2px solid var(--primary-red);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    color: var(--primary-red);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 2rem auto;
    max-width: 400px;
    display: none;
    box-shadow: var(--shadow-light);
}



.container {
    max-width: 100%;
    padding: 0.5rem;
    margin: 0 auto;
}

.exhibitors-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hall-content {
    padding: 1rem;
}

.companies-list, .products-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


@media print {
    .modern-card:hover {
        transform: none;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    }
    
    .company-item:hover, .product-item:hover {
        transform: none;
        border-color: var(--light-gray);
        box-shadow: none;
    }
}

/* Mobile-first responsive design */
@media (max-width: 480px) {
    body {
        padding: 0.25rem;
    }
    
    .container {
        padding: 0.25rem;
    }
    
    .main-title {
        font-size: 1.8rem;
        margin-bottom: 0.25rem;
    }
    
    .title-red, .title-blue {
        font-size: inherit;
    }
    
    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    
    .search-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .search-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .search-controls {
        gap: 0.75rem;
    }
    
    .search-input-container {
        max-width: 100%;
    }
    
    .search-input {
        font-size: 0.8rem;
        padding: 0.45rem 0.7rem;
        min-height: 40px;
    }
    
    .search-buttons {
        gap: 0.4rem;
    }
    
    .search-btn {
        padding: 0.55rem 0.85rem;
        font-size: 0.8rem;
        min-width: 70px;
        min-height: 36px;
    }
    
    .search-input-container .search-btn {
        padding: 0.45rem 0.6rem;
        font-size: 0.75rem;
        min-width: 55px;
        min-height: 40px;
    }
    
    .bulk-controls {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .bulk-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        min-height: 40px;
    }
    
    
    .hall-header {
        padding: 1rem 0.75rem;
        min-height: 60px;
    }
    
    .hall-header h2 {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 1.1rem;
        margin: 1rem 0 0.75rem 0;
    }
    
    .company-name, .product-name {
        font-size: 1.21rem;
    }
    
    .stand-number {
        font-size: 1.35rem;
        padding: 0.3rem 0.6rem;
    }
    
    .company-item, .product-item {
        padding: 0.75rem;
        min-height: 50px;
    }
    
    .hall-content {
        padding: 0.75rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .title-red, .title-blue {
        font-size: inherit;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .hall-header h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .company-name, .product-name {
        font-size: 1.375rem;
    }
    
    .stand-number {
        font-size: 1.575rem;
    }
}

/* Touch-friendly elements */
@media (hover: none) and (pointer: coarse) {
    .company-item:hover, .product-item:hover {
        transform: none;
        border-color: var(--light-gray);
        box-shadow: none;
    }
    
    .modern-card:hover {
        transform: none;
        box-shadow: var(--shadow-light);
    }
    
    .company-item:active, .product-item:active {
        transform: scale(0.95);
        background-color: #f8f9fa;
        border-color: var(--primary-red);
    }
    
    .modern-card:active {
        transform: scale(0.98);
    }
}

/* Landscape mobile optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .main-title {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hall-header {
        padding: 0.75rem;
        min-height: 50px;
    }
    
    .hall-header h2 {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1rem;
        margin: 0.75rem 0 0.5rem 0;
    }
    
    .company-item, .product-item {
        padding: 0.5rem;
        min-height: 40px;
    }
    
    .company-name, .product-name {
        font-size: 0.99rem;
    }
    
    .stand-number {
        font-size: 1.125rem;
    }
}
