/* ========================================
   NOSSAS MINAS - PÁGINA 4
   Bemfica Machado | Stone Excellence
   ======================================== */

/* ========================================
   BASE STYLES & PAGE CONTAINER
   ======================================== */

#nossas-minas {
    /* Layout properties - IGUAL Nossa Essência */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 400;
    background: var(--dark);
    padding: 0;
    overflow-y: auto;

    /* Interaction properties */
    user-select: text;
    pointer-events: auto;
}

/* Header com background em Nossas Minas para evitar sobreposição de conteúdo */
body.page-nossas-minas header {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.98) 70%,
        rgba(0, 0, 0, 0.95) 85%,
        rgba(0, 0, 0, 0.7) 100%) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

/* Overlay adicional abaixo da header em Nossas Minas para fade effect */
body.page-nossas-minas header::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        transparent 100%);
    pointer-events: none;
    z-index: -1;
}

/* ========================================
   HERO HEADER SECTION
   Sophisticated welcome area
   ======================================== */

.minas-hero-header {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    text-align: center;
    padding: 2rem;
}

.minas-header-content {
    max-width: 800px;
    width: 100%;
}

/* Título com gradient sofisticado */
.minas-title {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg,
        #E4C57A 0%,
        #C9A961 25%,
        #F5E6A3 50%,
        #B8952F 75%,
        #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(50px);
    position: relative;
}

.minas-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
    opacity: 0.6;
}

/* Subtítulo IGUAL Nossa Essência */
.minas-subtitle {
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(30px);
}

/* Scroll Indicator IGUAL Nossa Essência */
.minas-scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: floatUpDown 3s ease-in-out infinite;
    cursor: pointer;
}

.minas-scroll-indicator .scroll-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    font-weight: 300;
}

.minas-scroll-indicator .scroll-line {
    width: 1px;
    height: 2rem;
    background: linear-gradient(to bottom, var(--gold), transparent);
    position: relative;
}

.minas-scroll-indicator .scroll-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    animation: scrollDotMove 2s ease-in-out infinite;
}

@keyframes scrollDotMove {
    0% { top: 0; opacity: 1; }
    50% { top: 50%; opacity: 0.5; }
    100% { top: 100%; opacity: 0; }
}

/* Responsive - iPhone 15/16/17 Pro Max optimized */
@media (max-width: 768px) {
    /* FIX: Position fixed causa problemas em iPhone Safari com 100vh */
    #nossas-minas {
        position: relative !important;
        height: auto !important;
        min-height: 100vh !important;
    }

    .minas-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 480px) {
    .minas-title {
        font-size: 3rem;
    }
}

/* ========================================
   RESPONSIBLE LEGACY SECTION
   Sophisticated card layout with storytelling
   ======================================== */

.responsible-legacy {
    padding: 6rem 6rem;
    background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
    display: flex;
    align-items: center;
}

.legacy-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.legacy-content {
    color: #ffffff;
}

.legacy-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg,
        #E4C57A 0%,
        #C9A961 25%,
        #F5E6A3 50%,
        #B8952F 75%,
        #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    position: relative;
}

.legacy-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
    opacity: 0.6;
}

.legacy-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-weight: 300;
}

.legacy-narrative {
    margin-bottom: 3rem;
}

.narrative-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.legacy-metrics {
    display: flex;
    gap: 3rem;
}

.metric-item {
    text-align: center;
}

.legacy-section .metric-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.metric-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-weight: 300;
}

.legacy-visual {
    position: relative;
}

.visual-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(201, 169, 97, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 169, 97, 0.2);
}

.legacy-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.visual-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.overlay-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-weight: 300;
}

.visual-card:hover .legacy-image {
    transform: scale(1.05);
}

.visual-card:hover .visual-overlay {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .responsible-legacy {
        padding: 4rem 4rem;
    }

    .legacy-container {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }

    .legacy-title {
        font-size: 3.2rem;
    }

    .legacy-metrics {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .responsible-legacy {
        padding: 4rem 2rem;
    }

    .legacy-title {
        font-size: 2.8rem;
    }

    .legacy-metrics {
        flex-direction: column;
        gap: 2rem;
    }

    .legacy-image {
        height: 300px;
    }
}

/* ========================================
   EXCLUSIVE PRESENCE SECTION
   Sophisticated map layout with trust elements
   ======================================== */

.exclusive-presence {
    padding: 6rem 6rem 8rem;
    background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
}

.presence-container {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.presence-map {
    position: relative;
}

.map-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(201, 169, 97, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 1px solid rgba(201, 169, 97, 0.15);
}

.map-canvas {
    width: 100%;
    height: 600px;
    border: none;
    filter: grayscale(20%) contrast(1.1);
}

.presence-content {
    color: #ffffff;
}

.presence-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg,
        #E4C57A 0%,
        #C9A961 25%,
        #F5E6A3 50%,
        #B8952F 75%,
        #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    position: relative;
}

.presence-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
    opacity: 0.6;
}

.presence-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-weight: 300;
}

.trust-narrative {
    margin-bottom: 2.5rem;
}

.trust-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
}

.operational-credentials {
    margin-bottom: 2.5rem;
}

.credential-group {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.8rem;
}

.credential-item {
    text-align: center;
}

.credential-number {
    display: block;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 0.2rem;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.credential-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-weight: 300;
}

.certification-badges {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.badge-icon {
    color: var(--gold);
    font-size: 0.8rem;
    width: 14px;
    text-align: center;
}

.badge-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.contact-action {
    margin-top: 2rem;
}

/* Nossas Minas - Contact Button Standard */
.contact-btn-minimal {
    position: relative;
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #C9A961 0%, #B8952F 50%, #D4AF37 100%);
    color: #000;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    overflow: hidden;
    z-index: 20;
    pointer-events: auto;
    box-shadow: 0 6px 24px rgba(201, 169, 97, 0.25);
}

.contact-btn-minimal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.contact-btn-minimal:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 36px rgba(201, 169, 97, 0.4);
    background: linear-gradient(135deg, #E4C57A 0%, #C9A961 50%, #F5E6A3 100%);
}

.contact-btn-minimal:hover::before {
    left: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
    .exclusive-presence {
        padding: 4rem 4rem 6rem;
    }

    .presence-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .presence-title {
        font-size: 2.8rem;
    }

    .credential-group {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .exclusive-presence {
        padding: 4rem 2rem;
    }

    .presence-title {
        font-size: 2.5rem;
    }

    .credential-group {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .map-canvas {
        height: 350px;
    }
}

/* ========================================
   ELITE MARKER CARDS
   Sophisticated Google Maps info windows
   ======================================== */

.elite-marker-card {
    padding: 0;
    margin: 0;
    border: none;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
    border-radius: 8px;
    overflow: hidden;
    min-width: 180px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 169, 97, 0.2);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    animation: cardFadeIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.marker-card-header {
    padding: 12px 14px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(201, 169, 97, 0.15);
}

.location-dot {
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #C9A961 0%, #d4af37 100%);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.location-name {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.marker-card-body {
    padding: 8px 14px 12px;
}

.material-type {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 300;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #00ff88;
    animation: statusBlink 3s ease-in-out infinite;
}

.status-dot.active {
    background: #00ff88;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.status-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Override Google Maps default styles - Force dark theme */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
    background: rgba(0, 0, 0, 0.95) !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    background: rgba(0, 0, 0, 0.95) !important;
}

.gm-style .gm-style-iw-t {
    background: rgba(0, 0, 0, 0.95) !important;
}

.gm-style .gm-style-iw-tc {
    background: rgba(0, 0, 0, 0.95) !important;
}

.gm-style .gm-ui-hover-effect {
    opacity: 0.6 !important;
}

/* Force all InfoWindow backgrounds to dark */
.gm-style-iw {
    background: rgba(0, 0, 0, 0.95) !important;
}

.gm-style-iw > div {
    background: rgba(0, 0, 0, 0.95) !important;
}

/* Minimal golden X */
.gm-style .gm-style-iw .gm-style-iw-chr,
.gm-style-iw-chr,
[class*="gm-style-iw-chr"] {
    background: transparent !important;
    color: #C9A961 !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 16px !important;
    font-weight: 300 !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 99999 !important;
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    opacity: 1 !important;
    box-shadow: none !important;
    text-align: center !important;
    line-height: 1 !important;
}

/* ========================================
   LEAFLET MAP FALLBACK STYLES
   Para compatibilidade com OpenStreetMap
   ======================================== */

/* Garante que o container Leaflet tenha a mesma aparência */
.leaflet-container {
    background: #000000 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Estilos para popups do Leaflet - mesma aparência do Google Maps */
.leaflet-popup-content-wrapper {
    padding: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%) !important;
    border: 1px solid rgba(201, 169, 97, 0.2) !important;
    backdrop-filter: blur(10px) !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: auto !important;
    min-width: 180px !important;
}

/* Botão de fechar do Leaflet - estilo dourado minimalista */
.leaflet-popup-close-button {
    background: transparent !important;
    color: #C9A961 !important;
    border: none !important;
    font-size: 18px !important;
    font-weight: 300 !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    top: 8px !important;
    right: 8px !important;
    opacity: 1 !important;
    text-align: center !important;
    line-height: 1 !important;
    padding: 0 !important;
}

.leaflet-popup-close-button:hover {
    color: #F5E6A3 !important;
    opacity: 1 !important;
}

/* Ponta do popup - tema escuro */
.leaflet-popup-tip {
    background: rgba(0, 0, 0, 0.95) !important;
    box-shadow: none !important;
}

/* Controles de zoom do Leaflet - tema escuro */
.leaflet-control-zoom {
    border: 1px solid rgba(201, 169, 97, 0.2) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px) !important;
}

.leaflet-control-zoom a {
    background: rgba(0, 0, 0, 0.9) !important;
    color: #C9A961 !important;
    border: none !important;
    border-bottom: 1px solid rgba(201, 169, 97, 0.2) !important;
    font-size: 18px !important;
    line-height: 30px !important;
    transition: all 0.3s ease !important;
}

.leaflet-control-zoom a:hover {
    background: rgba(201, 169, 97, 0.2) !important;
    color: #F5E6A3 !important;
}

.leaflet-control-zoom a:last-child {
    border-bottom: none !important;
}

/* Atribuição do OpenStreetMap - tema escuro e discreto */
.leaflet-control-attribution {
    background: rgba(0, 0, 0, 0.7) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 10px !important;
    padding: 2px 6px !important;
    border-radius: 4px 0 0 0 !important;
    border: 1px solid rgba(201, 169, 97, 0.1) !important;
    border-right: none !important;
    border-bottom: none !important;
}

.leaflet-control-attribution a {
    color: rgba(201, 169, 97, 0.8) !important;
    text-decoration: none !important;
}

.leaflet-control-attribution a:hover {
    color: #F5E6A3 !important;
}

/* Marcador customizado - estilo consistente */
.custom-marker {
    background: transparent !important;
    border: none !important;
}

/* Animação de entrada para popups */
.leaflet-popup {
    animation: leafletPopupFadeIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes leafletPopupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
