/**
 * Enhanced Featured Properties Component for Home Page
 * Premium design with refined animations and visual appeal
 * @version 2.1.0
 */

/* Featured Properties Section - Premium Background */
.featured-properties-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle decorative pattern */
.featured-properties-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

[data-theme="dark"] .featured-properties-section {
    background: #000000 !important;
}

[data-theme="dark"] .featured-properties-section::before {
    background-image:
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
}

.featured-properties-section .container {
    position: relative;
    z-index: 1;
}

/* Section Header - Premium Styling */
.featured-section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.featured-section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--card-text, #0f172a);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    display: inline-block;
    position: relative;
}

/* Gold accent underline */
.featured-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    border-radius: 2px;
}

[data-theme="dark"] .featured-section-title {
    color: #ffffff !important;
}

.featured-section-subtitle {
    font-size: 1.15rem;
    color: var(--card-text-secondary, #64748b);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

[data-theme="dark"] .featured-section-subtitle {
    color: #e0e0e0 !important;
}

[data-theme="dark"] .featured-property-card {
    background: #0a0a0a !important;
    border-color: #2a2a2a !important;
    color: #ffffff !important;
}

[data-theme="dark"] .featured-card-content,
[data-theme="dark"] .featured-card-title,
[data-theme="dark"] .featured-card-location,
[data-theme="dark"] .featured-card-price {
    color: #ffffff !important;
}

/* Enhanced Property Grid for Featured - Full Height Cards */
.featured-properties-grid {
    display: grid;
    gap: 30px;
    /* Mobile: Single column for one-at-a-time display */
    grid-template-columns: 1fr;
    margin-bottom: 40px;
    align-items: stretch;
    /* Ensure all cards have same height */
    /* Enable smooth scroll reveal animations */
    position: relative;
}

/* Small tablets and up: Allow 2 columns */
@media (min-width: 640px) {
    .featured-properties-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (min-width: 768px) {
    .featured-properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
    
    /* Tablet: Cards animate in pairs */
    .featured-properties-grid .reveal-item--up:nth-child(odd) {
        transform: translateY(50px) translateX(-15px) scale(0.96);
    }
    
    .featured-properties-grid .reveal-item--up:nth-child(even) {
        transform: translateY(50px) translateX(15px) scale(0.96);
    }
    
    .featured-properties-grid .reveal-item--up:nth-child(odd).revealed,
    .featured-properties-grid .reveal-item--up:nth-child(even).revealed {
        transform: translateY(0) translateX(0) scale(1);
    }
}

@media (min-width: 1200px) {
    .featured-properties-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

/* Large screens: 3 columns, wider container so cards grow horizontally */
@media (min-width: 1400px) {
    .featured-properties-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

@media (min-width: 1600px) {
    .featured-properties-grid {
        gap: 44px;
    }
}

@media (min-width: 1920px) {
    .featured-properties-grid {
        gap: 48px;
    }
}

/* Expand the section container at large screens so cards grow wider */
@media (min-width: 1400px) {
    .featured-properties-section .container {
        max-width: min(90vw, 1560px);
    }
}

@media (min-width: 1600px) {
    .featured-properties-section .container {
        max-width: min(90vw, 1700px);
    }
}

@media (min-width: 1920px) {
    .featured-properties-section .container {
        max-width: min(90vw, 1840px);
    }
}

/* Card height comes from .featured-property-card-image (aspect-ratio).
   Do not set min-height on the overlay — it created empty white space below images. */

/* Enhanced Featured Property Cards */
.featured-property-card {
    background: var(--card-bg, #ffffff);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow, 0 8px 32px rgba(0, 0, 0, 0.12));
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--card-border, transparent);
    /* will-change moved into @media (hover: hover) :hover (see PERF note in
       property-cards.css). Each unconditional will-change creates a GPU
       layer, and 12 featured cards × 1 layer each is real scroll cost. */
    backface-visibility: hidden;
    transform: translateZ(0);
}

@media (hover: hover) {
    .featured-property-card:hover { will-change: transform; }
}

.featured-property-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--card-shadow-hover, 0 20px 48px rgba(0, 0, 0, 0.2));
}

/* Featured Card Image */
.featured-card-image {
    position: relative;
    width: 100%;
    height: 340px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

@media (min-width: 1200px) {
    .featured-card-image {
        height: 320px;
    }
}

@media (min-width: 1600px) {
    .featured-card-image {
        height: 350px;
    }
}

.featured-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-property-card:hover .featured-card-image img {
    transform: scale(1.08);
}

/* Featured Badge */
.featured-badge-enhanced {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, var(--accent-color, #d4af37) 0%, #b49225 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
    z-index: 2;
    animation: featured-pulse 2s infinite;
}

@keyframes featured-pulse {

    0%,
    100% {
        box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 6px 24px rgba(212, 175, 55, 0.6);
        transform: scale(1.05);
    }
}

/* Featured Card Content */
.featured-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 1200px) {
    .featured-card-content {
        padding: 24px;
        gap: 14px;
    }
}

/* Featured Property Title */
.featured-property-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

@media (min-width: 1200px) {
    .featured-property-title {
        font-size: 1.35rem;
    }
}

.featured-property-title a {
    color: var(--card-text);
    text-decoration: none;
}

.featured-property-title a:hover {
    color: var(--accent-color, #d4af37);
}

/* Featured Property Location */
.featured-property-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--card-text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.featured-property-location i {
    color: var(--accent-color, #d4af37);
    font-size: 0.85rem;
}

/* Featured Property Features */
.featured-property-features {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
}

.featured-feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(var(--accent-color-rgb, 212, 175, 55), 0.1);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--card-text);
    border: 1px solid rgba(var(--accent-color-rgb, 212, 175, 55), 0.2);
}

.featured-feature-item i {
    color: var(--accent-color, #d4af37);
    font-size: 1rem;
}

/* Featured Property Price */
.featured-property-price {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 16px;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 700;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-property-price-small {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 500;
    margin-left: 4px;
}

/* View All Properties Button */
.view-all-properties {
    text-align: center;
    margin-top: 50px;
}

/* pub-btn--accent handles colors/shadows; keep pill shape + icon slide */
.view-all-btn {
    border-radius: 50px;
    padding: 0.875rem 2rem;
    font-size: 0.9rem;
}

.view-all-btn .pub-btn__icon {
    transition: transform 0.25s ease;
}

.view-all-btn:hover .pub-btn__icon {
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .featured-properties-section {
        padding: 40px 0;
    }

    .featured-section-title {
        font-size: 2rem;
    }

    .featured-section-subtitle {
        font-size: 1rem;
    }

    .featured-properties-grid {
        gap: 35px;
        /* Ensure cards show one at a time on mobile */
        grid-template-columns: 1fr !important;
    }

    /* Mobile: Each card should animate individually as it scrolls into view */
    .featured-property-card-overlay {
        /* More space between cards on mobile for better animation visibility */
        margin-bottom: 0;
    }

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

    .featured-card-content {
        padding: 16px;
        gap: 10px;
    }

    .featured-property-title {
        font-size: 1.1rem;
    }

    .view-all-btn {
        padding: 14px 28px;
        font-size: 0.9rem;
    }
}

/* Mobile touch feedback */
@media (max-width: 768px) {
    .featured-property-card-overlay:active,
    .featured-property-card:active {
        transform: translateY(-6px) scale(0.98) !important;
        transition: transform 0.15s ease !important;
    }
    
    /* Ensure revealed cards maintain their state during touch */
    .featured-property-card-overlay.revealed:active {
        transform: translateY(-6px) scale(0.98) !important;
    }
}

/* Scroll reveal integration - use reveal-item classes instead of inline animations */
.featured-property-card,
.featured-property-card-overlay {
    /* Animation handled by scroll-reveal system */
    /* Ensure smooth reveal animation */
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Enhanced animation for featured property cards */
.featured-property-card-overlay.reveal-item--up {
    /* More pronounced initial state for better visibility */
    opacity: 0;
    transform: translateY(50px) scale(0.96);
}

.featured-property-card-overlay.reveal-item--up.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Desktop: Alternating animation directions for visual interest */
@media (min-width: 1200px) {
    .featured-properties-grid .reveal-item--up:nth-child(odd) {
        transform: translateY(50px) translateX(-20px) scale(0.96);
    }
    
    .featured-properties-grid .reveal-item--up:nth-child(even) {
        transform: translateY(50px) translateX(20px) scale(0.96);
    }
    
    .featured-properties-grid .reveal-item--up:nth-child(odd).revealed,
    .featured-properties-grid .reveal-item--up:nth-child(even).revealed {
        transform: translateY(0) translateX(0) scale(1);
    }
}

/* Performance Optimization */
.featured-card-image,
.featured-property-card {
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    .featured-property-card,
    .featured-badge-enhanced,
    .featured-card-image img,
    .view-all-btn {
        animation: none;
        transition: none;
    }

    .featured-property-card:hover {
        transform: none;
    }

    .featured-property-card:hover .featured-card-image img {
        transform: none;
    }
}/**
 * Featured Properties - Enhanced Animations
 * 
 * Specialized animations for featured property cards with optimized
 * behavior for mobile (one card at a time) and desktop (grid layout).
 */

/* ==========================================================================
   FEATURED PROPERTIES GRID ANIMATIONS
   ========================================================================== */

.featured-properties-grid {
    /* Ensure proper stacking context for animations */
    position: relative;
    z-index: 1;
}

/* Individual card animation states */
.featured-property-card-overlay.reveal-item {
    /* Initial hidden state */
    opacity: 0;
    /* Smooth transition - reduced duration for better performance */
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* GPU acceleration */
    backface-visibility: hidden;
    transform: translateZ(0);
    /* will-change added via JS when animation starts */
}

.featured-property-card-overlay.reveal-item.animating {
    will-change: opacity, transform;
}

/* Revealed state */
.featured-property-card-overlay.reveal-item.revealed {
    opacity: 1;
    will-change: auto; /* Remove will-change after animation */
}

/* ==========================================================================
   MOBILE ANIMATIONS (One Card at a Time)
   ========================================================================== */

@media (max-width: 768px) {
    /* More pronounced animation on mobile for better visibility */
    /* Each card animates individually as it scrolls into view */
    .featured-property-card-overlay.reveal-item--up {
        transform: translateY(70px) scale(0.93);
        opacity: 0;
    }
    
    .featured-property-card-overlay.reveal-item--up.revealed {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    
    /* Ensure each card has enough space to animate individually */
    .featured-property-card-overlay {
        margin-bottom: 35px;
    }
    
    /* Faster animation on mobile for better performance */
    .featured-property-card-overlay.reveal-item {
        transition-duration: 0.5s;
        transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    /* Disable animations when tab is hidden */
    body.tab-hidden .featured-property-card-overlay.reveal-item {
        transition: none !important;
    }
    
    /* Enhanced stagger delays for mobile - each card animates as it scrolls into view */
    /* On mobile, cards show one at a time, so delays are shorter */
    .featured-properties-grid .reveal-item--delay-1 {
        transition-delay: 0.1s;
    }
    
    .featured-properties-grid .reveal-item--delay-2 {
        transition-delay: 0.2s;
    }
    
    .featured-properties-grid .reveal-item--delay-3 {
        transition-delay: 0.3s;
    }
    
    .featured-properties-grid .reveal-item--delay-4 {
        transition-delay: 0.4s;
    }
    
    .featured-properties-grid .reveal-item--delay-5 {
        transition-delay: 0.5s;
    }
    
    .featured-properties-grid .reveal-item--delay-6 {
        transition-delay: 0.6s;
    }
    
    /* Ensure grid shows one card at a time on mobile */
    .featured-properties-grid {
        grid-template-columns: 1fr !important;
        gap: 35px;
    }
}

/* ==========================================================================
   TABLET ANIMATIONS (2 Columns)
   ========================================================================== */

@media (min-width: 768px) and (max-width: 1199px) {
    /* Alternating left/right animation for visual interest */
    .featured-properties-grid .reveal-item--up:nth-child(odd) {
        transform: translateY(50px) translateX(-15px) scale(0.96);
    }
    
    .featured-properties-grid .reveal-item--up:nth-child(even) {
        transform: translateY(50px) translateX(15px) scale(0.96);
    }
    
    .featured-properties-grid .reveal-item--up:nth-child(odd).revealed,
    .featured-properties-grid .reveal-item--up:nth-child(even).revealed {
        transform: translateY(0) translateX(0) scale(1);
    }
}

/* ==========================================================================
   DESKTOP ANIMATIONS (3 Columns)
   ========================================================================== */

@media (min-width: 1200px) {
    /* More pronounced alternating animation for desktop */
    .featured-properties-grid .reveal-item--up:nth-child(3n+1) {
        /* First column: slide from left */
        transform: translateY(50px) translateX(-20px) scale(0.96);
    }
    
    .featured-properties-grid .reveal-item--up:nth-child(3n+2) {
        /* Middle column: slide from bottom */
        transform: translateY(50px) scale(0.96);
    }
    
    .featured-properties-grid .reveal-item--up:nth-child(3n) {
        /* Third column: slide from right */
        transform: translateY(50px) translateX(20px) scale(0.96);
    }
    
    .featured-properties-grid .reveal-item--up:nth-child(3n+1).revealed,
    .featured-properties-grid .reveal-item--up:nth-child(3n+2).revealed,
    .featured-properties-grid .reveal-item--up:nth-child(3n).revealed {
        transform: translateY(0) translateX(0) scale(1);
    }
}

/* ==========================================================================
   LARGE DESKTOP ANIMATIONS (3+ Columns)
   ========================================================================== */

@media (min-width: 1600px) {
    /* Even more refined animation for large screens */
    .featured-property-card-overlay.reveal-item--up {
        transform: translateY(40px) scale(0.97);
    }
    
    .featured-property-card-overlay.reveal-item--up.revealed {
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================================
   PERFORMANCE OPTIMIZATIONS
   ========================================================================== */

.featured-property-card-overlay.reveal-item {
    /* GPU acceleration */
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   REDUCED MOTION SUPPORT
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .featured-property-card-overlay.reveal-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .featured-property-card-overlay.reveal-item.revealed {
        opacity: 1 !important;
        transform: none !important;
    }
}
/**
 * Featured Property Card with Liquid Glass Overlay
 * Apple-style glassmorphism design for featured properties on home page
 * 
 * Design Principles:
 * - Bigger images (full card height, minimal white space)
 * - Compact information overlay with liquid glass effect
 * - Information appears on hover (desktop) / click (mobile)
 * - Professional, modern, minimalist
 */

/* ==========================================================================
   Base Card Structure - Full Height Image
   ========================================================================== */

.featured-property-card-overlay {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--color-background, #fff);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    /* Height follows the image block (aspect-ratio). Avoid min-height here or
       flex leaves an empty band of card background below the image. */
    height: auto;
    min-height: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.featured-property-card-overlay:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

/* ==========================================================================
   Robust full-bleed guarantee (TASK-36)
   The card is a flex column. If any context gives the card height beyond the
   image block's intrinsic aspect-ratio — equal-height grid rows, or a
   breakpoint mismatch between the several fragmented card stylesheets — the
   image block must GROW to fill the card instead of leaving an empty band of
   card background below the photo (the reported "image not full size" bug).
   `flex: 1 1 auto` makes the image block absorb all available card height;
   the img inside is already height:100% + object-fit:cover, so it stays
   full-bleed. The descendant selector (0,2,0) outranks the plain
   `.featured-property-card-image { flex: 0 0 auto }` rules in this and the
   other card stylesheets, so it wins regardless of CSS load order.
   ========================================================================== */
.featured-property-card-overlay .featured-property-card-image {
    flex: 1 1 auto;
    min-height: 360px;
}

@media (min-width: 768px) {
    .featured-property-card-overlay .featured-property-card-image {
        min-height: 420px;
    }
}

@media (max-width: 576px) {
    .featured-property-card-overlay .featured-property-card-image {
        min-height: 320px;
    }
}

/* ==========================================================================
   Image Container - Big, Beautiful, Full Height
   ========================================================================== */

.featured-property-card-image {
    position: relative;
    width: 100%;
    flex: 0 0 auto;
    aspect-ratio: 4 / 5;
    min-height: 360px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-gray-200, #e5e7eb) 0%, var(--color-gray-300, #d1d5db) 100%);
}

@media (min-width: 768px) {
    .featured-property-card-image {
        aspect-ratio: 3 / 4;
        min-height: 420px;
    }
}

@media (max-width: 576px) {
    .featured-property-card-image {
        aspect-ratio: 4 / 5;
        min-height: 320px;
    }
}

/* Images - Full Coverage */
.featured-property-card-image img,
.featured-property-card-image .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.featured-property-card-overlay:hover .featured-property-card-image img,
.featured-property-card-overlay:hover .card-image {
    transform: scale(1.08);
}

/* ==========================================================================
   Carousel Styles (Reuse from property-card-overlay)
   ========================================================================== */

.featured-property-card-image .property-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.featured-property-card-image .carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.featured-property-card-image .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.featured-property-card-image .carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.featured-property-card-image .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Carousel Navigation */
.featured-property-card-image .carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.featured-property-card-overlay:hover .carousel-nav {
    opacity: 1;
}

.featured-property-card-image .carousel-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.featured-property-card-image .carousel-prev {
    left: 1rem;
}

.featured-property-card-image .carousel-next {
    right: 1rem;
}

.featured-property-card-image .carousel-nav i {
    font-size: 0.95rem;
    color: var(--color-primary, #0c2340);
}

/* Carousel Indicators - always visible so auto-play progress is noticeable */
.featured-property-card-image .carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 15;
    pointer-events: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.featured-property-card-overlay:hover .featured-property-card-image .carousel-indicators {
    opacity: 1;
}

.featured-property-card-image .carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
}

.featured-property-card-image .carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.featured-property-card-image .carousel-indicator.active {
    background: rgba(255, 255, 255, 1);
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 991px) {
    .featured-property-card-image .carousel-nav {
        opacity: 1;
        background: rgba(255, 255, 255, 0.85);
    }
}

/* ==========================================================================
   Badges and Favorite Button
   ========================================================================== */

.featured-property-card-image .property-card-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.featured-property-card-image .property-badge {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.45rem 0.8rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-primary, #0c2340);
}

.featured-property-card-image .property-badge.featured {
    background: linear-gradient(135deg, var(--color-accent, #d4af37), #f4d03f);
    color: white;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
}

.featured-property-card-image .property-badge i {
    font-size: 0.7rem;
}

/* Favorite Button */
.featured-property-card-image .favorite-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.featured-property-card-image .favorite-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.featured-property-card-image .favorite-btn i {
    font-size: 1.15rem;
    color: var(--color-accent, #d4af37);
    transition: all 0.2s ease;
}

/* Ensure favorite button is visible for non-authenticated users */
body:not(.user-authenticated) .featured-property-card-image .favorite-btn {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    pointer-events: auto !important;
    z-index: 999 !important; /* Ensure it's on top */
}

body:not(.user-authenticated) .featured-property-card-image .favorite-btn i {
    color: #ef4444 !important; /* Red color for visibility */
    opacity: 0.85 !important;
    display: inline-block !important;
}

/* Override any hide rules */
body:not(.user-authenticated) .featured-property-card-image .favorite-btn.hidden,
body:not(.user-authenticated) .featured-property-card-image .favorite-btn[style*="display: none"] {
    display: flex !important;
    visibility: visible !important;
}

.featured-property-card-image .favorite-btn.favorited i {
    color: #ef4444;
}

/* ==========================================================================
   Liquid Glass Information Overlay - Compact, Apple-style
   ========================================================================== */

.featured-property-glass-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1.5rem 1.75rem;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.72) 40%,
        rgba(0, 0, 0, 0.40) 70%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 3;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: flex-end;
    transition: background 0.35s ease;
}

/* Subtle hover enhancement — deepen gradient slightly */
.featured-property-card-overlay:hover .featured-property-glass-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.78) 40%,
        rgba(0, 0, 0, 0.50) 70%,
        rgba(0, 0, 0, 0) 100%
    );
}

/* Prevent overlay during carousel nav interaction */
.featured-property-card-overlay[data-carousel-interacting="true"] .featured-property-glass-overlay {
    pointer-events: none;
}

/* ==========================================================================
   Overlay Content - Compact Typography
   ========================================================================== */

/* Title - Compact (max 2 lines, never truncated mid-word) */
.glass-overlay-title {
    color: white;
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: opacity 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: normal;
    overflow-wrap: anywhere;
}

.featured-property-card-overlay:hover .glass-overlay-title {
    opacity: 0.95;
}

/* Location - Very Compact */
.glass-overlay-location {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem; /* Smaller */
    margin: 0;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.glass-overlay-location i {
    color: var(--color-accent, #d4af37);
    font-size: 0.75rem;
}

/* Features - Compact Row */
.glass-overlay-features {
    display: flex;
    gap: 0.5rem; /* Very tight gap */
    flex-wrap: wrap;
    margin: 0;
    align-items: center;
}

.glass-overlay-feature {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.8rem; /* Compact */
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.glass-overlay-feature i {
    color: var(--color-accent, #d4af37);
    font-size: 0.85rem;
}

/* Price - Compact Display */
.glass-overlay-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0;
    width: 100%;
    margin-top: 0.25rem;
}

/* Single Price */
.glass-overlay-price .price-amount-large {
    font-size: 1.6rem; /* Compact but prominent */
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: -0.03em;
    line-height: 1;
    white-space: nowrap;
}

.glass-overlay-price .price-type-small {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

/* Multiple Offers - Compact Grid */
.multiple-offers-glass {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    width: 100%;
}

.glass-price-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.glass-price-item .price-amount-glass {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.glass-badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
    line-height: 1.2;
}

.glass-badge.sale {
    background: rgba(239, 68, 68, 0.3);
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.glass-badge.rent {
    background: rgba(59, 130, 246, 0.3);
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.5);
}

.glass-badge.short {
    background: rgba(16, 185, 129, 0.3);
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(16, 185, 129, 0.5);
}

/* ==========================================================================
   Mobile Adjustments
   ========================================================================== */

/* Tablet (768-991px): always visible — consistent with desktop and mobile */
@media (min-width: 768px) and (max-width: 991px) {
    .featured-property-glass-overlay {
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
        visibility: visible !important;
    }
}

/* Phone (≤767px): always visible — no hover on touch screens */
@media (max-width: 767px) {
    .featured-property-glass-overlay {
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
        visibility: visible !important;
    }
}

@media (max-width: 991px) {
    /* Compact sizing applies to all mobile/tablet */
    .featured-property-glass-overlay {
        padding: 1.1rem 1.25rem 1.35rem;
        gap: 0.45rem;
    }

    .glass-overlay-title {
        font-size: 1.3rem;
        line-height: 1.22;
    }

    .glass-overlay-location {
        font-size: 0.8rem;
    }

    .glass-overlay-feature {
        font-size: 0.8rem;
    }

    .glass-overlay-price .price-amount-large {
        font-size: 1.45rem;
    }
}

/* ==========================================================================
   Dark Mode Support
   ========================================================================== */

[data-theme="dark"] .featured-property-card-overlay {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .featured-property-card-image .property-badge,
[data-theme="dark"] .featured-property-card-image .favorite-btn {
    background: rgba(30, 30, 30, 0.95);
}

