.servicos {
    padding: 96px 0;
    background:
        linear-gradient(180deg, rgba(219, 234, 254, 0.45) 0%, rgba(255, 255, 255, 0.92) 35%, rgba(239, 246, 255, 1) 100%);
}

.slider-wrapper {
    position: relative;
}

.cards-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 12px 60px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cards-container::-webkit-scrollbar {
    display: none;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    width: 50px;
    height: 220px;
    border-radius: 5px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(0, 89, 255, 0.92);
    color: #fff;
    font-weight: bold;
    box-shadow: var(--shadow-md);
    font-size: 3rem;
}

.left-btn {
    left: 6px;
    top: 240px;
}

.right-btn {
    right: 6px;
    top: 240px;
}

.card {
    height: 100%;
    flex: 0 0 100%;
    scroll-snap-align: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
}

.card-front {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card-front>img:first-child {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 34px;
    display: flex;
    flex-direction: column;
}

.card-tag {
    display: inline-flex;
    align-self: flex-start;
    padding: 8px 14px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.08);
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.card-content h3,
.imoveis-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.1;
    margin-bottom: 12px;
}

.card-content p {
    color: var(--text-soft);
    font-size: 1.05rem;
}

.card-buttons {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 24px;
}

.card-buttons-inline {
    padding-top: 0;
}

.card-buttons>* {
    flex: 1 1 220px;
}

.btn-info {
    cursor: pointer;
}

.card-imoveis .card-front {
    grid-template-columns: 1fr;
}

.card-imoveis .card-front>img {
    height: 360px;
}

.imoveis-title {
    font-size: 1.6rem;
    margin-top: 26px;
}

.imoveis-carousel {
    overflow: hidden;
    margin-top: 18px;
    padding-bottom: 8px;
}

.imoveis-track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: slideImoveis 24s linear infinite;
}

.imoveis-track:hover {
    animation-play-state: paused;
}

.imovel-item {
    min-width: 300px;
    max-width: 300px;
    background: rgba(248, 250, 252, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    padding: 14px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.imovel-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(59, 130, 246, 0.18);
}

.imovel-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
}

.imovel-titulo {
    display: block;
    font-weight: 800;
    margin: 12px 0 10px;
    color: var(--text);
}

.imovel-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
}

.status-aluguel {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}

.status-compra {
    background: rgba(34, 197, 94, 0.16);
    color: #15803d;
}

.status-indisponivel {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

@keyframes slideImoveis {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.slider-modal,
.imovel-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(8px);
}

.slider-modal {
    z-index: 1800;
    flex-direction: column;
    gap: 18px;
}

.slider-modal.is-open,
.imovel-modal.active {
    display: flex;
}

.slider-content {
    position: relative;
    width: min(88vw, 480px);
    max-height: 78vh;
    padding: 14px;
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
}

.slider-images img {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 18px;
}

.close-btn,
.arrow,
.close-btn-imovel,
.slider-arrow {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.82);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.close-btn {
    top: 28px;
    right: 28px;
    z-index: 5;
    font-size: 2rem;
}

.arrow {
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
}

.left-arrow {
    left: max(18px, calc(50vw - 360px));
}

.right-arrow {
    right: max(18px, calc(50vw - 360px));
}

.imovel-modal {
    z-index: 1850;
    padding: 24px;
}

.imovel-modal-content {
    width: min(1100px, 100%);
    max-height: 88vh;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
    background: rgba(255, 255, 255, 0.98);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.imovel-slider {
    position: relative;
    min-height: 520px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.imovel-slider img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: calc(88vh - 48px);
    object-fit: contain;
    object-position: center;
    display: block;
}

.close-btn-imovel {
    top: 16px;
    right: 16px;
    background: rgba(239, 68, 68, 0.95);
    font-size: 1.9rem;
    z-index: 4;
}

.slider-arrow {
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    background: rgba(15, 23, 42, 0.82);
}

.slider-arrow.left {
    left: 16px;
}

.slider-arrow.right {
    right: 16px;
}

.imovel-info {
    padding: 34px;
    overflow-y: auto;
}

.imovel-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.82rem;
    font-weight: 800;
}

.imovel-info h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 18px;
}

.imovel-info p {
    color: var(--text-soft);
}

.imovel-info p+p {
    margin-top: 12px;
}

.imovel-buttons {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.imovel-buttons>* {
    flex: 1 1 220px;
}

.btn-indisponivel-modal {
    margin-top: 28px;
    width: 100%;
    min-height: 54px;
    border: none;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
    font-weight: 800;
    display: none;
}