logo-ftcheq:root {
    --primary-color: #00205b;
    --secondary-color: #003080;
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
}

.header-top {
    background-color: var(--primary-color);
    height: 40px;
}

.header-main {
    background-color: white;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.logo img {
    height: 55px;
    width: auto;
    margin: 0;
    padding: 0;
    max-width: 180px;
    object-fit: contain;
}

.auxiliary-logo.hidden {
    display: none;
}

/* Responsive para logos */
@media (max-width: 768px) {
    .logo {
        gap: 10px;
    }

    .logo img {
        height: 45px;
        max-width: 150px;
    }

    .main-content {
        height: calc(100vh - 105px);
    }

    #address-input {
        width: 140px;
        font-size: 12px;
    }

    #geolocate-button {
        padding: 6px 8px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .logo {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }

    .logo img {
        height: 40px;
        max-width: 180px;
    }

    .header-main {
        padding: 10px 15px;
    }

    .main-content {
        height: calc(100vh - 100px);
    }

    #search-container {
        flex-direction: column;
        width: auto;
    }

    #address-input {
        width: 150px;
        border-radius: 4px 4px 0 0;
        border-right: 1px solid #ccc;
        border-bottom: none;
    }

    #geolocate-button {
        border-radius: 0 0 4px 4px;
    }
}

.logo-ftcheq{
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

#logo-ftcheq{
    height: 20px;
    width: auto;
}

.main-content {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 110px);
}

#map-container {
    position: relative;
    flex: 1;
}

#map {
    height: 100%;
}

#search-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    display: flex;
    background-color: white;
    padding: 6px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

#address-input {
    width: 180px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    border-right: none;
    font-size: 13px;
}

#geolocate-button {
    padding: 6px 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
}

#geolocate-button:hover {
    background-color: var(--secondary-color);
}

#locations {
    background-color: white;
    padding: 0;
    overflow-y: auto;
    max-height: 300px;
}

#locations:empty {
    display: none;
}

#locations:not(:empty) {
    padding: 20px;
}

.location-item {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid black;
    cursor: pointer;
}

.location-item:hover {
    background-color: #e9e9e9;
}

.new-tag {
    background-color: #ffd700;
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: bold;
}

.gm-style .gm-style-iw-c {
    padding: 12px;
}

.info-window-content {
    font-family: Arial, sans-serif;
    position: relative;
    padding-top: 20px;
}

.info-window-content h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.info-window-content button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 4px;
    display: block;
    width: 100%;
}

.info-window-content button:hover {
    background-color: var(--secondary-color);
}

.close-info-window {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 20px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.close-info-window:hover {
    color: #000;
}

.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    border-radius: 5px;
    z-index: 1000;
}

.hidden {
    display: none;
}

@media (min-width: 768px) {
    .main-content {
        flex-direction: row;
    }
    #locations {
        width: 300px;
        height: auto;
        max-height: none;
    }
}

@media (max-width: 600px) {
    #search-container {
        width: calc(100% - 40px);
        flex-direction: column;
    }
    #address-input {
        width: 100%;
        border-right: 1px solid #ccc;
        border-radius: 4px 4px 0 0;
    }
    #geolocate-button {
        width: 100%;
        border-radius: 0 0 4px 4px;
        margin-top: 5px;
    }
    #locations {
        height: 210px;
    }
    .header-main{
        height: auto;
    }
    .logo-ftcheq{
        position: static;
        margin-top: 10px;
        transform: none;
    }

    #logo-ftcheq{
        height: 16px;
    }
}