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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header-logo {
    margin-bottom: 20px;
}

.logo {
    height: 80px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: white;
    padding: 10px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

header p {
    font-size: 1.1em;
    opacity: 0.95;
}

.controls {
    padding: 25px;
    background: #fafafa;
}

.category-buttons {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.search-radius {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.search-radius label {
    font-weight: 600;
    color: #2c2c2c;
}

.search-radius input {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    width: 80px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.search-radius input:focus {
    outline: none;
    border-color: #2c2c2c;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

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

.btn-primary {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #616161 0%, #424242 100%);
    color: white;
}

.btn-category {
    background: linear-gradient(135deg, #616161 0%, #424242 100%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 150px;
}

.btn-category:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #757575 0%, #616161 100%);
}

.btn-category:active:not(:disabled) {
    transform: translateY(0);
}

.btn:disabled {
    background: #e0e0e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    color: #9e9e9e;
}

.info-box {
    padding: 15px 25px;
    margin: 0 25px 20px 25px;
    border-radius: 8px;
    font-weight: 500;
    display: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-box.info {
    background: #f5f5f5;
    color: #2c2c2c;
    border-left: 4px solid #616161;
}

.info-box.success {
    background: #f1f1f1;
    color: #2c2c2c;
    border-left: 4px solid #424242;
}

.info-box.error {
    background: #ffebee;
    color: #d32f2f;
    border-left: 4px solid #ef5350;
}

.info-box.warning {
    background: #fff3e0;
    color: #f57c00;
    border-left: 4px solid #ff9800;
}

#map {
    height: 500px;
    margin: 0 25px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.results-list {
    padding: 25px;
    background: #fafafa;
    margin-top: 25px;
}

.results-list h3 {
    color: #2c2c2c;
    margin-bottom: 20px;
    font-size: 1.5em;
}

#resultsItems {
    display: grid;
    gap: 15px;
}

.result-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border-left: 4px solid #2c2c2c;
}

.result-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateX(5px);
}

.result-number {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    font-weight: bold;
    flex-shrink: 0;
}

.result-icon {
    font-size: 2.5em;
    flex-shrink: 0;
}

.result-info {
    flex: 1;
}

.result-info h4 {
    color: #2c2c2c;
    margin-bottom: 8px;
    font-size: 1.2em;
}

.result-info p {
    margin: 4px 0;
    color: #616161;
    font-size: 0.9em;
}

.result-type {
    color: #2c2c2c;
    font-weight: 600;
    font-size: 1em;
}

.open-hours {
    color: #424242;
    font-weight: 500;
}

.cuisine {
    color: #616161;
}

.brand {
    color: #757575;
    font-weight: 500;
}

.distance {
    color: #2c2c2c;
    font-weight: 600;
    font-size: 1.1em;
}

.address {
    font-size: 0.95em;
}

.phone {
    font-size: 0.95em;
    color: #424242;
}

.btn-route {
    padding: 10px 20px;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-route:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.user-marker {
    position: relative;
}

.pulse {
    width: 20px;
    height: 20px;
    background: #2c2c2c;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 0 0 rgba(44, 44, 44, 1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(44, 44, 44, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(44, 44, 44, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(44, 44, 44, 0);
    }
}

.place-marker, .result-marker {
    text-align: center;
}

.marker-pin {
    font-size: 30px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.marker-number {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #2c2c2c;
    font-weight: bold;
    font-size: 14px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #2c2c2c;
}

.open-status {
    color: #424242;
    font-weight: 600;
    margin: 5px 0;
}

.popup-content h3 {
    margin-bottom: 10px;
    color: #2c2c2c;
}

.popup-content p {
    margin: 5px 0;
    color: #424242;
}

.popup-content button {
    margin-top: 10px;
    padding: 8px 16px;
    background: #2c2c2c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.popup-content button:hover {
    background: #1a1a1a;
}

.footer {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: white;
    padding: 30px 25px 15px 25px;
    margin-top: 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand h3 {
    font-size: 2em;
    margin-bottom: 8px;
    color: white;
}

.footer-brand p {
    color: #b0bec5;
    font-size: 1em;
}

.footer-team h4 {
    font-size: 1.2em;
    margin-bottom: 12px;
    color: #e0e0e0;
}

.footer-team ul {
    list-style: none;
}

.footer-team ul li {
    margin-bottom: 8px;
    color: #b0bec5;
    font-size: 0.95em;
}

.footer-team ul li:before {
    content: "▸ ";
    color: white;
    font-weight: bold;
    margin-right: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #616161;
}

.footer-bottom p {
    color: #9e9e9e;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .logo {
        height: 60px;
    }

    header h1 {
        font-size: 1.8em;
    }

    .category-buttons {
        flex-direction: column;
    }

    .btn-category {
        width: 100%;
    }

    .search-radius {
        justify-content: space-between;
    }

    #map {
        height: 400px;
    }

    .result-item {
        flex-direction: column;
        text-align: center;
    }

    .result-icon {
        font-size: 3em;
    }

    .btn-route {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
