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

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c28 0%, #2d5a3d 100%);
    min-height: 100vh;
    color: #fff;
    display: flex;
    flex-direction: column;
}

header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 2px solid rgba(74, 222, 128, 0.3);
    backdrop-filter: blur(10px);
    text-align: center;
    padding: 40px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.back-button {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 222, 128, 0.2);
    border: 2px solid rgba(74, 222, 128, 0.4);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-button:hover {
    background: rgba(74, 222, 128, 0.3);
    border-color: #4ade80;
    transform: translateY(-50%) translateX(-3px);
}

.back-button svg {
    width: 28px;
    height: 28px;
    stroke: #fff;
}

.header-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.logo {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
}

.header-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: transform 0.2s ease;
}

.header-link:hover {
    transform: scale(1.02);
}

.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 20px;
    flex: 1;
}

#map {
    height: 500px;
    width: 100%;
    border: 2px solid rgba(74, 222, 128, 0.3);
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.coordinate-display {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.coordinate-display label {
    font-weight: 600;
    color: #fff;
    font-size: 1.1rem;
}

.coordinate-display input {
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid rgba(74, 222, 128, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

.coordinate-display input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.results-container {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(74, 222, 128, 0.2);
    border-radius: 12px;
    padding: 20px;
}

.results-container h2 {
    color: #4ade80;
    margin-bottom: 15px;
    font-weight: 400;
    font-size: 1.5rem;
}

.results {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 8px;
    background: transparent;
    border: none;
}

.results table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
}

.results table th,
.results table td {
    padding: 10px 15px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.results table th {
    background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
    color: white;
    font-weight: 600;
}

.results table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.results table tr:hover {
    background: rgba(74, 222, 128, 0.1);
}

.results .error {
    color: #ff6b6b;
    font-weight: bold;
}

.leaflet-interactive:focus {
    outline: none;
}

/* Scrollbar styling */
.results::-webkit-scrollbar {
    width: 10px;
}

.results::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.results::-webkit-scrollbar-thumb {
    background: rgba(74, 222, 128, 0.4);
    border-radius: 8px;
}

.results::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 222, 128, 0.6);
}

footer {
    background: rgba(255, 255, 255, 0.05);
    border-top: 2px solid rgba(74, 222, 128, 0.3);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 5px 0;
}
