/* Estilos custom — complementam o Tailwind, não substituem.
   Edite aqui só o que não dá pra fazer com classes utility. */

html { scroll-behavior: smooth; }
h1, h2, h3, h4 { letter-spacing: -0.015em; }

/* Detalhe dourado sob títulos de seção */
.title-mark::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #c9a961, transparent);
    margin-top: 0.75rem;
}
.title-mark-center::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c9a961, transparent);
    margin: 0.75rem auto 0;
}

/* Cards com hover sutil */
.card-hover { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(13, 44, 94, 0.25);
}

/* Hero com efeito parallax suave */
.hero-bg {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}
@media (max-width: 768px) { .hero-bg { background-attachment: scroll; } }

/* Linha do tempo */
.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    padding-bottom: 2.5rem;
    border-left: 2px solid #dde5f1;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 9999px;
    background: #c9a961;
    border: 3px solid #f7f9fc;
    box-shadow: 0 0 0 2px #c9a961;
}
.timeline-item:last-child { border-left-color: transparent; }

/* Scrollbar sutil */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f0f4fa; }
::-webkit-scrollbar-thumb { background: #b8c8e0; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #8ba6c9; }

/* =================================================================
   FAQ accordion (HTML5 details/summary)
   ================================================================= */
.faq-item {
    border: 1px solid #dde5f1;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.25s ease, box-shadow 0.3s ease, transform 0.25s ease;
}
.faq-item:hover {
    border-color: #b8c8e0;
    transform: translateY(-1px);
}
.faq-item[open] {
    border-color: #0d2c5e;
    box-shadow: 0 14px 36px -16px rgba(13, 44, 94, 0.32);
}

/* Esconde o marker triangular nativo em TODOS browsers */
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; content: ''; }

.faq-item summary {
    cursor: pointer;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    color: #0d2c5e;
    font-size: 1.2rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
    transition: background 0.2s ease;
}
.faq-item summary:hover { background: #f7f9fc; }

/* Ícone + dourado em círculo (à direita) */
.faq-item summary::after {
    content: '+';
    margin-left: auto;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(201, 169, 97, 0.14);
    color: #b08d44;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.75rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s ease, color 0.25s ease;
}
.faq-item summary:hover::after { background: rgba(201, 169, 97, 0.28); }
.faq-item[open] summary::after {
    transform: rotate(135deg);
    background: #0d2c5e;
    color: #c9a961;
}

/* Corpo da resposta — claramente diferente da pergunta */
.faq-item .faq-body {
    margin: 0 28px;
    padding: 18px 0 26px;
    border-top: 1px solid #f0f4fa;
    color: #475e7e;
    font-family: 'Inter', sans-serif;
    font-size: 0.97rem;
    font-weight: 400;
    line-height: 1.75;
}

@media (max-width: 640px) {
    .faq-item summary { padding: 20px 22px; font-size: 1.05rem; gap: 14px; }
    .faq-item summary::after { width: 36px; height: 36px; font-size: 1.5rem; }
    .faq-item .faq-body { margin: 0 22px; padding: 16px 0 22px; font-size: 0.93rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =================================================================
   SISTEMA DE MAPA / LOCATOR DE UNIDADES
   ================================================================= */

.locator__grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 36px;
}

.locator__list { display: flex; flex-direction: column; gap: 8px; }

.loc-btn {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 18px 22px;
    background: #ffffff;
    border: 1px solid #dde5f1;
    border-radius: 10px;
    text-align: left;
    transition: all 0.25s ease;
    position: relative;
    cursor: pointer;
    width: 100%;
}
.loc-btn::before {
    content: '';
    position: absolute; left: 0; top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px; height: 60%;
    background: #c9a961;
    border-radius: 0 3px 3px 0;
    transition: transform 0.25s ease;
}
.loc-btn:hover { border-color: #0d2c5e; background: #f0f4fa; }
.loc-btn.is-active {
    border-color: #0d2c5e;
    background: #0d2c5e;
    color: #f7f9fc;
}
.loc-btn.is-active::before { transform: translateY(-50%) scaleY(1); }
.loc-btn.is-active .loc-btn__sub { color: rgba(255, 255, 255, 0.6); }

.loc-btn__title {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: 1.05rem;
    display: flex; align-items: center; gap: 8px;
    color: inherit;
}
.loc-btn__tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 99px;
    background: #f5ecd4;
    color: #8c6f37;
}
.loc-btn.is-active .loc-btn__tag {
    background: rgba(201, 169, 97, 0.25);
    color: #dec081;
}
.loc-btn__sub {
    font-size: 0.78rem;
    color: #5b80ad;
    font-weight: 500;
}

.locator__detail {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #dde5f1;
    box-shadow: 0 10px 40px -15px rgba(13, 44, 94, 0.18);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.locator__info { padding: 36px 40px 40px; }
.locator__photo {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 24px;
    border: 1px solid #dde5f1;
    transition: opacity 0.35s ease;
}
.locator__info .eyebrow-mark {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    color: #b08d44;
    margin-bottom: 8px;
}
.locator__info h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 2rem;
    color: #0d2c5e;
    letter-spacing: -0.015em;
    line-height: 1.05;
    margin-bottom: 8px;
}
.locator__tag {
    font-style: italic;
    color: #386192;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    margin-bottom: 30px;
}

.locator__data { display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; }
.locator__data li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 14px;
    align-items: flex-start;
}
.locator__data svg { width: 22px; height: 22px; color: #c9a961; margin-top: 2px; }
.locator__data h5 {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: #5b80ad;
    margin-bottom: 4px;
}
.locator__data p,
.locator__data a {
    font-size: 0.95rem;
    color: #0d2c5e;
    font-weight: 500;
    line-height: 1.4;
}
.locator__data a:hover { color: #b08d44; }

.locator__cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* mapa Leaflet */
.locator__map {
    position: relative;
    min-height: 480px;
    background: #f0f4fa;
    overflow: hidden;
}
.leaflet-map {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #EAEEF1;
}

.leaflet-control-zoom {
    border: none !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 30px -10px rgba(13, 44, 94, 0.3) !important;
    overflow: hidden;
    margin: 14px !important;
}
.leaflet-control-zoom a {
    background: #ffffff !important;
    color: #0d2c5e !important;
    border: none !important;
    width: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
    font-weight: 500 !important;
    font-size: 1.1rem !important;
    transition: background 0.2s ease !important;
}
.leaflet-control-zoom a:hover { background: #f0f4fa !important; color: #b08d44 !important; }
.leaflet-control-zoom-in { border-bottom: 1px solid #dde5f1 !important; }

.leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.62rem !important;
    color: #5b80ad !important;
    padding: 2px 8px !important;
}
.leaflet-control-attribution a { color: #0d2c5e !important; }

/* MARCADORES PERSONALIZADOS — azul Cardassi com pulse */
.cd-marker-wrap { background: transparent; border: none; }
.cd-marker {
    position: relative;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #c9a961;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 14px rgba(201, 169, 97, 0.45);
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.cd-marker:hover { transform: scale(1.18); }
.cd-marker.cd-marker--active {
    background: #0d2c5e;
    transform: scale(1.25);
    box-shadow: 0 6px 20px rgba(13, 44, 94, 0.5);
}
.cd-marker.cd-marker--active::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(13, 44, 94, 0.3);
    animation: cd-marker-pulse 2s ease-out infinite;
    z-index: -1;
}
@keyframes cd-marker-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* POPUP customizado */
.cd-popup .leaflet-popup-content-wrapper {
    background: #ffffff !important;
    border-radius: 10px !important;
    box-shadow: 0 18px 50px -10px rgba(13, 44, 94, 0.35) !important;
    border: 1px solid #dde5f1;
    padding: 2px;
}
.cd-popup .leaflet-popup-content {
    margin: 14px 18px !important;
    font-family: 'Inter', sans-serif !important;
    line-height: 1.45 !important;
    min-width: 180px;
}
.cd-popup .leaflet-popup-tip { background: #ffffff !important; box-shadow: none !important; }
.cd-popup-inner h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1rem;
    color: #0d2c5e;
    margin-bottom: 6px;
    letter-spacing: -0.005em;
}
.cd-popup-inner p { font-size: 0.78rem; color: #386192; line-height: 1.5; margin: 0; }
.leaflet-popup-close-button { color: #5b80ad !important; padding: 6px 8px 0 0 !important; }

.map__label {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 2;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.78rem;
    color: #386192;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 14px;
    border-radius: 99px;
    font-weight: 400;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(13, 44, 94, 0.1);
}

@media (max-width: 960px) {
    .locator__grid { grid-template-columns: 1fr; }
    .locator__list { flex-direction: row; overflow-x: auto; padding-bottom: 10px; }
    .loc-btn { flex-shrink: 0; min-width: 220px; }
    .locator__detail { grid-template-columns: 1fr; }
    .locator__map { min-height: 320px; order: -1; }
}
