/* =========================================
   MAPA SECTION — Estilo escuro para homepage
   ========================================= */

#mapa-section {
    position: relative;
    padding: 0;
    height: auto;
    min-height: 500px;
    overflow: hidden;
}

#mapa-section .container {
    max-width: 100%;
    padding: 0;
    height: 100%;
}

/* --- Map + List Layout --- */
#mapa-section .mapa-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    height: 500px;
}

#mapa-section #mapHome {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* --- Search Section (above map) --- */
#search-section {
    background: var(--background, #0d1217);
    padding: 48px 0 32px;
    border-bottom: 1px solid var(--border, #324452);
}

#search-section .search-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

#search-section .search-wrapper h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 24px;
}

#search-section .search-wrapper h2 span {
    color: var(--gold, #D4AF37);
}

#search-section .search-field {
    position: relative;
    max-width: 450px;
    margin: 0 auto;
}

#search-section .search-field i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground, #8899aa);
    font-size: 18px;
    pointer-events: none;
}

#search-section .search-field input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1px solid var(--border, #324452);
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    background: var(--card, #141b22);
    color: var(--foreground, #e6e6e6);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#search-section .search-field input::placeholder {
    color: var(--muted-foreground, #8899aa);
}

#search-section .search-field input:focus {
    border-color: var(--gold, #D4AF37);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

#search-section .search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--muted-foreground, #8899aa);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

#search-section .search-clear:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* --- List Panel --- */
#mapa-section .mapa-list {
    overflow-y: auto;
    padding: 16px;
    background: var(--background, #0d1217);
    border-left: 1px solid var(--border, #324452);
}

#mapa-section .product-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#productListMap {
    margin: 0;
    padding: 0;
    border: none;
}

#mapa-section .product-item {
    background: var(--card, #141b22);
    border: 1px solid var(--border, #324452);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#mapa-section .product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border-color: var(--gold, #D4AF37);
}

#mapa-section .product-item:active {
    transform: scale(0.98);
}

#mapa-section .product-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

#mapa-section .product-body {
    padding: 12px;
}

#mapa-section .product-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--foreground, #e6e6e6);
    margin-bottom: 4px;
    font-family: 'Playfair Display', serif;
}

#mapa-section .product-desc {
    font-size: 13px;
    color: var(--muted-foreground, #8899aa);
}

/* Leaflet overrides for dark theme */
#mapa-section .leaflet-container {
    background: #1a1a2e;
    font-family: 'Montserrat', sans-serif;
}

#mapa-section .leaflet-control-zoom a {
    background: rgba(20, 27, 34, 0.9);
    color: #e6e6e6;
    border-color: rgba(50, 68, 82, 0.5);
}

#mapa-section .leaflet-control-zoom a:hover {
    background: rgba(18, 77, 91, 0.8);
}

#mapa-section .leaflet-control-attribution {
    background: rgba(13, 18, 23, 0.7);
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
}

#mapa-section .leaflet-control-attribution a {
    color: rgba(255, 255, 255, 0.5);
}

/* Custom Markers — adapted for dark bg */
#mapa-section .custom-marker .marker-content {
    background: var(--card, #141b22);
    border: 1px solid var(--border, #324452);
    border-radius: 8px;
    padding: 4px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    width: 130px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#mapa-section .custom-marker .marker-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
    border-color: var(--gold, #D4AF37);
}

#mapa-section .custom-marker img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}

#mapa-section .custom-marker .marker-title {
    font-size: 12px;
    font-weight: 600;
    padding-top: 3px;
    color: var(--foreground, #e6e6e6);
}

/* Floating Card — matches homepage dark theme */
#mapa-section .property-card {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 420px;
    background: var(--card, #141b22);
    border: 1px solid var(--border, #324452);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
    color: var(--foreground, #e6e6e6);
}

#mapa-section .property-card.visible {
    bottom: 20px;
}

#mapa-section .property-card img {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 12px;
}

#mapa-section .card-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mapa-section .card-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

#mapa-section #cardTitleMap {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 4px;
    color: white;
}

#mapa-section #cardDescMap {
    font-size: 0.85rem;
    color: var(--muted-foreground, #b3bcc4);
    margin-bottom: 8px;
}

#mapa-section #cardPriceMap {
    font-weight: 700;
    color: var(--gold, #D4AF37);
    margin-bottom: 12px;
}

#mapa-section #cardLinkMap.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    height: 2.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    background: var(--gold-gradient, linear-gradient(135deg, #D4AF37 0%, #F1D592 50%, #D4AF37 100%));
    color: #000;
    font-size: 0.85rem;
    transition: all 400ms ease;
    cursor: pointer;
    border: none;
}

#mapa-section #cardLinkMap.btn:hover {
    box-shadow: var(--gold-glow, 0 0 15px rgba(212, 175, 55, 0.4));
    filter: brightness(1.1);
}

/* =========================================
   SAÍDAS DE GOIÂNIA — Dark theme cards
   ========================================= */
#search-section .saidas-cards {
    margin-bottom: 48px;
}

#search-section .saidas-heading {
    text-align: center;
    margin-bottom: 40px;
}

#search-section .saidas-eyebrow {
    display: block;
    letter-spacing: 4px;
    font-weight: 700;
    color: var(--gold, #D4AF37);
    font-size: 13px;
    margin-bottom: 12px;
}

#search-section .saidas-line {
    width: 48px;
    height: 3px;
    background: var(--gold, #D4AF37);
    margin: 0 auto 20px;
}

#search-section .saidas-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: white;
    margin-bottom: 12px;
}

#search-section .saidas-sub {
    font-size: 1rem;
    color: var(--muted-foreground, #8899aa);
}

#search-section .saidas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

#search-section .saida-card {
    background: var(--card, #141b22);
    border: 1px solid var(--border, #324452);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

#search-section .saida-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--gold, #D4AF37);
}

#search-section .saida-image {
    position: relative;
    height: 280px;
    padding: 100px 30px 30px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

#search-section .saida-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.25));
}

#search-section .saida-image > * {
    position: relative;
    z-index: 1;
}

#search-section .saida-image.go060 {
    background: url('/img/imgp/portalShopping.jpg') center/cover;
}
#search-section .saida-image.go070 {
    background: url('/img/imgp/cidadeGoianira.jpg') center/cover;
}
#search-section .saida-image.go462 {
    background: url('https://images.unsplash.com/photo-1511818966892-d7d671e672a2?auto=format&fit=crop&w=1200&q=80') center/cover;
}

#search-section .saida-badge {
    display: inline-block;
    align-self: flex-start;
    background: var(--gold, #D4AF37);
    color: #000;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 3px;
    padding: 6px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
}

#search-section .saida-image h3 {
    font-size: 2.8rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.1;
}

#search-section .saida-image p {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 4px;
}

#search-section .saida-body {
    padding: 24px 28px 28px;
}

#search-section .saida-body ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#search-section .saida-body li {
    margin-bottom: 14px;
    font-size: 0.95rem;
    color: var(--muted-foreground, #b3bcc4);
    display: flex;
    align-items: center;
}

#search-section .saida-body li::before {
    content: "✓";
    color: var(--gold, #D4AF37);
    font-weight: 700;
    margin-right: 12px;
    font-size: 1rem;
}

#search-section .saida-btn {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    color: #000;
    background: var(--gold-gradient, linear-gradient(135deg, #D4AF37 0%, #F1D592 50%, #D4AF37 100%));
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 400ms ease;
}

#search-section .saida-btn:hover {
    box-shadow: var(--gold-glow, 0 0 15px rgba(212, 175, 55, 0.4));
    filter: brightness(1.1);
    transform: translateY(-1px);
}

#search-section .saida-btn span {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

#search-section .saida-btn:hover span {
    transform: translateX(4px);
}

@media (max-width: 900px) {
    #mapa-section .mapa-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    #mapa-section #mapHome {
        height: 400px;
    }

    #mapa-section .mapa-list {
        height: 360px;
        border-left: none;
        border-top: 1px solid var(--border, #324452);
    }

    #search-section .saidas-grid {
        grid-template-columns: 1fr;
    }

    #search-section .saidas-title {
        font-size: 1.6rem;
    }

    #search-section .saida-image {
        height: 220px;
        padding: 80px 24px 24px;
    }

    #search-section .saida-image h3 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {

    #search-section .saidas-title {
        font-size: 1.3rem;
    }

    #search-section .saida-image h3 {
        font-size: 2rem;
    }

    #search-section .saida-body {
        padding: 20px;
    }

    #search-section .saida-body li {
        font-size: 0.85rem;
    }

    #search-section .saida-image {
        height: 180px;
        padding: 60px 20px 20px;
    }

    #mapa-section {
        min-height: 400px;
    }

    #mapa-section .mapa-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    #mapa-section #mapHome {
        height: 350px;
    }

    #mapa-section .mapa-list {
        height: 360px;
        border-left: none;
        border-top: 1px solid var(--border, #324452);
    }

    #mapa-section .custom-marker .marker-content {
        width: 100px;
    }

    #mapa-section .custom-marker img {
        height: 50px;
    }

    #mapa-section .custom-marker .marker-title {
        font-size: 10px;
    }

    #mapa-section .property-card {
        width: 95%;
    }

    #mapa-section .product-item img {
        height: 100px;
    }
}
