* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 18px !important;

    height: 100vh;
    overflow: hidden;
}

.search-bar {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 10px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    max-width: 98%;
    min-width: 320px;
    height: auto;
    flex-wrap: nowrap;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;

    font-weight: 400;
    color: #333;
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #667eea;
    min-width: 150px;
    max-width: 400px;
    font-size: 1em !important;
}

/* Mobile: mantener en una línea */
@media (max-width: 600px) {
    .search-input {
        flex: 1;
        min-width: 100px;

    }

    #searchButton, #homeButton {
        padding: 8px 12px;

    }
}



.search-input::placeholder {
    color: #888;
}

.btn {
    border: none;
    padding: 8px 16px;
    border-radius: 15px;

    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #495057;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

#mapid {
    height: 100vh;
    border-radius: 0;
}

.coordinates-panel {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    text-align: center;
}

.coordinates-label {

    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.coordinates-value {

    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
}

.btn-copy {
    background: linear-gradient(45deg, #11998e, #38ef7d);
    color: white;

    padding: 6px 12px;
    border-radius: 10px;
    margin: 0 auto;
    display: block;
    width: fit-content;
    font-size: 1em !important;
}

.btn-copy:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.4);
}

.permission-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.permission-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    max-width: 400px;
    margin: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.permission-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.permission-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.permission-text {

    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.permission-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

.powered-by {
    display:none;
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 8px 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.powered-by a {
    color: #667eea;
    text-decoration: none;

    font-weight: 500;
    transition: color 0.3s ease;
}

.powered-by a:hover {
    color: #764ba2;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .search-bar {
        min-width: 280px;
        left: 10px;
        right: 10px;
        transform: none;
        gap: 8px;
    }
    
    .powered-by {
        top: 120px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .coordinates-panel {
        left: 20px;
        right: 20px;
        bottom: 20px;

    }
}