/* ========================================
   CRO & URGENCY COMPONENTS
   ======================================== */

@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Hero Background Override (Bypassing sticky style.css cache) */
.location-hero-premium {
    background: linear-gradient(135deg, #050505 0%, #000000 100%) !important;
    color: #ffffff !important;
}
.hero-title-premium { color: #ffffff !important; }
.hero-subtitle-premium { color: rgba(255,255,255,0.8) !important; }

.scarcity-ticker {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.1); 
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-family: var(--font-body);
    color: #ffffff;
    margin-bottom: 1rem;
}

.pulsing-dot {
    width: 8px;
    height: 8px;
    background-color: #ef4444; 
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    animation: pulse-red 2s infinite;
}

.scarcity-ticker strong {
    margin-right: 4px;
    font-weight: 600;
}

.iht-warning-box {
    background-color: #fffbeb;
    border-left: 4px solid #f59e0b;
    border-radius: 4px;
    padding: 20px;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-family: var(--font-body);
}

.iht-warning-icon {
    font-size: 24px;
    line-height: 1;
}

.iht-warning-content h4 {
    margin: 0 0 8px 0;
    color: #b45309; 
    font-size: 1.125rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

.iht-warning-content p {
    margin: 0;
    color: #78350f; 
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   HERO MATCHER (Interactive CTA)
   ======================================== */

.hero-matcher {
    margin-top: 1.5rem;
}

.matcher-prompt {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.875rem;
    letter-spacing: 0.01em;
}

.matcher-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    justify-content: center;
}

.matcher-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(201,169,97,0.5); /* Semi-transparent gold border */
    border-radius: 8px; /* Less rounded, more modern button feel */
    color: #fff;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
}

.matcher-btn:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,169,97,0.3);
}

.matcher-btn:active {
    transform: translateY(0);
}

/* Add a subtle indicator that it leads somewhere */
.matcher-btn::after {
    content: "→";
    opacity: 0;
    transition: all 0.2s;
    transform: translateX(-5px);
}

.matcher-btn:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.matcher-step-hidden {
    display: none;
}

.matcher-confirm {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1rem;
}

.matcher-confirm strong {
    color: var(--color-gold);
}

.matcher-cta {
    display: inline-block;
    margin-bottom: 0.75rem;
    animation: matcherPulse 2.5s ease-in-out infinite;
}

@keyframes matcherPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201,169,97,0.5); }
    50% { box-shadow: 0 0 0 8px rgba(201,169,97,0); }
}

.matcher-back {
    background: none;
    border: none;
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    margin: 0 auto 0.5rem;
    padding: 0;
    transition: color 0.2s;
}

.matcher-back:hover {
    color: rgba(255,255,255,0.85);
}

@media (max-width: 640px) {
    .matcher-options {
        flex-direction: column;
        align-items: stretch;
    }
    .matcher-btn {
        text-align: center;
    }
}

/* ========================================
   LIVE MATCHING LOADER & SPINNER
   ======================================== */
#matcher-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    animation: fadeIn 0.4s ease-out;
}

.spinner-ring {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--color-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(201, 169, 97, 0.2);
}

.loader-status {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    min-height: 28px;
    transition: opacity 0.15s ease-in-out;
}

.loader-details {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
}

/* ========================================
   STICKY CTA PULSE DOT
   ======================================== */
.sticky-cta-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #10b981;
    border-radius: 50%;
    animation: pulse-green 1.8s infinite;
}

/* ========================================
   PLACEHOLDER LISTING CTAs
   ======================================== */
.ifa-row-placeholder {
    opacity: 0.9 !important;
}

.ph-cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.btn-match-similar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #1a2b4b;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 14px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
    text-decoration: none !important;
}

.btn-match-similar:hover {
    background-color: var(--color-gold);
    color: #000000 !important;
    border-color: var(--color-gold);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(201, 169, 97, 0.25);
}

/* ========================================
   RESPONSIVE LAYOUTS & ANIMATIONS
   ======================================== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-green {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.8); opacity: 0; }
    100% { transform: scale(0.95); opacity: 0; }
}

@media (max-width: 640px) {
    .ifa-row-placeholder {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .ph-cta-wrapper {
        align-items: stretch;
    }
    
    .btn-match-similar {
        justify-content: center;
        text-align: center;
    }
}