/* 
  Optimized Luxury Real Estate CSS
  - Removed duplications and redundancies
  - Enhanced navigation icon colors
  - Consolidated animations and transitions
  - Improved media queries organization
  - Fixed layout issues and improved responsiveness
*/

/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

:root {
    /* Luxury Color Palette */
    --primary-gold: #D4AF37;
    --secondary-gold: #CFB53B;
    --light-gold: #F8F4E3;
    --dark-blue: #0F2942;
    --medium-blue: #2A6384;
    --light-blue: #EBF4F8;
    --dark-gray: #333333;
    --medium-gray: #666666;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --black: #000000;
    
    /* Box Shadows */
    --luxury-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --smooth-transition: all 0.3s ease;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.text-center {
    text-align: center;
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

@keyframes revealTitle {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes pulseAnimation {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

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

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(15px, 20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.05; }
    50% { transform: scale(1.05); opacity: 0.08; }
}

@keyframes scrollForward {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-260px * 6)); }
}

@keyframes scrollReverse {
    0% { transform: translateX(calc(-260px * 6)); }
    100% { transform: translateX(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animation Classes */
.animate-fade-in { animation: fadeIn 1s ease-out forwards; }
.animate-fade-up { animation: fadeInUp 1s ease-out forwards; }
.animate-fade-right { animation: fadeInRight 1s ease-out forwards; }
.animate-fade-left { animation: fadeInLeft 1s ease-out forwards; }
.animate-scale-in { animation: scaleIn 1s ease-out forwards; }

/* Animation Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }
.delay-900 { animation-delay: 0.9s; }
.delay-1000 { animation-delay: 1s; }

/* Enhanced Slide Up Animation */
.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Title Animation */
.section-title {
    position: relative;
    overflow: hidden;
}

.section-title::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    transform: translateX(100%);
    z-index: 5;
    animation: revealTitle 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    animation-delay: 0.2s;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--smooth-transition);
}

header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

header.scrolled .nav-link {
    color: var(--dark-blue);
    text-shadow: none;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo {
    height: 50px;
    max-width: 100%;
    filter: brightness(1.2);
    transition: var(--smooth-transition);
}

header.scrolled .logo {
    height: 45px;
    filter: brightness(1);
}

/* Desktop Navigation */
.nav-items {
    display: flex;
    gap: 25px;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-weight: 600;
    color: white;
    transition: var(--smooth-transition);
    position: relative;
    padding: 8px 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-link:hover {
    color: var(--primary-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-gold);
    transition: width 0.3s ease;
}

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

/* Navigation Icons */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--smooth-transition);
    position: relative;
    color: rgb(255, 255, 255);
    overflow: visible;
}

header.scrolled .nav-icon {
    border: 2px solid rgba(58, 55, 212, 0.3);
    color: var(--white);
}

.nav-icon:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Favorites Count Badge */
.favorites-count {
    position: absolute;
    top: -10px;
    left: -10px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1001;
    pointer-events: none;
}

.favorites-count:not(.empty) {
    display: flex !important;
    opacity: 1 !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1010;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: var(--smooth-transition);
}

header.scrolled .menu-toggle span {
    background-color: var(--dark-blue);
}

/* Side Menu */
.menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    padding: 20px;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.menu.active {
    right: 0;
}

.menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1002;
}

.menu-items {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-item a {
    display: block;
    padding: 10px 0;
    font-weight: 600;
    color: #333;
    transition: var(--smooth-transition);
    border-bottom: 1px solid #eee;
}

.menu-item a:hover {
    color: var(--medium-blue);
    transform: translateX(-5px);
}

.menu-social {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--smooth-transition);
}

.social-icon:hover {
    background-color: var(--medium-blue);
    color: white;
}

/* ===== HERO SECTION ===== */
.hero-wrapper {
    position: relative;
    height: 100vh;
    max-height: 800px;
    width: 100%;
    overflow: hidden;
}

.hero-wrapper .hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease, transform 8s ease;
    transform: scale(1.05);
    z-index: 1;
}

.hero-wrapper .hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-wrapper .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
    z-index: 2;
}

.hero {
    height: calc(100vh - 80px);
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    width: 90%;
    max-width: 800px;
    z-index: 5;
    padding: 0 15px;
    margin-top: 60px;
    animation: fadeIn 1.5s ease-out;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    display: inline-block;
}

.hero-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--primary-gold);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.5s ease-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

/* ===== BUTTON STYLES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--medium-blue), var(--dark-blue));
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--smooth-transition);
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero .btn {
    animation: fadeInUp 1.5s ease-out;
    animation-delay: 0.6s;
    animation-fill-mode: both;
    padding: 15px 35px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* Button Shine Effect */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: all 1s ease;
    opacity: 0;
}

.shine-effect:hover::after {
    opacity: 1;
    left: 100%;
    top: 100%;
}

/* ===== SEARCH FILTER ===== */
.search-filter-container {
    margin-top: -80px;
    position: relative;
    z-index: 10;
    margin-bottom: 50px;
}

.search-filter {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 25px;
    transition: var(--smooth-transition);
}

/* Filter Layout */
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark-blue);
    font-size: 14px;
}

/* Form Controls */
.select-wrapper {
    position: relative;
}

.filter-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e9ef;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    background-color: #f9f9f9;
    transition: var(--smooth-transition);
    appearance: none;
    padding-left: 30px;
}

.filter-select:focus {
    border-color: var(--medium-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(42, 99, 132, 0.1);
    background-color: white;
}

.select-arrow {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-gray);
    pointer-events: none;
    transition: var(--smooth-transition);
}

.filter-select:focus + .select-arrow {
    color: var(--medium-blue);
}

/* Input with icon */
.input-wrapper {
    position: relative;
}

.filter-input {
    width: 100%;
    padding: 12px 15px;
    padding-left: 30px;
    border: 1px solid #e5e9ef;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    background-color: #f9f9f9;
    transition: var(--smooth-transition);
}

.filter-input:focus {
    border-color: var(--medium-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(42, 99, 132, 0.1);
    background-color: white;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-gray);
    pointer-events: none;
    transition: var(--smooth-transition);
}

.filter-input:focus + .input-icon {
    color: var(--medium-blue);
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.search-btn {
    flex: 1;
    max-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    font-size: 16px;
    background: linear-gradient(135deg, var(--medium-blue), var(--dark-blue));
    border-radius: 10px;
}

.advanced-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid #e5e9ef;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    color: var(--medium-gray);
    cursor: pointer;
    transition: var(--smooth-transition);
}

.advanced-filter-btn:hover {
    background-color: #f5f5f5;
    color: var(--dark-blue);
}

/* Advanced Filter */
.advanced-filter {
    display: none;
    padding-top: 20px;
    border-top: 1px solid #e5e9ef;
    margin-top: 20px;
}

.advanced-filter.active {
    display: block !important;
    animation: fadeIn 0.4s ease;
}

/* Range Filter */
.range-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.range-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e5e9ef;
    border-radius: 10px;
    font-size: 15px;
    background-color: #f9f9f9;
    transition: var(--smooth-transition);
}

.range-input:focus {
    border-color: var(--medium-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(42, 99, 132, 0.1);
    background-color: white;
}

.range-separator {
    font-weight: 600;
    color: var(--medium-gray);
}

/* Amenities Filter */
.amenities-filter {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Custom Checkbox */
.amenity-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    color: var(--dark-gray);
    transition: all 0.2s;
}

.amenity-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    display: inline-block;
    height: 18px;
    width: 18px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s;
}

.amenity-checkbox:hover .checkmark {
    background-color: #e9e9e9;
}

.amenity-checkbox input:checked ~ .checkmark {
    background-color: var(--medium-blue);
    border-color: var(--medium-blue);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.amenity-checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* ===== PROPERTY CARDS ===== */
.property-card.luxury-card {
    width: 100%;
    flex: 0 0 auto;
    border-radius: 20px;
    background-color: var(--white);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: none;
    position: relative;
    cursor: pointer;
}

.property-card.luxury-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.property-img-container {
    /* position: relative; */
    height: 240px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.image-gallery {
    position: relative;
    width: 100%;
    height: 100%;
}

.property-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    /* position: absolute; */
    top: 0;
    left: 0;
    opacity: 0;
}

.property-img.active {
    opacity: 1;
}

.property-card:hover .property-img.active {
    transform: scale(1.15);
}

.property-img-container:after {
    content: '';
    /* position: absolute; */
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    opacity: 0.7;
    transition: opacity 0.3s;
    z-index: 2;
}

.property-card:hover .property-img-container:after {
    opacity: 0.9;
}

/* Property Badges */
.property-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.property-badge.premium {
    background-color: rgba(212, 175, 55, 0.9);
    color: var(--white);
}

.property-badge.new {
    background-color: rgba(42, 99, 132, 0.9);
    color: var(--white);
}

.property-badge.discount {
    background-color: rgba(220, 53, 69, 0.9);
    color: var(--white);
}

.property-badge.sea-view {
    background-color: rgba(32, 178, 170, 0.9);
    color: var(--white);
}

/* Favorite Button */
.favorite-btn {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    width: 40px !important;
    height: 40px !important;
    background-color: transparent !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 100 !important;
    transition: var(--smooth-transition) !important;
    pointer-events: auto !important;
}

.favorite-btn i.far {
    color: white !important;
    font-size: 22px !important;
    filter: drop-shadow(0px 1px 2px rgba(0,0,0,0.5)) !important;
    transition: var(--smooth-transition) !important;
}

.favorite-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.15);
}

.favorite-btn i {
    color: #dc3545;
    font-size: 18px;
    transition: var(--smooth-transition);
}

/* Gallery Controls */
.gallery-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 5;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--smooth-transition);
}

.gallery-dot.active {
    background-color: var(--white);
    width: 20px;
    border-radius: 10px;
}

/* Click Indicator */
.clickable-indicator {
    position: absolute;
    top: 15px;
    right: 60px;
    background: rgba(42, 99, 132, 0.8);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transition: var(--smooth-transition);
    z-index: 5;
}

.property-card:hover .clickable-indicator {
    opacity: 1;
}

/* Property Content */
.property-content {
    padding: 25px;
}

.property-details {
    margin-bottom: 15px;
}

.property-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 12px;
    line-height: 1.4;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--medium-gray);
    font-size: 14px;
    margin-bottom: 18px;
    position: relative;
}

.property-location i {
    color: var(--medium-blue);
}

.property-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.price-currency {
    font-size: 16px;
    color: var(--medium-gray);
}

.old-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-right: 5px;
    font-weight: normal;
}

.property-installment {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--medium-gray);
    font-size: 14px;
    margin-bottom: 5px;
}

.property-installment i {
    color: var(--medium-blue);
}

/* Divider */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
    margin: 18px 0;
}

/* Property Features */
.property-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-gray);
    font-size: 14px;
}

.feature-icon {
    color: var(--medium-blue);
    font-size: 18px;
}

/* Property Amenities */
.property-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.amenity {
    background-color: var(--light-blue);
    color: var(--medium-blue);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--smooth-transition);
}

.amenity:hover {
    background-color: var(--medium-blue);
    color: white;
}

/* Property Action Buttons */
.property-actions {
    display: flex;
    gap: 12px;
}

.primary-btn {
    flex: 1;
    background: linear-gradient(135deg, var(--medium-blue), var(--dark-blue));
    color: var(--white);
    padding: 12px;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--smooth-transition);
    border: none;
    display: block;
}

.primary-btn:hover {
    background: linear-gradient(135deg, var(--dark-blue), var(--medium-blue));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.secondary-btn, .contact-btn {
    flex: 0 0 auto;
    padding: 12px;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--smooth-transition);
    display: block;
    position: relative;
    overflow: hidden;
    width: 90px;
    color: var(--medium-blue);
    background-color: var(--light-blue);
    border: 1px solid var(--medium-blue);
}

.secondary-btn:hover, .contact-btn:hover {
    background-color: var(--medium-blue);
    color: var(--white);
}

/* ===== PROPERTY GRID LAYOUT ===== */
.carousel-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 0 auto;
    transition: opacity 0.5s ease;
    transform: none !important;
}

.hidden-card {
    display: none;
    opacity: 0;
}

.card-fadein {
    animation: cardFadeIn 0.7s ease forwards;
}

/* View More Button */
.view-more-container {
    margin-top: 40px;
    text-align: center;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--white);
    color: var(--dark-blue);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--smooth-transition);
    border: 2px solid var(--primary-gold);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.view-more-btn:hover {
    background-color: var(--primary-gold);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ===== SECTION STYLES ===== */
.section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--dark-blue);
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

.section-title.with-accent {
    margin-bottom: 25px;
}

.section-title.with-accent:after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--medium-blue), var(--primary-gold));
    margin: 20px auto 0;
    border-radius: 4px;
}

.section-subtitle {
    margin-bottom: 30px;
    font-size: 18px;
    color: var(--medium-gray);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.8;
}

/* Luxury Section */
.luxury-section {
    background-color: var(--white);
    position: relative;
    padding: 60px 0;
}

.luxury-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, var(--medium-blue), var(--primary-gold), var(--medium-blue));
    border-radius: 0 0 10px 10px;
}

/* Filter Tabs */
.apartment-filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 30px;
    position: relative;
}

.apartment-filter-tabs:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}

.filter-tab {
    background-color: transparent;
    color: var(--medium-gray);
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--smooth-transition);
    position: relative;
}

.filter-tab:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--primary-gold);
    transition: var(--smooth-transition);
}

.filter-tab:hover {
    color: var(--dark-blue);
}

.filter-tab:hover:after {
    width: 30px;
}

.filter-tab.active {
    color: var(--dark-blue);
}

.filter-tab.active:after {
    width: 50px;
}

/* Filter Controls */
.filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--dark-blue);
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 5px;
    background-color: var(--light-gray);
    transition: var(--smooth-transition);
}

.filter-toggle:hover {
    background-color: var(--light-gold);
}

.view-toggle {
    display: flex;
    gap: 5px;
}

.view-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--smooth-transition);
}

.view-btn:hover {
    background-color: var(--light-gold);
}

.view-btn.active {
    background-color: var(--dark-blue);
    color: var(--white);
}

/* ===== TAMKEEN PROGRAM SECTION ===== */
.tamkeen-program {
    padding: 100px 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.tamkeen-program:before,
.tamkeen-program:after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.tamkeen-program:before {
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(42, 99, 132, 0.1) 0%, rgba(42, 99, 132, 0) 70%);
}

.tamkeen-program:after {
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0) 70%);
}

.tamkeen-program .container {
    position: relative;
    z-index: 2;
}

.program-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.program-feature {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
    padding: 35px;
    transition: all 0.4s ease;
    border-bottom: 4px solid transparent;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.program-feature:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--medium-blue);
}

.program-feature:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--medium-blue), var(--primary-gold));
    z-index: 2;
    opacity: 0;
    transition: all 0.4s ease;
}

.program-feature:hover:before {
    opacity: 1;
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 20px;
    position: relative;
    padding-right: 25px;
}

.feature-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-color: var(--medium-blue);
    border-radius: 50%;
}

.feature-description {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
}

/* ===== LUXURY SERVICE SECTION ===== */
.property-service-luxury {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark-blue), var(--medium-blue));
    color: var(--white);
    padding: 80px 0;
}

.luxury-bg-wrapper {
    position: relative;
    overflow: hidden;
}

.luxury-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.luxury-content {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 40px;
}

.luxury-text-content {
    flex: 1;
    position: relative;
}

.luxury-heading-wrapper {
    position: relative;
    margin-bottom: 25px;
    display: inline-block;
}

.luxury-accent {
    position: absolute;
    top: 50%;
    right: -15px;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(to bottom, var(--primary-gold), transparent);
    border-radius: 4px;
}

.luxury-title {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(to bottom, var(--white), var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    position: relative;
    padding-right: 15px;
}

.luxury-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-gold), transparent);
    bottom: -12px;
    right: 0;
}

.luxury-description {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 550px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

/* Luxury Button */
.luxury-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: var(--dark-blue);
    border: none;
    padding: 0;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.luxury-btn::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, var(--secondary-gold), var(--primary-gold));
    border-radius: 48px;
    z-index: 0;
    transition: all 0.4s ease;
}

.btn-content {
    position: relative;
    z-index: 1;
    padding: 14px 25px;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--dark-blue);
    color: var(--primary-gold);
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.luxury-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(212, 175, 55, 0.4);
}

.luxury-btn:hover .btn-icon {
    background: var(--primary-gold);
    color: var(--dark-blue);
}

/* Service Features */
.property-service-luxury .sell-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.property-service-luxury .sell-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    transition: var(--smooth-transition);
}

.property-service-luxury .sell-feature:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.property-service-luxury .sell-feature i {
    color: var(--primary-gold);
    font-size: 18px;
}

/* Luxury Image Display */
.luxury-image-wrapper {
    flex: 1;
    position: relative;
    padding: 15px;
}

.image-frame {
    position: relative;
    padding: 10px;
}

.image-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    clip-path: polygon(0 15%, 0 0, 15% 0, 85% 0, 100% 0, 100% 15%, 100% 85%, 100% 100%, 85% 100%, 15% 100%, 0 100%, 0 85%);
    z-index: 1;
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    z-index: 2;
    clip-path: polygon(0 8%, 0 0, 8% 0, 92% 0, 100% 0, 100% 8%, 100% 92%, 100% 100%, 92% 100%, 8% 100%, 0 100%, 0 92%);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.5s ease;
}

.image-container:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.luxury-image {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.02);
    transition: transform 0.7s ease;
}

.image-container:hover .luxury-image {
    transform: scale(1.1);
}

/* Geometric Background Elements */
.luxury-geometric-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.geo-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    background: linear-gradient(135deg, var(--medium-blue), transparent);
    mix-blend-mode: overlay;
}

.element-1 {
    width: 250px;
    height: 250px;
    top: -125px;
    left: -125px;
}

.element-2 {
    width: 180px;
    height: 180px;
    bottom: -90px;
    left: 10%;
    animation: float 15s infinite ease-in-out;
}

.element-3 {
    width: 400px;
    height: 400px;
    bottom: -180px;
    right: -180px;
}

.element-4 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 30%;
    animation: float 20s infinite ease-in-out reverse;
}

.element-5 {
    width: 70px;
    height: 70px;
    top: 30%;
    right: 20%;
    animation: float 10s infinite ease-in-out;
}

.element-6 {
    width: 180px;
    height: 180px;
    top: -90px;
    right: 10%;
    animation: float 17s infinite ease-in-out reverse;
}

/* ===== PARTNERS SECTION ===== */
.partners-section {
    padding: 100px 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.partners-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-heading {
    display: inline-block;
    position: relative;
    margin-bottom: 15px;
}

.section-accent {
    position: absolute;
    top: 50%;
    right: -15px;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(to bottom, var(--primary-gold), transparent);
    border-radius: 4px;
}

.partners-section .section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    color: var(--dark-blue);
}

.partners-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--medium-blue), var(--primary-gold));
    border-radius: 3px;
}

.partners-subtitle {
    font-size: 18px;
    color: var(--medium-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* Partners Slider */
.partners-slider-modern {
    position: relative;
    z-index: 2;
}

.slider-container {
    overflow: hidden;
    margin: 30px 0;
    position: relative;
    padding: 20px 0;
}

.slider-forward .partners-track {
    animation: scrollForward 30s linear infinite;
}

.slider-reverse .partners-track {
    animation: scrollReverse 25s linear infinite;
}

.partners-track {
    display: flex;
    position: relative;
    gap: 40px;
}

.partner-logo-item {
    flex: 0 0 auto;
}

.partner-logo-wrapper {
    width: 220px;
    height: 130px;
    background-color: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.partner-logo-wrapper::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold), var(--medium-blue));
    opacity: 0;
    transition: var(--smooth-transition);
}

.partner-logo-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    z-index: 1;
    transition: opacity 0.3s ease;
}

.partner-logo-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.partner-logo-wrapper:hover::before {
    opacity: 1;
}

.partner-logo-wrapper img {
    max-width: 90%;
    max-height: 90px;
    filter: none;
    opacity: 1;
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
}

.partner-logo-wrapper:hover img {
    transform: scale(1.1);
}

/* Pause animation on hover */
.slider-container:hover .partners-track {
    animation-play-state: paused;
}

/* Decorative Elements */
.partners-decorations {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    background: linear-gradient(135deg, var(--medium-blue), var(--primary-gold));
    animation: pulse 10s infinite ease-in-out;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -100px;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -80px;
    left: -80px;
    animation-delay: 5s;
}

.decoration-line {
    position: absolute;
    background: linear-gradient(90deg, var(--primary-gold), transparent);
    height: 2px;
}

.line-1 {
    width: 200px;
    top: 30%;
    left: 5%;
    transform: rotate(-45deg);
    animation: float 15s infinite ease-in-out;
}

.line-2 {
    width: 150px;
    bottom: 20%;
    right: 8%;
    transform: rotate(30deg);
    animation: float 12s infinite ease-in-out reverse;
}

/* ===== DROPDOWN MENUS ===== */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    position: relative;
}

.dropdown-toggle i {
    font-size: 10px;
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--smooth-transition);
    z-index: 1000;
    overflow: hidden;
}

header.scrolled .dropdown-menu {
    margin-top: 5px;
}

.dropdown-menu:before {
    content: '';
    position: absolute;
    top: 0;
    right: 20px;
    left: 20px;
    height: 3px;
    background: linear-gradient(90deg, var(--medium-blue), var(--primary-gold));
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

.dropdown-menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--dark-blue);
    transition: var(--smooth-transition);
    text-align: right;
}

.dropdown-menu a:hover {
    background-color: var(--light-blue);
    color: var(--medium-blue);
    padding-right: 25px;
}

/* Mobile Menu Dropdowns */
.menu .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    max-height: 0;
    padding: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-right: 15px;
    border-right: 2px solid var(--primary-gold);
}

.menu .dropdown-menu:before {
    display: none;
}

.menu .dropdown-menu.active {
    max-height: 1000px;
}

.menu .dropdown-menu a {
    padding: 10px 15px;
    font-size: 14px;
}

/* ===== POPUPS & FORMS ===== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--smooth-transition);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.popup-overlay.active .popup-container {
    transform: translateY(0);
}

.popup-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--medium-blue), var(--dark-blue));
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.popup-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold), var(--secondary-gold), var(--primary-gold));
}

.popup-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.popup-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--smooth-transition);
}

.popup-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.popup-body {
    padding: 25px;
    max-height: calc(90vh - 90px);
    overflow-y: auto;
}

/* Form Styles */
.request-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 250px;
}

.form-group.full-width {
    flex-basis: 100%;
    min-width: 100%;
}

.request-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-blue);
    font-size: 14px;
}

.required {
    color: #e74c3c;
    margin-right: 4px;
}

.request-form input[type="text"],
.request-form input[type="tel"],
.request-form input[type="number"],
.request-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e9ef;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    background-color: #f9f9f9;
    transition: var(--smooth-transition);
}

.request-form input:focus,
.request-form textarea:focus {
    border-color: var(--medium-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(42, 99, 132, 0.1);
    background-color: white;
}

.request-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Multiselect Dropdown */
.multiselect-wrapper {
    position: relative;
    width: 100%;
}

.multiselect-wrapper select {
    display: none;
}

.multiselect-selected-text {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e9ef;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    background-color: #f9f9f9;
    cursor: pointer;
    user-select: none;
    transition: var(--smooth-transition);
    position: relative;
    min-height: 48px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.multiselect-selected-text::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-gray);
    transition: var(--smooth-transition);
}

.multiselect-wrapper.active .multiselect-selected-text::after {
    transform: translateY(-50%) rotate(180deg);
}

.multiselect-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background-color: white;
    border: 1px solid #e5e9ef;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 10;
    margin-top: 5px;
    display: none;
    max-height: 300px;
    overflow: hidden;
    flex-direction: column;
}

.multiselect-wrapper.active .multiselect-dropdown {
    display: flex;
}

.multiselect-search {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.multiselect-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    font-size: 14px;
}

.multiselect-options {
    padding: 10px 0;
    max-height: 230px;
    overflow-y: auto;
}

.multiselect-option {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.multiselect-option:hover {
    background-color: rgba(42, 99, 132, 0.05);
}

.multiselect-option.selected {
    background-color: rgba(42, 99, 132, 0.1);
    font-weight: 600;
    color: var(--medium-blue);
}

.multiselect-option .checkbox {
    width: 18px;
    height: 18px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-left: 10px;
    position: relative;
    transition: all 0.2s;
}

.multiselect-option.selected .checkbox {
    background-color: var(--medium-blue);
    border-color: var(--medium-blue);
}

.multiselect-option.selected .checkbox::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.selected-item {
    background-color: rgba(42, 99, 132, 0.1);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--medium-blue);
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
}

.selected-item .remove {
    margin-right: 5px;
    cursor: pointer;
    font-size: 11px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(42, 99, 132, 0.2);
    border-radius: 50%;
    transition: all 0.2s;
}

.selected-item .remove:hover {
    background-color: rgba(42, 99, 132, 0.3);
}

/* Budget Range Input */
.budget-range-input {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.budget-field {
    flex: 1;
    position: relative;
}

.budget-label {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--medium-gray);
    font-weight: 600;
    pointer-events: none;
}

.budget-field input {
    width: 100%;
    padding: 12px 15px 12px 15px;
    padding-right: 40px;
    border: 1px solid #e5e9ef;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    background-color: #f9f9f9;
    transition: var(--smooth-transition);
    text-align: left;
    direction: ltr;
}

.budget-separator {
    font-weight: 600;
    color: var(--medium-gray);
    font-size: 15px;
}

.budget-error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
    text-align: right;
}

/* Submit Button */
.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--medium-blue), var(--dark-blue));
    color: white;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--smooth-transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.submit-btn:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: all 1s ease;
    opacity: 0;
}

.submit-btn:hover:before {
    opacity: 1;
    left: 100%;
    top: 100%;
}

/* Form Feedback Messages */
.form-message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
}

.form-message.success {
    background-color: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #27ae60;
}

.form-message.error {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.form-message i {
    margin-left: 8px;
}

/* Loading indicator */
.loading-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    display: none;
}

/* ===== FIXED BUTTONS ===== */
.fixed-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    right: auto;
}

.fixed-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--medium-blue), var(--dark-blue));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: var(--smooth-transition);
    animation: pulseAnimation 2s infinite;
}

.fixed-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

#whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

#phone-btn {
    background: linear-gradient(135deg, #112d46, #112d46);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .carousel-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 1100px) {
    .carousel-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    /* Header & Navigation */
    .nav-items {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .logo {
        height: 40px;
    }
    
    /* Hero section */
    .hero-wrapper {
        height: auto;
        max-height: none;
    }
    
    .hero {
        height: 70vh;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    /* Search filter */
    .search-filter {
        flex-direction: column;
        padding: 20px;
    }
    
    .filter-group {
        width: 100%;
        flex: 1 0 45%;
        min-width: 200px;
    }
    
    .search-btn {
        width: 100%;
        margin-top: 10px;
    }
    
    .filter-actions {
        width: 100%;
        justify-content: center;
    }
    
    /* Filter layout */
    .filter-row {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    /* Section titles */
    .section-title {
        font-size: 32px;
    }
    
    /* Dropdown menu */
    .dropdown-menu {
        right: 0;
        left: auto;
    }
    
    /* Luxury service section */
    .luxury-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .luxury-text-content {
        text-align: center;
    }
    
    .luxury-accent {
        right: auto;
        left: -15px;
    }
    
    .luxury-title::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .luxury-description {
        margin: 0 auto 30px;
    }
    
    .luxury-btn {
        margin: 0 auto;
    }
    
    .image-container {
        transform: none;
        max-width: 450px;
        margin: 0 auto;
    }
    
    /* Amenities filter - 2 per row on tablets */
    .amenities-filter {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    /* Grid layout */
    .carousel-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Hero section */
    .hero-wrapper {
        height: 100vh;
    }
    
    .hero {
        height: calc(100vh - 80px);
    }
    
    .hero-title {
        font-size: 28px;
        margin-top: 0;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
    }
    
    /* Sections */
    .luxury-section {
        padding: 60px 0;
    }
    
    .section-title.with-accent {
        font-size: 25px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .filter-tab {
        white-space: nowrap;
    }
    
    /* Property cards */
    .property-title {
        font-size: 16px;
    }
    
    .property-features {
        gap: 10px;
    }
    
    .property-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .secondary-btn, .contact-btn {
        width: 100%;
    }
    
    /* Stats */
    .stats {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Search filter */
    .search-types {
        margin-bottom: 15px;
    }
    
    .search-type-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    /* Amenities filter - 1 per row on mobile */
    .amenities-filter {
        grid-template-columns: 1fr;
    }
    
    /* Advanced filter */
    .advanced-filter .filter-row {
        gap: 10px;
    }
    
    /* Property service luxury */
    .property-service-luxury {
        padding: 60px 0;
    }
    
    .luxury-title {
        font-size: 30px;
    }
    
    .luxury-description {
        font-size: 15px;
    }
    
    .btn-content {
        padding: 12px 20px;
    }
    
    .btn-icon {
        width: 40px;
        height: 40px;
    }
    
    .property-service-luxury .sell-features {
        flex-direction: column;
    }
    
    /* Popup */
    .popup-body {
        padding: 20px 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group {
        min-width: 100%;
    }
    
    .popup-title {
        font-size: 20px;
    }
    
    /* Additional media query fixes */
    #advanced-filter {
        display: none;
    }
    
    #advanced-filter.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }
}

@media (max-width: 480px) {
    /* Hero section */
    .hero-wrapper {
        height: 100vh;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    /* Search filter */
    .search-filter-container {
        margin-top: -30px;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Property cards */
    .property-badge {
        font-size: 10px;
        padding: 4px 12px;
    }
    
    .property-img-container {
        height: 200px;
    }
    
    .property-content {
        padding: 15px;
    }
    
    /* Fixed buttons */
    .fixed-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .fixed-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    /* Range filter */
    .range-filter {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .range-filter .range-input {
        width: 100%;
    }

    .range-separator {
        align-self: center;
        margin: 0;
        transform: rotate(90deg);
    }
    
    /* Advanced filter padding */
    .advanced-filter .filter-row {
        padding: 5px;
    }

    /* Filter group spacing */
    .advanced-filter .filter-group {
        margin-bottom: 15px;
    }
    
    /* Property service luxury */
    .property-service-luxury {
        padding: 50px 0;
    }
    
    .luxury-title {
        font-size: 26px;
    }
    
    .luxury-description {
        font-size: 14px;
        line-height: 1.7;
    }
    
    /* Popup adjustments */
    .popup-container {
        width: 95%;
        max-height: 85vh;
    }
    
    .popup-header {
        padding: 15px 20px;
    }
    
    .popup-body {
        padding: 15px 10px;
    }
    
    .submit-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
}

@media (max-width: 360px) {
    /* Form elements for very small screens */
    .filter-select,
    .range-input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .filter-label {
        font-size: 13px;
        margin-bottom: 8px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) {
    .btn:active, 
    .filter-tag:active, 
    .filter-tab:active, 
    .property-card:active, 
    .nav-icon:active {
        transform: scale(0.98);
    }
}

/* ===== ADDITIONAL PROPERTY CARD IMPROVEMENTS ===== */
.property-card.luxury-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Ensure interactive elements have proper z-index */
.favorite-btn,
.gallery-dot,
.property-actions,
.property-actions a,
.property-actions button {
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

/* Enhanced hover effects */
.property-card.luxury-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

/* Prevent hover transform when hovering over interactive elements */
.property-card.luxury-card:hover .favorite-btn:hover,
.property-card.luxury-card:hover .gallery-dot:hover,
.property-card.luxury-card:hover .property-actions:hover {
    transform: none;
}