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

@import 'tailwindcss';

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../**/*.blade.php';
@source '../**/*.js';

/* ==========================================
   KASHI HOUSING - MODERN DESIGN SYSTEM
   ========================================== */

@theme {
    /* Typography */
    --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
    --font-heading: 'Poppins', ui-sans-serif, system-ui, sans-serif;

    /* Primary Colors - Royal Blue */
    --color-primary-50: #eff6ff;
    --color-primary-100: #dbeafe;
    --color-primary-200: #bfdbfe;
    --color-primary-300: #93c5fd;
    --color-primary-400: #60a5fa;
    --color-primary-500: #3b82f6;
    --color-primary-600: #2563eb;
    --color-primary-700: #1d4ed8;
    --color-primary-800: #1e40af;
    --color-primary-900: #1e3a8a;

    /* Secondary Colors - Emerald (Trust) */
    --color-secondary-50: #ecfdf5;
    --color-secondary-100: #d1fae5;
    --color-secondary-200: #a7f3d0;
    --color-secondary-300: #6ee7b7;
    --color-secondary-400: #34d399;
    --color-secondary-500: #10b981;
    --color-secondary-600: #059669;
    --color-secondary-700: #047857;
    --color-secondary-800: #065f46;
    --color-secondary-900: #064e3b;

    /* Accent Colors - Amber (Urgency/CTA) */
    --color-accent-50: #fffbeb;
    --color-accent-100: #fef3c7;
    --color-accent-200: #fde68a;
    --color-accent-300: #fcd34d;
    --color-accent-400: #fbbf24;
    --color-accent-500: #f59e0b;
    --color-accent-600: #d97706;
    --color-accent-700: #b45309;

    /* Neutral Colors */
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    --color-gray-950: #030712;

    /* Status Colors */
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* ==========================================
   BASE STYLES
   ========================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--color-gray-800);
    background-color: var(--color-gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@layer base {
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-family: var(--font-heading);
        font-weight: 600;
        line-height: 1.3;
        color: var(--color-gray-900);
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.125rem; }
    h6 { font-size: 1rem; }

    @media (min-width: 768px) {
        h1 { font-size: 3rem; }
        h2 { font-size: 2.25rem; }
        h3 { font-size: 1.75rem; }
    }
}

a {
    color: var(--color-primary-600);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary-700);
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-700) 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-700) 0%, var(--color-primary-800) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.4);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-secondary-500) 0%, var(--color-secondary-600) 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(5, 150, 105, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--color-secondary-600) 0%, var(--color-secondary-700) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(5, 150, 105, 0.4);
    color: white;
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent-500) 0%, var(--color-accent-600) 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(217, 119, 6, 0.3);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--color-accent-600) 0%, var(--color-accent-700) 100%);
    transform: translateY(-2px);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--color-primary-600);
    border: 2px solid var(--color-primary-600);
}

.btn-outline:hover {
    background: var(--color-primary-600);
    color: white;
}

.btn-white {
    background: white;
    color: var(--color-gray-800);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    background: var(--color-gray-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--color-gray-800);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
    transform: translateY(-2px);
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ==========================================
   CARDS
   ========================================== */

.card {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-body {
    padding: 1.5rem;
}

/* Property Card */
.property-card {
    position: relative;
}

.property-card .property-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

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

.property-card .property-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-sale {
    background: var(--color-primary-600);
    color: white;
}

.badge-rent {
    background: var(--color-secondary-600);
    color: white;
}

.badge-verified {
    background: var(--color-secondary-500);
    color: white;
}

.badge-featured {
    background: var(--color-accent-500);
    color: white;
}

.property-card .property-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-700);
}

.property-card .property-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--color-gray-500);
    font-size: 0.875rem;
}

.property-card .property-features {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--color-gray-100);
}

.property-card .property-feature {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

/* ==========================================
   PROPERTY CARD V2 - Premium Design
   ========================================== */

.property-card-v2 {
    position: relative;
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
    contain: layout style paint;
}

.property-card-v2:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(59, 130, 246, 0.1);
}

.property-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Image Container */
.property-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-gray-100), var(--color-gray-200));
}

@media (min-width: 768px) {
    .property-card-image {
        aspect-ratio: 16/10;
    }
}

.property-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.property-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.1) 40%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.property-card-v2:hover .property-card-overlay {
    opacity: 1;
}

/* Badges Styling */
.property-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    z-index: 10;
}

@media (min-width: 768px) {
    .property-badges {
        top: 1rem;
        left: 1rem;
    }
}

.property-badge-v2 {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
    .property-badge-v2 {
        font-size: 0.75rem;
        padding: 0.4375rem 0.875rem;
    }
}

.badge-sale-v2 {
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
    color: white;
}

.badge-rent-v2 {
    background: linear-gradient(135deg, var(--color-secondary-500), var(--color-secondary-600));
    color: white;
}

.badge-verified-v2 {
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-secondary-600);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.8);
    }
}

.badge-icon {
    width: 0.875rem;
    height: 0.875rem;
}

/* Featured Badge */
.property-badge-featured {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, var(--color-accent-500), var(--color-accent-600));
    color: white;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    z-index: 10;
}

@media (min-width: 768px) {
    .property-badge-featured {
        bottom: 1rem;
        left: 1rem;
        font-size: 0.75rem;
    }
}

/* Property Type Tag */
.property-type-tag {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    padding: 0.375rem 0.625rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.375rem;
    z-index: 10;
}

@media (min-width: 768px) {
    .property-type-tag {
        font-size: 0.6875rem;
        padding: 0.4375rem 0.75rem;
    }
}

/* Quick Actions */
.property-quick-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 20;
}

@media (min-width: 768px) {
    .property-quick-actions {
        top: 1rem;
        right: 1rem;
    }
}

.property-card-v2:hover .property-quick-actions {
    opacity: 1;
    transform: translateX(0);
}

.quick-action-btn {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: var(--color-gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.quick-action-btn:hover {
    background: white;
    color: var(--color-primary-600);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.quick-action-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* Content Container */
.property-card-content {
    padding: 1rem;
}

@media (min-width: 640px) {
    .property-card-content {
        padding: 1.25rem;
    }
}

@media (min-width: 768px) {
    .property-card-content {
        padding: 1.5rem;
    }
}

/* Price Section */
.property-price-section {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.625rem;
}

.property-price-v2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary-600), var(--color-primary-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 768px) {
    .property-price-v2 {
        font-size: 1.5rem;
    }
}

.price-period {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-gray-500);
}

.price-per-sqft {
    font-size: 0.75rem;
    color: var(--color-gray-400);
    background: var(--color-gray-100);
    padding: 0.1875rem 0.5rem;
    border-radius: 0.25rem;
}

/* Title */
.property-title-v2 {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-gray-900);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .property-title-v2 {
        font-size: 1.0625rem;
        -webkit-line-clamp: 1;
    }
}

.property-card-v2:hover .property-title-v2 {
    color: var(--color-primary-600);
}

/* Location */
.property-location-v2 {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-style: normal;
    font-size: 0.8125rem;
    color: var(--color-gray-500);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .property-location-v2 {
        font-size: 0.875rem;
    }
}

.location-icon {
    width: 1rem;
    height: 1rem;
    color: var(--color-primary-500);
    flex-shrink: 0;
}

/* Features Grid */
.property-features-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--color-gray-100);
}

@media (min-width: 480px) {
    .property-features-v2 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .property-features-v2 {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-icon-wrap {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-gray-50), var(--color-gray-100));
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.feature-icon-wrap svg {
    width: 1rem;
    height: 1rem;
    color: var(--color-primary-500);
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-800);
    line-height: 1.2;
}

.feature-label {
    font-size: 0.6875rem;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.furnishing-text {
    font-size: 0.75rem;
}

.feature-furnishing {
    grid-column: span 2;
}

@media (min-width: 480px) {
    .feature-furnishing {
        grid-column: span 1;
    }
}

/* Card Footer */
.property-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--color-gray-100);
}

.view-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary-600);
    transition: all 0.3s ease;
}

.view-details-btn svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}

.property-card-v2:hover .view-details-btn {
    color: var(--color-primary-700);
}

.property-card-v2:hover .view-details-btn svg {
    transform: translateX(4px);
}

.new-listing-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    animation: pulse 2s infinite;
}

/* Property Grid V2 - Mobile Horizontal Scroll, Desktop Grid */
.property-grid-v2 {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    margin-bottom: -1rem;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.property-grid-v2::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.property-grid-v2>* {
    flex: 0 0 calc(50% - 0.375rem);
    /* 2 cards visible with gap */
    min-width: calc(50% - 0.375rem);
    scroll-snap-align: start;
}

/* Tablet and up - show 2 cards in scroll */
@media (min-width: 480px) {
    .property-grid-v2 {
        gap: 1rem;
    }

    .property-grid-v2>* {
        flex: 0 0 calc(50% - 0.5rem);
        min-width: calc(50% - 0.5rem);
    }
}

/* Medium screens - switch to grid layout */
@media (min-width: 768px) {
    .property-grid-v2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        overflow-x: visible;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .property-grid-v2>* {
        flex: none;
        min-width: auto;
    }
}

/* Large screens - 3 columns */
@media (min-width: 1024px) {
    .property-grid-v2 {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Extra large screens - 4 columns */
@media (min-width: 1280px) {
    .property-grid-v2 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile: Hide badges, features, and simplify cards */
@media (max-width: 767px) {

    /* Hide all badges on mobile */
    .property-badges,
    .property-badge-featured,
    .badge-verified-v2,
    .badge-sale-v2,
    .badge-rent-v2 {
        display: none !important;
    }

    /* Hide features grid on mobile */
    .property-features-v2 {
        display: none !important;
    }

    /* Hide card footer on mobile for cleaner look */
    .property-card-footer {
        display: none !important;
    }

    /* Adjust card content spacing on mobile */
    .property-card-content {
        padding: 0.875rem !important;
    }

    /* Smaller price on mobile */
    .property-price-v2 {
        font-size: 1rem !important;
    }

    /* Smaller title on mobile */
    .property-title-v2 {
        font-size: 0.875rem !important;
        margin-bottom: 0.25rem !important;
    }

    /* Smaller location on mobile */
    .property-location-v2 {
        font-size: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* Reduce image height on mobile cards */
    .property-card-image {
        padding-top: 60% !important;
    }

    /* Hide quick actions on mobile */
    .property-quick-actions {
        display: none !important;
    }
}

/* ==========================================
   FORMS
   ========================================== */

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-gray-700);
    font-size: 0.875rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--color-gray-300);
    border-radius: 0.5rem;
    background-color: white;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: var(--color-gray-400);
}

.form-input.error {
    border-color: var(--color-error);
}

.form-error {
    font-size: 0.75rem;
    color: var(--color-error);
    margin-top: 0.25rem;
}

/* ==========================================
   NAVIGATION
   ========================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: var(--color-gray-700);
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary-600);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary-600);
    transition: all 0.2s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-primary-900) 0%, var(--color-primary-700) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* ==========================================
   SEARCH BOX
   ========================================== */

.search-box {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-2xl);
    padding: 1.5rem;
}

.search-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.search-tab {
    flex: 1;
    padding: 0.75rem 1.5rem;
    text-align: center;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--color-gray-100);
    color: var(--color-gray-600);
}

.search-tab.active {
    background: var(--color-primary-600);
    color: white;
}

.search-tab:hover:not(.active) {
    background: var(--color-gray-200);
}

/* ==========================================
   SECTIONS
   ========================================== */

.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background: var(--color-gray-900);
    color: var(--color-gray-300);
    padding: 4rem 0 2rem;
}

.footer a {
    color: var(--color-gray-300);
}

.footer a:hover {
    color: white;
}

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

/* Mobile Footer Styles */
@media (max-width: 767px) {
    .footer {
        padding: 2.5rem 0 1.5rem;
    }

    /* Center logo section on mobile */
    .footer .flex.items-center.gap-2.mb-4 {
        justify-content: center;
    }

    /* Center company description */
    .footer>.container>.footer-grid>div:first-child {
        text-align: center;
    }

    .footer>.container>.footer-grid>div:first-child p {
        font-size: 0.875rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
    }

    /* Center social links */
    .footer .flex.gap-3 {
        justify-content: center;
    }

    /* Smaller social icons */
    .footer .w-10.h-10.rounded-full {
        width: 2.25rem;
        height: 2.25rem;
    }

    .footer .w-10.h-10.rounded-full svg {
        width: 1rem;
        height: 1rem;
    }

    /* Smaller footer titles */
    .footer-title {
        font-size: 1rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    /* Center and style links */
    .footer ul.space-y-3,
    .footer ul.space-y-4 {
        text-align: center;
    }

    .footer ul.space-y-3 li,
    .footer ul.space-y-4 li {
        margin-bottom: 0.625rem;
    }

    .footer ul.space-y-3 a,
    .footer ul.space-y-4 a {
        font-size: 0.875rem;
    }

    /* Contact info - keep left aligned but smaller */
    .footer ul.space-y-4 li.flex {
        justify-content: center;
        text-align: left;
    }

    .footer ul.space-y-4 li.flex svg {
        width: 1.125rem;
        height: 1.125rem;
    }

    .footer ul.space-y-4 li.flex span,
    .footer ul.space-y-4 li.flex a {
        font-size: 0.875rem;
    }

    /* Bottom bar */
    .footer .pt-8.border-t {
        padding-top: 1.5rem;
    }

    .footer .pt-8.border-t p,
    .footer .pt-8.border-t span {
        font-size: 0.75rem;
    }
}

/* ==========================================
   UTILITIES
   ========================================== */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-secondary-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-balance {
    text-wrap: balance;
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.5s ease forwards;
}

.animate-pulse-slow {
    animation: pulse 3s infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Lazy Load Images */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Trust Badges */
.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--color-gray-50);
    border-radius: 0.75rem;
    border: 1px solid var(--color-gray-100);
}

.trust-badge-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
    border-radius: 0.5rem;
    color: white;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: white;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--color-gray-200) 25%, var(--color-gray-100) 50%, var(--color-gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 0.5rem;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-400);
}

/* ==========================================
   MOBILE RESPONSIVE OVERRIDES
   ========================================== */

/* Prevent horizontal overflow */
html,
body {
    overflow-x: hidden;
}

/* Section padding responsive */
.section {
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .section {
        padding: 5rem 0;
    }
}

/* Property cards grid - mobile first */
.property-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .property-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .property-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Property cards 6-column grid - for featured sections */
.property-grid-6 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 480px) {
    .property-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .property-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .property-grid-6 {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1280px) {
    .property-grid-6 {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Compact property card for 6-column layouts */
.property-card-compact .card-body {
    padding: 1rem;
}

.property-card-compact .property-price {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.property-card-compact h3 {
    font-size: 0.9375rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.property-card-compact .property-location {
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
}

.property-card-compact .property-features {
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.property-card-compact .property-feature {
    font-size: 0.75rem;
}

.property-card-compact .property-image {
    aspect-ratio: 4/3;
}

/* Feature cards grid - mobile first */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

/* Stats grid - mobile first */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* Location grid - mobile first */
.location-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .location-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .location-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

/* Testimonials grid - Mobile Horizontal Scroll */
.testimonial-grid {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.testimonial-grid::-webkit-scrollbar {
    display: none;
}

.testimonial-grid>div {
    flex: 0 0 85%;
    min-width: 85%;
    scroll-snap-align: center;
}

/* Mobile testimonial card styles */
@media (max-width: 767px) {
    .testimonial-grid>div {
        padding: 1.25rem;
        border-radius: 1rem;
    }

    .testimonial-grid>div p {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    .testimonial-grid>div .flex.gap-1 svg {
        width: 1rem;
        height: 1rem;
    }

    .testimonial-grid>div .w-12 {
        width: 2.5rem;
        height: 2.5rem;
    }

    .testimonial-grid>div h4 {
        font-size: 0.875rem;
    }

    .testimonial-grid>div .text-sm {
        font-size: 0.75rem;
    }
}

/* Tablet and up - standard grid */
@media (min-width: 768px) {
    .testimonial-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .testimonial-grid>div {
        flex: none;
        min-width: auto;
    }
}

/* Hero section responsive */
.hero-section {
    min-height: auto;
    padding: 2rem 0 3rem;
}

@media (min-width: 768px) {
    .hero-section {
        min-height: 80vh;
        padding: 3rem 0 4rem;
    }
}

/* Search box responsive */
.search-box {
    padding: 1.25rem;
    border-radius: 1rem;
}

@media (min-width: 768px) {
    .search-box {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .search-box {
        padding: 2rem;
    }
}

/* Section headers responsive */
.section-header {
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .section-header {
        margin-bottom: 3rem;
    }
}

.section-title {
    font-size: 1.5rem;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 1.75rem;
    }
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

/* Mobile-friendly buttons */
.btn {
    width: 100%;
    justify-content: center;
}

@media (min-width: 640px) {
    .btn {
        width: auto;
    }
}

/* CTA section responsive */
.cta-content {
    padding: 2rem 1.5rem;
    border-radius: 1rem;
}

@media (min-width: 768px) {
    .cta-content {
        padding: 3rem 2rem;
        border-radius: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .cta-content {
        padding: 4rem 3rem;
    }
}

/* Footer grid - mobile first */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        margin-bottom: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
        margin-bottom: 3rem;
    }
}

/* ==========================================
   FOOTER PREMIUM - TEXT VISIBILITY FIXES
   ========================================== */

/* Override global heading styles for footer */
.footer-premium h1,
.footer-premium h2,
.footer-premium h3,
.footer-premium h4,
.footer-premium h5,
.footer-premium h6 {
    color: #ffffff !important;
}

/* Specific footer heading class */
.footer-premium .footer-nav-title {
    color: #ffffff !important;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Newsletter title */
.footer-premium h3 {
    color: #ffffff !important;
}

/* Footer links */
.footer-premium a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.footer-premium a:hover {
    color: #60a5fa;
}

/* Footer paragraphs and text */
.footer-premium p {
    color: rgba(255, 255, 255, 0.6);
}

/* Footer address */
.footer-premium address {
    color: rgba(255, 255, 255, 0.6);
    font-style: normal;
}

/* Trust badge text */
.footer-premium .footer-trust-badge span {
    color: rgba(255, 255, 255, 0.9);
}

.footer-premium .footer-trust-badge span:last-child {
    color: rgba(255, 255, 255, 0.5);
}

/* Bottom bar text overrides */
.footer-premium .text-white\/50,
.footer-premium .text-white\/40,
.footer-premium .text-white\/30,
.footer-premium .text-white\/70 {
    color: inherit !important;
}