/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --portal-primary: #6A0DAD;
    /* Deep Purple */
    --portal-secondary: #FF0066;
    /* Vibrant Pink */
    --portal-bg: #F5F5F7;
    --portal-card-bg: #FFFFFF;
    --portal-text: #1d1d1f;
    --portal-font-title: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --portal-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Base Overlays Fixes */
.offcanvas {
    z-index: 4000 !important;
}

.offcanvas-backdrop {
    z-index: 3999 !important;
}

.modal {
    z-index: 5000 !important;
}

.modal-backdrop {
    z-index: 4999 !important;
}

/* Custom Checkpoint Fix */
.custom-check .form-check-input {
    width: 1.25em;
    height: 1.25em;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 6px !important;
    margin-top: 0.15em;
}

.custom-check .form-check-input:checked {
    background-color: var(--portal-secondary) !important;
    border-color: var(--portal-secondary) !important;
}

/* Mobile Modals Centering Refined */
@media (max-width: 576px) {
    .modal.show {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding-right: 0 !important;
    }

    .modal-dialog {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
        min-height: 100vh !important;
        width: 100% !important;
        max-width: 94% !important;
        pointer-events: none;
    }

    .modal-content {
        pointer-events: auto;
        margin: auto !important;
        width: 100% !important;
        border-radius: 28px !important;
        border: none !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
    }
}


.dashboard-theme,
.admin-theme {
    /* Same as root for consistency in premium brand */
    --portal-primary: #6A0DAD;
    --portal-secondary: #FF0066;
    --portal-bg: #F5F5F7;
    --portal-card-bg: #FFFFFF;
    --portal-text: #1d1d1f;
    --portal-font-title: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --portal-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
}


/* Global Size Utilities */
.size-12 {
    width: 12px !important;
    height: 12px !important;
}

.size-14 {
    width: 14px !important;
    height: 14px !important;
}

.size-16 {
    width: 16px !important;
    height: 16px !important;
}

.size-18 {
    width: 18px !important;
    height: 18px !important;
}

.size-20 {
    width: 20px !important;
    height: 20px !important;
}

.size-24 {
    width: 24px !important;
    height: 24px !important;
}

.size-28 {
    width: 28px !important;
    height: 28px !important;
}

.size-32 {
    width: 32px !important;
    height: 32px !important;
}

.size-40 {
    width: 40px !important;
    height: 40px !important;
}

.price-tooltip {
    background: var(--portal-secondary);
    border: none;
    color: white;
    font-weight: 700;
    border-radius: 8px;
    padding: 2px 8px;
    font-size: 0.7rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.price-tooltip:before {
    border-top-color: var(--portal-secondary) !important;
}

.spin {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


body {
    background-color: var(--portal-bg);
    color: var(--portal-text);
    font-family: var(--portal-font-body);
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

body.map-view-active #global-footer {
    display: none !important;
}

body.map-view-active .main-content {
    padding-bottom: 0 !important;
}



h1,
h2,
h3,
h4,
h5,
h6,
.fw-title {
    font-family: var(--portal-font-title);
    color: var(--portal-primary);
    font-weight: 700;
}

/* Sticky Header with Blur */
.navbar-portal {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    height: 68px;
    padding: 0;
    display: flex;
    align-items: center;
}

.active-view {
    background: var(--portal-primary) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 10px rgba(106, 13, 173, 0.2) !important;
}

.active-view i {
    color: #ffffff !important;
}


/* Logo Styles */
.logo-sityoprop {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: var(--portal-font-title);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -1px;

    color: #333;
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 10px 0;
}

.tiny-nav {
    font-size: 11px;
    letter-spacing: -0.1px;
    margin-top: 5px;
    font-weight: 500;
    white-space: nowrap;
}

.mobile-nav-item i {
    width: 24px !important;
    height: 24px !important;
    stroke-width: 1.5px;
}



.logo-sityoprop .logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--portal-primary), var(--portal-secondary));
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z"/><path d="M3 6h18"/><path d="M16 10a4 4 0 0 1-8 0"/><path d="m9 16 3-3 3 3v4H9z"/></svg>') no-repeat center;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z"/><path d="M3 6h18"/><path d="M16 10a4 4 0 0 1-8 0"/><path d="m9 16 3-3 3 3v4H9z"/></svg>') no-repeat center;
}

.logo-sityoprop span {
    color: var(--portal-secondary);
}

/* Premium Navigation Links */
.nav-links-portal {
    padding: 0 2rem;
}

.nav-links-portal a {
    color: #1d1d1f;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    margin: 0 1.25rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
}

.nav-links-portal a:hover {
    opacity: 1;
    color: var(--portal-primary);
}

.nav-links-portal a.active {
    opacity: 1;
    color: var(--portal-primary);
    font-weight: 600;
}

.header-actions {
    min-width: 200px;
    justify-content: flex-end;
}

/* E-commerce Style Cards */
.card-sityoprop {
    background: var(--portal-card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-sityoprop:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.card-image-box {
    position: relative;
    width: 100%;
    height: 200px;
    background: #eee;
    overflow: hidden;
}

.card-sityoprop img,
.card-sityoprop .property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Header & Logo */
.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .logo-img {
        height: 48px !important;
    }

    .navbar-portal {
        padding: 0 !important;
        height: 64px !important;
    }

    .header-container {
        padding: 0 20px;
    }
}

.card-sityoprop:hover img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.25rem;
    flex-grow: 1;
}

/* Action Buttons (CTAs) */
.btn-cta {
    background-color: var(--portal-secondary);
    color: white !important;
    font-weight: 700;
    border-radius: var(--radius-lg, 12px);
    padding: 0.75rem 2rem;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.2);
}


.btn-cta:hover {
    background-color: #e6005c;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 0, 102, 0.3);
}

.btn-nav-outline {
    border: 2px solid var(--portal-primary);
    color: var(--portal-primary) !important;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-nav-outline:hover {
    background: var(--portal-primary);
    color: white !important;
}

/* Sidebar Dashboard (Super Admin & Agencies) */
.sidebar {
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.7);
    /* Translucent */
    backdrop-filter: blur(10px);
    /* Glassmorphism */
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    background: transparent;
    /* No more solid purple */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}


.sidebar-nav {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    padding-bottom: 2rem !important;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    margin: 0.25rem 0;
    border-radius: 8px;
    color: #555;
    text-decoration: none;
    gap: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar-nav .nav-item:hover,
.sidebar-nav .nav-item.active {
    background: rgba(0, 113, 227, 0.08);
    color: var(--portal-primary);
}

.sidebar-nav .nav-item.active {
    font-weight: 700;
    border-left: 4px solid var(--portal-primary);
    border-radius: 4px 12px 12px 4px;
}

/* Main Content with Sidebar */
.main-content.with-sidebar {
    margin-left: 280px;
    padding: 2.5rem;
}

/* Mobile Nav Styles (PWA Aesthetic) */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
    background: transparent;
    display: none;
    /* Default hidden */
    justify-content: center;
    align-items: flex-end;
    /* Pin to bottom */
    z-index: 4500;
    padding-bottom: 0;
    margin-bottom: 0;
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .mobile-nav {
        display: flex;
    }
}

.mobile-nav-container {
    width: 100%;
    max-width: none;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    /* Only top border when flush */
    border-radius: 0;
    /* Flush with bottom */
    display: flex;
    justify-content: space-around;
    align-items: center;
    pointer-events: auto;
    padding: 5px 10px env(safe-area-inset-bottom) 10px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 0 !important;
}


.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #8E8E93;
    font-size: 10px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-grow: 1;
    padding: 8px 0;
}

.mobile-nav-item i {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
    stroke-width: 2.2px;
}

.mobile-nav-item.active {
    color: var(--portal-secondary);
}

.mobile-nav-item:active {
    transform: scale(0.92);
    opacity: 0.7;
}

@media (max-width: 768px) {
    .main-content {
        padding-bottom: 90px !important;
    }
}

/* Apple Radius Utilities */
.rounded-apple {
    border-radius: 18px !important;
}

.rounded-apple-sm {
    border-radius: 12px !important;
}

/* Utilities adjusted for Apple Blue */
.x-small {
    font-size: 0.75rem;
}

.tiny {
    font-size: 0.65rem;
}

.text-morado,
.text-accent {
    color: #6A0DAD !important;
}

.text-rosa {
    color: #FF0066 !important;
}

.bg-morado,
.bg-accent {
    background-color: #6A0DAD !important;
}

.bg-rosa {
    background-color: #FF0066 !important;
}

.bg-morado-light,
.bg-accent-light {
    background-color: rgba(106, 13, 173, 0.1) !important;
    color: #6A0DAD !important;
}

.bg-rosa-light {
    background-color: rgba(255, 0, 102, 0.1) !important;
    color: #FF0066 !important;
}

.fill-rosa {
    fill: #FF0066 !important;
    color: #FF0066 !important;
}

.border-accent {
    border-color: #6A0DAD !important;
}

.btn-accent {
    background-color: #6A0DAD !important;
    color: white !important;
}

.btn-accent-light {
    background-color: rgba(106, 13, 173, 0.05) !important;
    color: #6A0DAD !important;
}

.btn-outline-accent-pill {
    border: 1px solid #6A0DAD !important;
    color: #6A0DAD !important;
    border-radius: 50px !important;
    padding: 5px 15px;
    font-weight: 600;
    font-size: 0.85rem;
    background: transparent;
}



/* HTMX/Bootstrap Modal Fix */
.modal-backdrop.show {
    opacity: 0.5;
}

body.modal-open {
    overflow: hidden;
}


@media (max-width: 768px) {
    .main-content.with-sidebar {
        margin-left: 0;
        padding: 1.5rem;
        padding-bottom: 90px;
    }

    .card-sityoprop.flex-md-row {
        flex-direction: column !important;
    }

    .card-image-box {
        width: 100% !important;
        min-width: 100% !important;
    }
}

/* Guided Search */
.guided-item {
    text-decoration: none;
    color: var(--portal-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100px;
    transition: all 0.3s ease;
}

.guided-item .icon-box {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--portal-secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.guided-item:hover .icon-box {
    transform: translateY(-8px);
    background: var(--portal-secondary);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 0, 102, 0.2);
}

.guided-item span {
    font-size: 0.8rem;
    font-weight: 600;
}

/* PRINT STYLES FOR PROPERTY SHEET */
@media print {

    /* Hide everything unnecessary */
    header,
    footer,
    .sidebar,
    .mobile-nav,
    .breadcrumb,
    .btn,
    .share-section,
    #property-map,
    #nearby-section,
    .modal,
    .alert,
    .badge i,
    .spinner-border,
    .zoom-btn {
        display: none !important;
    }

    body {
        background: white !important;
        font-size: 11pt;
        color: #000;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    main {
        margin: 0 !important;
        padding: 0 !important;
    }

    .col-md-8,
    .col-md-4 {
        width: 100% !important;
        float: none !important;
    }

    /* Format Property Sheet */
    .bg-white {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .page-break-avoid {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .d-print-flex {
        display: flex !important;
    }

    .h3,
    .h2,
    .fw-bold {
        color: #000 !important;
    }

    img {
        max-width: 100% !important;
        height: auto !important;
        border-radius: 12px !important;
    }

    .gallery-cursor {
        display: block !important;
        height: auto !important;
    }

    .row {
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .col-6,
    .col-md-3 {
        width: 23% !important;
        display: inline-block !important;
        margin: 1% !important;
    }

    .badge {
        background: #f0f0f0 !important;
        color: #000 !important;
        border: 1px solid #ddd !important;
    }

    /* Branding in print */
    .container::before {
        content: "SITYOPROP - FICHA DE PROPIEDAD";
        display: block;
        text-align: center;
        font-weight: bold;
        font-size: 16pt;
        border-bottom: 2px solid #000;
        margin-bottom: 30px;
        padding-bottom: 10px;
    }

    .container::after {
        content: "Para más información y fotos visite: www.sityoprop.com.ar";
        display: block;
        text-align: center;
        margin-top: 50px;
        font-size: 10pt;
        border-top: 1px solid #eee;
        padding-top: 10px;
    }
}

/* Global Font Size Fix */
.leading-relaxed {
    line-height: 1.8 !important;
    font-size: 16px !important;
    color: #444;
}

/* Modal Centering Fix */
@media (max-width: 576px) {
    .modal-dialog {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
        min-height: 100svh !important;
    }

    .modal-content {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Offcanvas Bottom for Mobile Filters */
    #offcanvasFilters.offcanvas-end {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        height: 85vh !important;
        border-radius: 30px 30px 0 0 !important;
        transform: translateY(100%);
        border-left: none !important;
    }

    #offcanvasFilters.offcanvas-end.show {
        transform: none;
    }
}

/* Global HTMX Loading Bar */
.htmx-global-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 99999;
    background-color: transparent;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.htmx-global-progress-bar {
    width: 30%;
    height: 100%;
    background-color: var(--portal-secondary);
    box-shadow: 0 0 10px var(--portal-secondary);
    animation: htmx-progress-animation 1.5s infinite linear;
}

@keyframes htmx-progress-animation {
    0% {
        width: 5%;
        margin-left: -10%;
    }

    50% {
        width: 50%;
        margin-left: 25%;
    }

    100% {
        width: 5%;
        margin-left: 105%;
    }
}

/* Apple Human Interface Design System Utilities */
.card-apple {
    background-color: #FFFFFF;
    border-radius: 18px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.rounded-apple {
    border-radius: 12px !important;
}

.rounded-apple-lg {
    border-radius: 18px !important;
}

.border-faint {
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.text-blue {
    color: #0071E3 !important;
}
.bg-blue-subtle {
    background-color: rgba(0, 113, 227, 0.1) !important;
}

.hover-scale-sm:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

.swal2-container {
    z-index: 9999 !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    #global-footer {
        display: none !important;
    }
    #property-map {
        pointer-events: none !important;
    }
}

/* Interactive Feature Capsules */
.feature-capsules-wrapper {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: -20px;
    margin-bottom: 25px;
    padding: 0 10px;
}

@media (max-width: 768px) {
    .feature-capsules-wrapper {
        justify-content: space-between;
        flex-wrap: nowrap;
        margin-top: 10px;
        margin-bottom: 15px;
        padding: 0;
        width: 100%;
        display: flex;
        gap: 6px;
    }
    .feature-capsules-wrapper::-webkit-scrollbar {
        display: none;
    }
    .feature-capsule {
        flex: 1;
        justify-content: center;
        padding: 8px 4px;
        font-size: 0.72rem;
        gap: 4px;
        min-width: 0;
    }
    .feature-capsule i {
        width: 14px !important;
        height: 14px !important;
    }
}

/* Custom icon animations for attention grabbing */
.feature-capsule[data-type="natural"] i {
    animation: sparklesPulse 3s ease-in-out infinite;
}
.feature-capsule[data-type="geo"] i {
    animation: mapTilt 4s ease-in-out infinite;
}
.feature-capsule[data-type="match"] i {
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes sparklesPulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.25) rotate(15deg); opacity: 1; }
}

@keyframes mapTilt {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    40% { transform: scale(1.05); }
    55% { transform: scale(1.25); }
}


.feature-capsule {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444446;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    animation: capsuleFloat 4s ease-in-out infinite;
}

/* Stagger floating animations for visual variety */
.feature-capsule:nth-child(1) { animation-delay: 0s; }
.feature-capsule:nth-child(2) { animation-delay: 0.5s; }
.feature-capsule:nth-child(3) { animation-delay: 1s; }

.feature-capsule:hover {
    transform: translateY(-3px) scale(1.03) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    color: #1d1d1f;
}

.feature-capsule.active {
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px) scale(1.02);
}

/* Specific theme highlights for active/hover */
.feature-capsule[data-type="natural"].active,
.feature-capsule[data-type="natural"]:hover {
    border-color: #FF0066;
    color: #FF0066;
}
.feature-capsule[data-type="geo"].active,
.feature-capsule[data-type="geo"]:hover {
    border-color: #0071E3;
    color: #0071E3;
}
.feature-capsule[data-type="match"].active,
.feature-capsule[data-type="match"]:hover {
    border-color: #6A0DAD;
    color: #6A0DAD;
}

.feature-capsule i {
    transition: transform 0.3s ease;
}
.feature-capsule:hover i {
    transform: scale(1.2);
}

@keyframes capsuleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Capsule detail panel */
.capsules-info-panel {
    max-width: 850px;
    margin: 0 auto 30px auto;
    border-radius: 18px;
    overflow: hidden;
    height: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.capsules-info-panel.show {
    height: auto;
    opacity: 1;
    visibility: visible;
    margin-bottom: 35px;
}

.capsule-info-card {
    display: none;
    padding: 24px;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: left;
    position: relative;
    overflow: hidden;
    animation: slideDownFade 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.capsule-info-card.active {
    display: block;
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.capsule-card-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.15;
    pointer-events: none;
}

.capsule-info-card[data-type="natural"] .capsule-card-glow { background: #FF0066; }
.capsule-info-card[data-type="geo"] .capsule-card-glow { background: #0071E3; }
.capsule-info-card[data-type="match"] .capsule-card-glow { background: #6A0DAD; }

/* Pro Guide Styles */
.btn-pro-guide {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
}
.btn-pro-guide:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 20px rgba(106, 13, 173, 0.15) !important;
    border-color: rgba(255, 0, 102, 0.25) !important;
}

.pro-feature-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 20px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.pro-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(106, 13, 173, 0.15);
}

.pro-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}