/* ==========================================
   PALETA DE CORES
   ========================================== */
:root {
    --color-primary: #00FFCC;
    --color-dark: #0D3B3B;
    --color-orange: #FFA500;
    --color-cyan: #00FFCC;
    --color-teal: #40E0D0;
    --color-white: #FFFFFF;
    /* Verified badge color (easily changeable) */
    --verified-color: #22c55e; /* verde brilhante */
}

/* ==========================================
   HEADER MODERNO E ELEGANTE
   ========================================== */
.modern-header {
    background: linear-gradient(135deg, #0a2f2f 0%, #0D3B3B 50%, #0a2f2f 100%);
    border-bottom: 1px solid rgba(0, 255, 204, 0.15);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 255, 204, 0.4) 20%, 
        rgba(64, 224, 208, 0.6) 50%, 
        rgba(0, 255, 204, 0.4) 80%, 
        transparent 100%);
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.modern-header:hover {
    box-shadow: 0 6px 30px rgba(0, 255, 204, 0.15);
}

.header-content {
    max-width: 1760px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.header-logo {
    height: 42px;
    width: auto;
    filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 255, 204, 0.3));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.header-logo:hover {
    filter: brightness(0) invert(1) drop-shadow(0 4px 16px rgba(0, 255, 204, 0.6));
    transform: scale(1.03) translateY(-1px);
}

.header-title {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00FFCC 0%, #40E0D0 50%, #00FFCC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    text-shadow: 0 0 30px rgba(0, 255, 204, 0.3);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.reservas-link {
    padding: 0.625rem 1.35rem;
    border-radius: 24px;
    border: 1.5px solid rgba(168, 85, 247, 0.6) !important;
    text-decoration: none;
    color: var(--color-white) !important;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(147, 51, 234, 0.18) 100%) !important;
    backdrop-filter: blur(10px);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.25) !important;
    animation: pulse-reservas 3s ease-in-out infinite;
}

/* Força o estilo do link/visitado para evitar sublinhado e cor roxa padrão */
.modern-header .header-right a.reservas-link:link,
.modern-header .header-right a.reservas-link:visited {
    text-decoration: none !important;
    color: var(--color-white) !important;
    border-color: rgba(168, 85, 247, 0.6) !important;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(147, 51, 234, 0.18) 100%) !important;
}

.modern-header .header-right a.reservas-link svg,
.modern-header .header-right a.reservas-link span {
    color: inherit;
}

.reservas-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.45) 0%, rgba(168, 85, 247, 0.35) 100%);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: 0;
}

.reservas-link:hover::before {
    width: 280px;
    height: 280px;
}

.reservas-link:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.95) 0%, rgba(147, 51, 234, 0.92) 100%);
    color: var(--color-white);
    box-shadow: 0 6px 24px rgba(168, 85, 247, 0.5), 0 0 0 1px rgba(192, 132, 252, 0.4);
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(192, 132, 252, 0.85);
    animation: none;
}

.reservas-link svg {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.reservas-link:hover svg {
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3));
}

.reservas-link span {
    position: relative;
    z-index: 1;
}

/* Efeito de pulso sutil no botão de reservas */
@keyframes pulse-reservas {
    0%, 100% {
        box-shadow: 0 2px 10px rgba(168, 85, 247, 0.25);
    }
    50% {
        box-shadow: 0 2px 16px rgba(168, 85, 247, 0.4), 0 0 0 2px rgba(168, 85, 247, 0.15);
    }
}

.club-link {
    padding: 0.625rem 1.25rem;
    border-radius: 24px;
    border: 1.5px solid rgba(255, 165, 0, 0.4);
    text-decoration: none;
    color: var(--color-white);
    background: rgba(255, 165, 0, 0.08);
    backdrop-filter: blur(8px);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.club-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 165, 0, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: -1;
}

.club-link:hover::before {
    width: 250px;
    height: 250px;
}

.club-link:hover {
    background: rgba(255, 165, 0, 0.95);
    color: #0a2f2f;
    box-shadow: 0 4px 16px rgba(255, 165, 0, 0.35);
    transform: translateY(-1px);
    border-color: rgba(255, 165, 0, 0.8);
}

.club-link svg,
.admin-link svg {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.club-link:hover svg {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.admin-link:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.club-link span,
.admin-link span {
    position: relative;
    z-index: 1;
}

.admin-link {
    padding: 0.625rem 1.25rem;
    border-radius: 24px;
    border: 1.5px solid rgba(0, 255, 204, 0.4);
    text-decoration: none;
    color: var(--color-white);
    background: rgba(0, 255, 204, 0.08);
    backdrop-filter: blur(8px);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.admin-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 255, 204, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: -1;
}

.admin-link:hover::before {
    width: 250px;
    height: 250px;
}

.admin-link:hover {
    background: rgba(0, 255, 204, 0.95);
    color: #0a2f2f;
    box-shadow: 0 4px 16px rgba(0, 255, 204, 0.4);
    transform: translateY(-1px);
    border-color: rgba(0, 255, 204, 0.8);
}

/* Efeito de brilho nos links */
.reservas-link::after,
.club-link::after,
.admin-link::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* ==========================================
   BARRA DE BUSCA
   ========================================== */
.search-section {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid #ebebeb;
}

.search-container {
    max-width: 1760px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative; /* permite posicionar o botão à direita */
}

.search-box {
    max-width: 560px;
    margin: 0 auto; /* centraliza globalmente */
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--color-primary);
    border-radius: 40px;
    box-shadow: 0 2px 4px rgba(0, 255, 204, 0.2);
    transition: all 0.3s;
}

/* Botão: Anuncie seu imóvel */
.ad-imovel-btn {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.75rem 1.25rem;
    border-radius: 24px;
    border: 1.5px solid rgba(64, 224, 208, 0.5);
    background: rgba(64, 224, 208, 0.08);
    color: #0D3B3B;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.ad-imovel-btn:hover {
    background: rgba(64, 224, 208, 0.95);
    color: #0a2f2f;
}

.search-box:hover {
    box-shadow: 0 4px 8px rgba(0, 255, 204, 0.4);
    border-color: var(--color-teal);
}

.search-icon {
    font-size: 1.2rem;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.875rem;
    color: #222;
}

.search-input::placeholder {
    color: #717171;
}

/* ==========================================
   CATEGORIAS
   ========================================== */
.categories-section {
    background: white;
    border-bottom: 1px solid #ebebeb;
    padding: 1rem 0;
    position: sticky;
    top: 70px;
    z-index: 99;
}

.categories-scroll {
    max-width: 1760px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    gap: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border: none;
    background: none;
    cursor: pointer;
    min-width: 60px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    color: #717171;
}

.category-item:hover {
    color: var(--color-dark);
    border-bottom-color: var(--color-teal);
}

.category-item.active {
    color: var(--color-dark);
    border-bottom-color: var(--color-primary);
}

.category-icon {
    font-size: 1.5rem;
}

.category-name {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ==========================================
   CONTEÚDO PRINCIPAL
   ========================================== */
.main-content {
    max-width: 1760px;
    margin: 0 auto;
    padding: 2rem 40px;
}

/* ==========================================
   CARROSSEL
   ========================================== */
.carousel-section {
    margin-bottom: 0.75rem;
}

.section-header-carousel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.section-header-carousel h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #222;
}

.see-all {
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.see-all:hover {
    color: var(--color-primary);
}

.carousel-container {
    position: relative;
}

.carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 5px;
    border: 2px solid var(--color-primary);
    background: white;
    color: var(--color-dark);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 255, 204, 0.3);
    transition: all 0.2s;
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.05);
    background: var(--color-primary);
    box-shadow: 0 4px 8px rgba(0, 255, 204, 0.5);
}

.carousel-btn.prev {
    left: -16px;
}

.carousel-btn.next {
    right: -16px;
}

/* ==========================================
   CARDS DO CARROSSEL
   ========================================== */
.carousel-card {
    min-width: 300px;
    max-width: 300px;
    text-decoration: none;
    color: #222;
    transition: transform 0.2s;
}

.carousel-card:hover {
    transform: scale(1.02);
}

.card-image {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

/* Verified badge overlay for cards - Estilo Neon */
.card-image .verified-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 255, 204, 0.15);
    backdrop-filter: blur(10px);
    color: #00FFCC;
    border: 2px solid #00FFCC;
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-dark);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.favorite-btn:hover {
    transform: scale(1.1);
    background: white;
}

.favorite-btn.active {
    color: var(--color-orange);
}

.card-content {
    padding: 0 4px;
    text-align: center;
}

.card-location {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #222;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.card-capacity {
    font-size: 0.875rem;
    color: #717171;
    margin-bottom: 0.25rem;
}

.card-rating {
    font-size: 0.875rem;
    color: #222;
    margin-bottom: 0.5rem;
    text-align: center;
}

.card-price {
    font-size: 0.9375rem;
    color: #222;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 4px;
}

.card-price strong {
    font-weight: 600;
    white-space: nowrap;
}

/* CTA button inside card */
.card-cta {
    margin: 10px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1.5px solid rgba(0,0,0,0.12);
    background: #fff;
    color: #0D3B3B;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}

.carousel-card:hover .card-cta {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--color-primary);
}

/* ==========================================
   FOOTER MODERNO
   ========================================== */
.modern-footer {
    background: #f7f7f7;
    border-top: 1px solid #ddd;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1760px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
    color: #717171;
    font-size: 0.875rem;
}

/* ==========================================
   BOTÃO FLUTUANTE DE CONTATO (BOTTOM-LEFT)
   ========================================== */
.floating-contact {
    position: fixed;
    left: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1200;
}

.floating-contact__btn {
    width: 52px;
    height: 52px;
    border-radius: 9999px;
    border: 2px solid var(--color-teal);
    background: linear-gradient(135deg, #0a2f2f 0%, #0D3B3B 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.floating-contact__btn i { font-size: 1.1rem; }

.floating-contact__label {
    background: #ffffff;
    color: #0D3B3B;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 0.875rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}

.floating-contact__label.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* ==========================================
   RESPONSIVIDADE
   ========================================== */
@media (max-width: 1024px) {
    .main-content,
    .header-content,
    .search-container,
    .categories-scroll,
    .footer-content {
        padding: 0 24px;
    }
    /* Oculta o botão em celulares/tablets */
    .ad-imovel-btn { display: none !important; }

    .carousel-card {
        min-width: 260px;
        max-width: 260px;
    }

    .card-image {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .search-container { display: flex; align-items: center; justify-content: center; gap: 12px; }
    .search-box { max-width: 100%; margin: 0; flex: 1 1 auto; }
    .ad-imovel-btn { position: static; transform: none; }
    .modern-header {
        padding: 0.875rem 0;
    }
    
    .header-content {
        padding: 0 24px;
    }
    
    .header-logo {
        height: 36px;
    }
    
    .header-title {
        font-size: 1.2rem;
    }
    
    .header-right {
        gap: 0.625rem;
    }
    
    .reservas-link,
    .club-link,
    .admin-link {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        gap: 0.375rem;
    }
    
    .reservas-link svg,
    .club-link svg,
    .admin-link svg {
        width: 16px;
        height: 16px;
    }

    .search-box {
        max-width: 100%;
    }

    .categories-scroll {
        gap: 1.5rem;
    }

    .category-name {
        font-size: 0.7rem;
    }

    /* Compacta a barra de categorias em telas pequenas */
    .categories-section {
        padding: 0.4rem 0;
    }

    .category-item {
        padding: 0.25rem 0;
        min-width: 50px;
    }

    .category-icon {
        font-size: 1.2rem;
    }

    .categories-scroll {
        gap: 0.9rem;
    }

    .carousel-card {
        min-width: 220px;
        max-width: 220px;
    }

    .card-image {
        height: 200px;
    }

    .carousel-btn {
        display: none;
    }

    .section-header-carousel h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .main-content,
    .header-content,
    .search-container,
    .categories-scroll,
    .footer-content {
        padding: 0 16px;
    }
    .search-container { flex-direction: column; align-items: stretch; gap: 10px; }
    .ad-imovel-btn { width: 100%; text-align: center; }
    
    .modern-header {
        padding: 0.75rem 0;
    }

    .carousel-card {
        min-width: 280px;
        max-width: 280px;
    }

    .header-logo {
        height: 30px;
    }

    .header-title {
        font-size: 1rem;
    }
    
    .header-right {
        gap: 0.5rem;
    }
    
    .reservas-link,
    .club-link,
    .admin-link {
        padding: 0.45rem 0.875rem;
        font-size: 0.75rem;
        gap: 0.3rem;
    }
    
    .reservas-link svg,
    .club-link svg,
    .admin-link svg {
        width: 14px;
        height: 14px;
    }

    /* AINDA MAIS compacto em celulares muito pequenos */
    .categories-section {
        padding: 0.3rem 0;
    }

    .categories-scroll {
        gap: 0.75rem;
    }

    .category-item {
        padding: 0.2rem 0;
        min-width: 46px;
    }

    .category-icon {
        font-size: 1.1rem;
    }

    .category-name {
        font-size: 0.65rem;
    }
}
