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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

header {
    margin-bottom: 40px;
    padding: 30px 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-content > div {
    text-align: center;
    flex: 1;
}

header h1 {
    color: #2c5282;
    margin-bottom: 10px;
    font-size: 2em;
}

header p {
    color: #666;
    font-size: 1.1em;
}

.lang-toggle {
    padding: 10px 20px;
    background-color: #2c5282;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.lang-toggle:hover {
    background-color: #1e3a5f;
}

.search-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.autocomplete-wrapper {
    flex: 1;
    position: relative;
}

#locationInput {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s;
}

#locationInput:focus {
    border-color: #2c5282;
}

.autocomplete-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 2px solid #2c5282;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background-color: #f0f4f8;
}

.autocomplete-item.active {
    background-color: #e8f0f8;
}

.autocomplete-loading {
    padding: 12px 16px;
    color: #666;
    font-style: italic;
    text-align: center;
}

.autocomplete-no-results {
    padding: 12px 16px;
    color: #999;
    text-align: center;
}

#searchBtn {
    padding: 12px 32px;
    background-color: #2c5282;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#searchBtn:hover {
    background-color: #1e3a5f;
}

#searchBtn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.error {
    display: none;
    padding: 12px;
    background-color: #fee;
    color: #c33;
    border-radius: 6px;
    margin-top: 10px;
}

.error.show {
    display: block;
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
    color: #2c5282;
    font-weight: 500;
}

.loading.show {
    display: block;
}

.results {
    display: none;
}

.results.show {
    display: block;
}

.search-location {
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-location strong {
    color: #2c5282;
}

table {
    width: 100%;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

thead {
    background-color: #2c5282;
    color: white;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

tbody tr:hover {
    background-color: #f8f9fa;
}

tbody tr:last-child td {
    border-bottom: none;
}

.phone-link {
    color: #2c5282;
    text-decoration: none;
    font-weight: 500;
}

.phone-link:hover {
    text-decoration: underline;
}

.distance {
    color: #666;
    font-weight: 500;
}

.no-results {
    display: none;
    text-align: center;
    padding: 40px;
    background-color: #fff;
    border-radius: 8px;
    color: #666;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.no-results.show {
    display: block;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    header h1 {
        font-size: 1.5em;
    }

    .search-box {
        flex-direction: column;
    }

    table {
        font-size: 14px;
    }

    th, td {
        padding: 10px 8px;
    }

    /* Hide meeting location column on mobile */
    th:nth-child(4),
    td:nth-child(4) {
        display: none;
    }
}
