/* ============================================
   Custom CSS Overrides for Flex Home Theme
   ============================================ */

/* ============================================
   Price Display Fixes
   ============================================ */

/* Fix max-width for price display */
.item-price span {
    max-width: 200px !important;
}

.pricehouse {
    max-width: none !important;
}

/* ============================================
   Saudi Riyal New Symbol Font
   ============================================ */

@font-face {
    font-family: 'saudi-riyal-symbol';
    src: url('../fonts/saudiriyalsymbol.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.icon-saudi-riyal {
    font-family: 'saudi-riyal-symbol' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-saudi-riyal:before {
    content: "\ea";
}

/* ============================================
   Tajawal Font for Arabic
   ============================================ */

body,
.property-map-popup,
.leaflet-popup-content {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================
   Map Popup Styling
   ============================================ */

.property-map-popup {
    font-family: 'Tajawal', sans-serif;
}

.popup-flex-container {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

[dir="rtl"] .popup-flex-container {
    flex-direction: row-reverse;
}

.popup-image {
    flex-shrink: 0;
}

.popup-image .blii {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.popup-image .blii img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-content {
    flex: 1;
    min-width: 0;
}

.popup-content h5 {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 700;
}

.popup-content .text-info {
    color: var(--primary-color, #1d5f6f);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}

.popup-content .city-name {
    color: #666;
    font-size: 13px;
    margin: 4px 0;
}

.popup-content .property-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.popup-content .property-details span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: #666;
}

.popup-content .property-details img {
    width: 14px;
    height: 14px;
}

.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 12px;
}

.leaflet-popup-content {
    margin: 0;
    min-width: 280px;
}

/* ============================================
   Property Map Pin - Circular Style
   ============================================ */

.property-map-pin {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.property-map-pin:hover {
    transform: translateY(-5px);
    z-index: 1000 !important;
}

.pin-image-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: #fff;
    position: relative;
    z-index: 2;
}

.pin-image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pin-pointer {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid #fff;
    position: relative;
    top: -3px;
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.2));
    z-index: 1;
}

.property-map-pin:hover .pin-image-circle {
    width: 60px;
    height: 60px;
    border-width: 4px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.property-map-pin:hover .pin-pointer {
    border-left-width: 12px;
    border-right-width: 12px;
    border-top-width: 18px;
}

.leaflet-marker-icon.boxmarker {
    background: transparent !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
}


/* ============================================
   Remove Transparent Box Around Pin
   ============================================ */

.leaflet-marker-icon.boxmarker {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
}

/* Center the pin properly */
.leaflet-marker-icon.boxmarker .property-map-pin {
    margin-left: -25px;
    margin-top: -65px;
}

/* Remove any default marker styles */
.leaflet-marker-pane .leaflet-marker-icon {
    margin: 0 !important;
}

.leaflet-marker-shadow {
    display: none !important;
}


/* ============================================
   Remove display: inherit from price
   ============================================ */

.item-price-wrap li.item-price span {
    display: inline-block !important;
}


/* ============================================
   Project PDF and Brochure Download Buttons
   ============================================ */

.project-downloads {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.project-downloads .btn-download {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Tajawal', sans-serif;
}

.project-downloads .btn-download i {
    font-size: 18px;
}

.project-downloads .btn-primary {
    background: #d84315;
    border-color: #d84315;
    color: white;
}

.project-downloads .btn-primary:hover {
    background: #bf360c;
    border-color: #bf360c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(216, 67, 21, 0.3);
}

.project-downloads .btn-info {
    background: #3d7a8a;
    border-color: #3d7a8a;
    color: white;
}

.project-downloads .btn-info:hover {
    background: #2c5f6f;
    border-color: #2c5f6f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 122, 138, 0.3);
}

/* Responsive */
@media (max-width: 576px) {
    .project-downloads {
        flex-direction: column;
    }
    
    .project-downloads .btn-download {
        width: 100%;
        justify-content: center;
    }
}


/* ============================================
   Professional Project Page Design
   ============================================ */

/* Project Downloads - Professional Style */
.project-downloads {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.project-downloads .btn-download {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Tajawal', sans-serif;
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.project-downloads .btn-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.project-downloads .btn-download:hover::before {
    left: 100%;
}

.project-downloads .btn-download i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.project-downloads .btn-download:hover i {
    transform: scale(1.2);
}

/* PDF Button - Primary Color */
.project-downloads .btn-primary {
    background: linear-gradient(135deg, #1d5f6f 0%, #2c7a8c 100%);
    color: white;
}

.project-downloads .btn-primary:hover {
    background: linear-gradient(135deg, #063a5d 0%, #1d5f6f 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(29, 95, 111, 0.4);
}

/* Brochure Button - Complementary Color */
.project-downloads .btn-info {
    background: linear-gradient(135deg, #d4a574 0%, #c89860 100%);
    color: white;
}

.project-downloads .btn-info:hover {
    background: linear-gradient(135deg, #c89860 0%, #b8864d 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
}

/* Project Page Typography */
.detailproject .head {
    font-family: 'Tajawal', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1d5f6f;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #d4a574;
    position: relative;
}

.detailproject .head::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: #1d5f6f;
}

[dir="rtl"] .detailproject .head::after {
    left: auto;
    right: 0;
}

/* Overview Section */
.detailproject .lineheight220 {
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    line-height: 2.2;
}

.detailproject .lineheight220 span {
    color: #666;
    font-weight: 500;
}

.detailproject .lineheight220 b,
.detailproject .lineheight220 strong {
    color: #1d5f6f;
    font-weight: 700;
}

/* Content Section */
.detailproject .ck-content {
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.detailproject .ck-content p {
    margin-bottom: 15px;
}

/* Features Section */
.detailproject .row p {
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .project-downloads {
        padding: 20px;
    }
    
    .project-downloads .btn-download {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .detailproject .head {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .project-downloads {
        flex-direction: column;
        padding: 15px;
    }
    
    .project-downloads .btn-download {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
    
    .detailproject .head {
        font-size: 18px;
    }
    
    .detailproject .lineheight220 {
        font-size: 14px;
    }
}

/* Add subtle animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-downloads {
    animation: fadeInUp 0.6s ease-out;
}


/* ============================================
   About Us Page - Professional Design
   ============================================ */

/* Page Header Enhancement */
.page-content .container-fluid.w90 h1,
.page-content .container h1 {
    font-family: 'Tajawal', sans-serif;
    font-size: 42px;
    font-weight: 900;
    color: #1d5f6f;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.page-content .container-fluid.w90 h1::after,
.page-content .container h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, #d4a574 0%, transparent 100%);
}

[dir="rtl"] .page-content .container-fluid.w90 h1::after,
[dir="rtl"] .page-content .container h1::after {
    left: auto;
    right: 0;
    background: linear-gradient(90deg, transparent 0%, #d4a574 100%);
}

/* Content Typography */
.page-content .ck-content,
.page-content p {
    font-family: 'Tajawal', sans-serif;
    font-size: 17px;
    line-height: 2;
    color: #444;
    margin-bottom: 20px;
}

.page-content .ck-content h2,
.page-content h2 {
    font-family: 'Tajawal', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #1d5f6f;
    margin: 40px 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    position: relative;
}

.page-content .ck-content h2::before,
.page-content h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: #d4a574;
}

[dir="rtl"] .page-content .ck-content h2::before,
[dir="rtl"] .page-content h2::before {
    left: auto;
    right: 0;
}

.page-content .ck-content h3,
.page-content h3 {
    font-family: 'Tajawal', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #2c7a8c;
    margin: 30px 0 15px;
}

/* Lists Enhancement */
.page-content .ck-content ul,
.page-content ul {
    list-style: none;
    padding-right: 0;
    padding-left: 0;
}

.page-content .ck-content ul li,
.page-content ul li {
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 12px;
    padding-right: 30px;
    position: relative;
}

[dir="rtl"] .page-content .ck-content ul li,
[dir="rtl"] .page-content ul li {
    padding-right: 30px;
    padding-left: 0;
}

[dir="ltr"] .page-content .ck-content ul li,
[dir="ltr"] .page-content ul li {
    padding-left: 30px;
    padding-right: 0;
}

.page-content .ck-content ul li::before,
.page-content ul li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 0;
    color: #d4a574;
    font-weight: 900;
    font-size: 18px;
}

[dir="ltr"] .page-content .ck-content ul li::before,
[dir="ltr"] .page-content ul li::before {
    right: auto;
    left: 0;
}

/* Blockquote Enhancement */
.page-content .ck-content blockquote,
.page-content blockquote {
    font-family: 'Tajawal', sans-serif;
    font-size: 20px;
    font-style: italic;
    color: #1d5f6f;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    border-right: 5px solid #d4a574;
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

[dir="ltr"] .page-content .ck-content blockquote,
[dir="ltr"] .page-content blockquote {
    border-right: none;
    border-left: 5px solid #d4a574;
}

/* Images Enhancement */
.page-content .ck-content img,
.page-content img {
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    margin: 25px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-content .ck-content img:hover,
.page-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Add decorative elements */
.page-content .container-fluid.w90::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

[dir="ltr"] .page-content .container-fluid.w90::before {
    right: auto;
    left: 0;
}

/* Content Cards (if any) */
.page-content .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.page-content .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .page-content .container-fluid.w90 h1,
    .page-content .container h1 {
        font-size: 32px;
    }
    
    .page-content .ck-content h2,
    .page-content h2 {
        font-size: 26px;
    }
    
    .page-content .ck-content h3,
    .page-content h3 {
        font-size: 20px;
    }
    
    .page-content .ck-content,
    .page-content p {
        font-size: 15px;
    }
    
    .page-content .ck-content blockquote,
    .page-content blockquote {
        font-size: 17px;
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .page-content .container-fluid.w90 h1,
    .page-content .container h1 {
        font-size: 28px;
    }
    
    .page-content .ck-content h2,
    .page-content h2 {
        font-size: 22px;
    }
}

/* Add smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Fade in animation for content */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-content .container-fluid.w90 > *,
.page-content .container > * {
    animation: fadeIn 0.8s ease-out;
}


/* ============================================
   Property Detail Page - Professional Layout
   ============================================ */

/* Section Headers */
.detailproject .headifhouse {
    font-family: 'Tajawal', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #1d5f6f;
    margin: 40px 0 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid #e0e0e0;
    position: relative;
}

.detailproject .headifhouse::before {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, #d4a574 0%, transparent 100%);
}

[dir="ltr"] .detailproject .headifhouse::before {
    right: auto;
    left: 0;
    background: linear-gradient(90deg, #d4a574 0%, transparent 100%);
}

/* Overview Table - Card Style */
.detailproject .table-striped {
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.detailproject .table-striped tr {
    border: none;
    transition: background 0.3s ease;
}

.detailproject .table-striped tr:hover {
    background: #f8f9fa !important;
}

.detailproject .table-striped td {
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    padding: 15px 20px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
}

.detailproject .table-striped td:first-child {
    color: #666;
    font-weight: 500;
    width: 40%;
}

.detailproject .table-striped td:last-child {
    color: #1d5f6f;
    font-weight: 700;
}

/* Features Grid - Icon Cards */
.detailproject .row .col-sm-4 p {
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.detailproject .row .col-sm-4 p:hover {
    background: white;
    border-color: #d4a574;
    transform: translateX(-5px);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

[dir="ltr"] .detailproject .row .col-sm-4 p:hover {
    transform: translateX(5px);
}

.detailproject .row .col-sm-4 p i {
    color: #d4a574;
    font-size: 20px;
    min-width: 24px;
}

.detailproject .row .col-sm-4 p img {
    width: 24px;
    height: 24px;
    min-width: 24px;
}

/* Facilities - Circular Icons */
.detailproject .row .col-sm-4 p {
    position: relative;
}

/* Description Content */
.detailproject .ck-content {
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    line-height: 2;
    color: #444;
    background: #fafafa;
    padding: 30px;
    border-radius: 12px;
    border-right: 4px solid #d4a574;
}

[dir="ltr"] .detailproject .ck-content {
    border-right: none;
    border-left: 4px solid #d4a574;
}

.detailproject .ck-content p {
    margin-bottom: 15px;
}

.detailproject .ck-content ul {
    list-style: none;
    padding: 0;
}

.detailproject .ck-content ul li {
    padding-right: 25px;
    position: relative;
    margin-bottom: 10px;
}

[dir="ltr"] .detailproject .ck-content ul li {
    padding-right: 0;
    padding-left: 25px;
}

.detailproject .ck-content ul li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #d4a574;
    font-weight: 900;
}

[dir="ltr"] .detailproject .ck-content ul li::before {
    right: auto;
    left: 0;
}

/* Price Display */
.detailproject .pricehouse {
    font-family: 'Tajawal', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: #1d5f6f;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.detailproject .pricehouse .icon-saudi-riyal {
    font-size: 32px;
}

/* Property Info Icons */
.detailproject .threemt {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.detailproject .threemt span {
    background: #f8f9fa;
    padding: 10px 18px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1d5f6f;
    transition: all 0.3s ease;
}

.detailproject .threemt span:hover {
    background: #1d5f6f;
    color: white;
    transform: translateY(-2px);
}

.detailproject .threemt span img {
    width: 18px;
    height: 18px;
}

/* Map Container */
.detailproject #map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .detailproject .headifhouse {
        font-size: 22px;
    }
    
    .detailproject .pricehouse {
        font-size: 26px;
    }
    
    .detailproject .table-striped td {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    .detailproject .ck-content {
        padding: 20px;
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .detailproject .headifhouse {
        font-size: 20px;
    }
    
    .detailproject .pricehouse {
        font-size: 24px;
    }
    
    .detailproject .threemt {
        gap: 10px;
    }
    
    .detailproject .threemt span {
        padding: 8px 14px;
        font-size: 13px;
    }
}


/* ============================================
   Property Details - Grid Style with Icons
   ============================================ */

.property-details-section {
    margin: 30px 0;
}

.property-details-section .section-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #d4a574;
    position: relative;
}

.property-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #fafafa;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
}

.detail-item:hover {
    background: white;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.detail-item.highlight {
    background: #fafafa;
    border: 2px solid #1d5f6f;
}

.detail-item.highlight:hover {
    background: white;
    border-color: #d4a574;
}

.detail-item.highlight .detail-icon {
    background: #1d5f6f;
}

.detail-item.highlight:hover .detail-icon {
    background: #d4a574;
}

.detail-item.highlight .detail-label {
    color: #666;
}

.detail-item.highlight .detail-value {
    color: #1d5f6f;
    font-weight: 900;
}

.detail-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: #1d5f6f;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.detail-item:hover .detail-icon {
    background: #d4a574;
    transform: scale(1.1);
}

.detail-icon i {
    color: white;
    font-size: 20px;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.detail-label {
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

.detail-value {
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.detail-value a {
    color: #1d5f6f;
    text-decoration: none;
}

.detail-value a:hover {
    color: #d4a574;
}

/* Responsive Design for Property Details */
@media (max-width: 992px) {
    .property-details-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .property-details-section .section-title {
        font-size: 20px;
    }
    
    .property-details-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .detail-item {
        padding: 15px;
    }
    
    .detail-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }
    
    .detail-icon i {
        font-size: 18px;
    }
    
    .detail-label {
        font-size: 12px;
    }
    
    .detail-value {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .property-details-section .section-title {
        font-size: 18px;
    }
    
    .detail-item {
        padding: 12px;
        gap: 12px;
    }
    
    .detail-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    
    .detail-icon i {
        font-size: 16px;
    }
    
    .detail-label {
        font-size: 11px;
    }
    
    .detail-value {
        font-size: 13px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-item {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.detail-item:nth-child(1) { animation-delay: 0.05s; }
.detail-item:nth-child(2) { animation-delay: 0.1s; }
.detail-item:nth-child(3) { animation-delay: 0.15s; }
.detail-item:nth-child(4) { animation-delay: 0.2s; }
.detail-item:nth-child(5) { animation-delay: 0.25s; }
.detail-item:nth-child(6) { animation-delay: 0.3s; }
.detail-item:nth-child(7) { animation-delay: 0.35s; }
.detail-item:nth-child(8) { animation-delay: 0.4s; }

/* Print Styles */
@media print {
    .detail-item {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
        animation: none;
    }
    
    .detail-item:hover {
        transform: none;
    }
}


/* ============================================
   Property Features - Circular Icons Style
   ============================================ */

/* Features Section with Circular Icons */
.property-features-section {
    margin: 40px 0;
}

.property-features-section .headifhouse {
    font-family: 'Tajawal', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 2px solid #d4a574;
    position: relative;
}

.property-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
    background: #fafafa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: white;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #1d5f6f;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    background: #d4a574;
    transform: scale(1.1);
}

.feature-icon i {
    color: white;
    font-size: 24px;
}

.feature-icon img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

.feature-name {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Facilities Section with Circular Icons */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.facility-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
    background: #fafafa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.facility-item:hover {
    background: white;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.facility-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #1d5f6f;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.facility-item:hover .facility-icon {
    background: #d4a574;
    transform: scale(1.1);
}

.facility-icon i {
    color: white;
    font-size: 24px;
}

.facility-icon img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

.facility-name {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.facility-distance {
    font-family: 'Tajawal', sans-serif;
    font-size: 12px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .property-features-grid,
    .facilities-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .feature-icon,
    .facility-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon i,
    .facility-icon i {
        font-size: 20px;
    }
    
    .feature-icon img,
    .facility-icon img {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 576px) {
    .property-features-grid,
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}


/* ============================================
   Location Cascade - Country > State > City
   ============================================ */

.location-cascade-wrapper {
    width: 100%;
}

.location-cascade-wrapper .form-group {
    margin-bottom: 0;
}

.location-cascade-wrapper label {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.location-cascade-wrapper select {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    height: 45px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 0 15px;
    background-color: white;
    transition: all 0.3s ease;
}

.location-cascade-wrapper select:focus {
    border-color: #1d5f6f;
    box-shadow: 0 0 0 0.2rem rgba(29, 95, 111, 0.15);
}

.location-cascade-wrapper select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .location-cascade-wrapper .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .location-cascade-wrapper .col-md-4 {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .location-cascade-wrapper label {
        font-size: 13px;
    }
    
    .location-cascade-wrapper select {
        font-size: 13px;
        height: 42px;
    }
}

@media (max-width: 576px) {
    .location-cascade-wrapper .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }
    
    .location-cascade-wrapper .col-md-4:last-child {
        margin-bottom: 0;
    }
}

/* Search Box Adjustments */
.search-box .search-box-items .row {
    align-items: flex-end;
}

.search-box .form-group label {
    font-family: 'Tajawal', sans-serif;
}

@media (max-width: 992px) {
    .search-box .col-12 {
        margin-bottom: 15px;
    }
}


/* ============================================
   Search Box Two-Row Layout - Aligned
   ============================================ */

.search-box-items .row {
    align-items: flex-end;
}

/* Ensure all columns have same structure */
.search-box-items .row > div {
    display: flex;
    flex-direction: column;
}

/* Make all labels same height */
.search-box-items .control-label {
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    font-family: 'Tajawal', sans-serif;
    height: 22px;
    line-height: 22px;
}

/* Ensure all inputs and buttons have same height */
.search-box-items .form-control,
.search-box-items .btn-secondary,
.search-box-items .btn-primary,
.search-box-items input[type="text"],
.search-box-items select,
.search-box-items .dropdown .btn {
    height: 45px;
    line-height: normal;
}

.search-box-items .dropdown .btn {
    width: 100%;
    text-align: right;
    padding-right: 35px;
    padding-left: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

[dir="ltr"] .search-box-items .dropdown .btn {
    text-align: left;
    padding-left: 35px;
    padding-right: 15px;
}

.search-box-items .dropdown .btn::after {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

[dir="ltr"] .search-box-items .dropdown .btn::after {
    right: auto;
    left: 15px;
}

/* Form group wrapper - ensure consistent spacing */
.search-box-items .form-group {
    margin-bottom: 0 !important;
    display: flex;
    flex-direction: column;
}

/* Dropdown wrapper */
.search-box-items .dropdown {
    margin-bottom: 0 !important;
}

/* Override any mb-2 classes in search box */
.search-box-items .mb-2 {
    margin-bottom: 0 !important;
}

/* Select dropdown wrapper */
.search-box-items .select-dropdown {
    margin-bottom: 0 !important;
}

/* Button group alignment */
.search-box-items .btn-group {
    height: 45px;
}

.search-box-items .btn-group .btn {
    height: 45px;
}

/* Input with icon wrapper */
.search-box-items .input-has-icon {
    position: relative;
    height: 45px;
}

.search-box-items .input-has-icon input {
    height: 45px;
}

/* Ensure all elements in both rows are aligned */
.search-box-items .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Make sure all wrappers take full height */
.search-box-items .row > [class*="col-"] > * {
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-box-items .control-label {
        height: 20px;
        line-height: 20px;
        font-size: 13px;
    }
    
    .search-box-items .form-control,
    .search-box-items .btn-secondary,
    .search-box-items .btn-primary,
    .search-box-items input[type="text"],
    .search-box-items select,
    .search-box-items .dropdown .btn {
        height: 42px;
    }
    
    .search-box-items .btn-group,
    .search-box-items .btn-group .btn {
        height: 42px;
    }
    
    .search-box-items .input-has-icon,
    .search-box-items .input-has-icon input {
        height: 42px;
    }
}


/* ============================================
   Home Page Location Cascade Styling
   ============================================ */

.location-cascade-wrapper-home {
    flex: 1;
    min-width: 140px;
    background-color: white;
    display: flex;
    align-items: center;
}

.location-cascade-wrapper-home select {
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    height: 100%;
    width: 100%;
    border: none;
    background-color: white;
    padding: 0 15px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 10px center;
    background-size: 16px;
    padding-left: 35px;
}

[dir="ltr"] .location-cascade-wrapper-home select {
    background-position: right 10px center;
    padding-left: 15px;
    padding-right: 35px;
}

.location-cascade-wrapper-home select:focus {
    outline: none;
    background-color: #f8f9fa;
}

.location-cascade-wrapper-home select:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.7;
    color: #6c757d;
}

.location-cascade-wrapper-home select option {
    background-color: white;
    color: #333;
    padding: 10px;
}

/* Adjust input group for location cascade */
.home_banner .input-group-lg .location-cascade-wrapper-home {
    display: flex;
    align-items: center;
}

/* Make the home search responsive */
.home_banner .input-group-lg {
    display: flex;
    flex-wrap: nowrap;
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
}

.home_banner .keyword-input {
    flex: 2;
    min-width: 180px;
}

/* Responsive */
@media (max-width: 1200px) {
    .location-cascade-wrapper-home {
        min-width: 120px;
    }
    
    .location-cascade-wrapper-home select {
        font-size: 14px;
        padding: 0 10px;
        padding-left: 30px;
    }
    
    [dir="ltr"] .location-cascade-wrapper-home select {
        padding-left: 10px;
        padding-right: 30px;
    }
    
    .home_banner .keyword-input {
        flex: 1.5;
        min-width: 140px;
    }
}

@media (max-width: 992px) {
    .location-cascade-wrapper-home {
        min-width: 100px;
    }
    
    .location-cascade-wrapper-home select {
        font-size: 13px;
        padding: 0 8px;
        padding-left: 28px;
        background-size: 14px;
    }
    
    [dir="ltr"] .location-cascade-wrapper-home select {
        padding-left: 8px;
        padding-right: 28px;
    }
    
    .home_banner .keyword-input {
        flex: 1;
        min-width: 100px;
    }
}

@media (max-width: 768px) {
    .home_banner .input-group-lg {
        flex-wrap: wrap;
        padding: 10px;
    }
    
    .home_banner .keyword-input {
        width: 100%;
        flex: none;
        margin-bottom: 10px;
        order: 1;
    }
    
    .home_banner .input-group-prepend:first-of-type {
        order: 0;
    }
    
    .location-cascade-wrapper-home {
        width: calc(33.333% - 8px);
        min-width: auto;
        margin: 5px 4px;
        border: 1px solid #e0e0e0;
        border-radius: 5px;
        order: 2;
    }
    
    .location-cascade-wrapper-home select {
        padding: 12px 10px;
        padding-left: 30px;
        font-size: 14px;
    }
    
    [dir="ltr"] .location-cascade-wrapper-home select {
        padding-left: 10px;
        padding-right: 30px;
    }
    
    .home_banner .input-group-prepend:not(:first-of-type) {
        display: none;
    }
    
    .home_banner .search-button-wrapper {
        width: 100%;
        margin-top: 10px;
        order: 3;
    }
    
    .home_banner .search-button-wrapper .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .location-cascade-wrapper-home {
        width: 100%;
        margin: 5px 0;
    }
}


/* ============================================
   Home Page Advanced Search Styling
   ============================================ */

.home_banner .advanced-search {
    width: 100%;
    margin-top: 20px;
    text-align: center;
}

.home_banner .advanced-search-toggler {
    display: inline-block;
    padding: 12px 30px;
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
    border-radius: 30px;
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
}

.home_banner .advanced-search-toggler:hover {
    background-color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    color: #333;
}

.home_banner .advanced-search-toggler i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

[dir="ltr"] .home_banner .advanced-search-toggler i {
    margin-right: 0;
    margin-left: 8px;
}

.home_banner .advanced-search-toggler.active i {
    transform: rotate(180deg);
}

.home_banner .advanced-search-content {
    margin-top: 20px;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.97);
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .home_banner .advanced-search {
        margin-top: 15px;
    }
    
    .home_banner .advanced-search-toggler {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .home_banner .advanced-search-content {
        padding: 20px 15px;
    }
}

@media (max-width: 576px) {
    .home_banner .advanced-search-toggler {
        padding: 8px 20px;
        font-size: 13px;
    }
}


/* ============================================
   Dashboard Language Switcher Styling
   ============================================ */

.language-switcher .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.language-switcher .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.language-switcher .dropdown-menu {
    min-width: 150px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
}

.language-switcher .dropdown-item {
    padding: 10px 20px;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.language-switcher .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #1d5f6f;
}

.language-switcher .dropdown-item.active {
    background-color: #1d5f6f;
    color: white;
    font-weight: 600;
}

.language-switcher .dropdown-item.active:hover {
    background-color: #063a5d;
}

.language-switcher .ti-language {
    font-size: 18px;
}

.language-switcher .ti-check {
    font-size: 16px;
}


/* ============================================
   Fix Dropdown Styling in Search Box
   ============================================ */

/* Fix dropdown button styling */
.search-box-items .dropdown .btn-secondary {
    background-color: white;
    border: 1px solid #e0e0e0;
    color: #333;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-align: right;
    padding: 0 15px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    transition: all 0.3s ease;
}

[dir="ltr"] .search-box-items .dropdown .btn-secondary {
    text-align: left;
}

.search-box-items .dropdown .btn-secondary:hover,
.search-box-items .dropdown .btn-secondary:focus,
.search-box-items .dropdown .btn-secondary:active {
    background-color: #f8f9fa;
    border-color: #1d5f6f;
    color: #333;
    box-shadow: 0 0 0 0.2rem rgba(29, 95, 111, 0.15);
}

.search-box-items .dropdown .btn-secondary span {
    flex: 1;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[dir="ltr"] .search-box-items .dropdown .btn-secondary span {
    text-align: left;
}

/* Fix dropdown toggle arrow */
.search-box-items .dropdown .btn-secondary::after {
    margin-right: 0;
    margin-left: 0;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-left: 0.3em solid transparent;
}

/* Fix dropdown menu */
.search-box-items .dropdown-menu {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 10px;
    min-width: 100%;
    margin-top: 5px;
}

.search-box-items .dropdown-item {
    padding: 10px 15px;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    color: #333;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.search-box-items .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #1d5f6f;
}

/* Fix min-max input inside dropdown */
.search-box-items .dropdown-menu .min-max-input {
    padding: 10px;
}

.search-box-items .dropdown-menu .min-max-input .form-control {
    height: 40px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

.search-box-items .dropdown-menu .min-max-input .form-control:focus {
    border-color: #1d5f6f;
    box-shadow: 0 0 0 0.2rem rgba(29, 95, 111, 0.15);
}

.search-box-items .dropdown-menu .min-max-input label {
    font-size: 12px;
    margin-bottom: 5px;
    color: #666;
}

.search-box-items .dropdown-menu .min-max-input .btn {
    height: 40px;
    padding: 0 15px;
    font-size: 14px;
}

/* Fix choices dropdown - الاختيارات */
.search-box-items .select-dropdown {
    width: 100%;
    margin-bottom: 0 !important;
}

.search-box-items .select-dropdown .btn-secondary {
    width: 100%;
    background-color: white;
    border: 1px solid #e0e0e0;
    color: #333;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-align: right;
    padding: 0 15px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

[dir="ltr"] .search-box-items .select-dropdown .btn-secondary {
    text-align: left;
}

.search-box-items .select-dropdown .btn-secondary:hover,
.search-box-items .select-dropdown .btn-secondary:focus,
.search-box-items .select-dropdown .btn-secondary:active,
.search-box-items .select-dropdown .btn-secondary.show {
    background-color: #f8f9fa !important;
    border-color: #1d5f6f !important;
    color: #333 !important;
    box-shadow: 0 0 0 0.2rem rgba(29, 95, 111, 0.15) !important;
}

.search-box-items .select-dropdown .btn-secondary span {
    flex: 1;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[dir="ltr"] .search-box-items .select-dropdown .btn-secondary span {
    text-align: left;
}

.search-box-items .select-dropdown .btn-secondary::after {
    margin-right: 0;
    margin-left: 0;
}

/* Fix dropdown menu for choices */
.search-box-items .select-dropdown .dropdown-menu {
    width: 100%;
    min-width: 320px !important;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 15px;
    margin-top: 5px;
}

.search-box-items .select-dropdown .dropdown-menu .dropdown-item {
    padding: 10px 0;
    border: none;
    background: transparent;
}

.search-box-items .select-dropdown .dropdown-menu .dropdown-item:hover {
    background: transparent;
}

/* Fix form controls inside dropdown */
.search-box-items .select-dropdown .dropdown-menu .form-control,
.search-box-items .select-dropdown .dropdown-menu select {
    height: 40px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-family: 'Tajawal', sans-serif;
    padding: 8px 12px;
}

.search-box-items .select-dropdown .dropdown-menu .form-control:focus,
.search-box-items .select-dropdown .dropdown-menu select:focus {
    border-color: #1d5f6f;
    box-shadow: 0 0 0 0.2rem rgba(29, 95, 111, 0.15);
}

.search-box-items .select-dropdown .dropdown-menu label {
    font-size: 13px;
    margin-bottom: 5px;
    color: #666;
    font-weight: 600;
}

/* Fix buttons inside dropdown */
.search-box-items .select-dropdown .dropdown-menu .btn {
    height: 38px;
    padding: 0 20px;
    font-size: 14px;
    border-radius: 5px;
}

.search-box-items .select-dropdown .dropdown-menu .btn-primary {
    background-color: #1d5f6f;
    border-color: #1d5f6f;
}

.search-box-items .select-dropdown .dropdown-menu .btn-primary:hover {
    background-color: #063a5d;
    border-color: #063a5d;
}

.search-box-items .select-dropdown .dropdown-menu .btn-clear {
    background-color: #6c757d;
    border-color: #6c757d;
}

.search-box-items .select-dropdown .dropdown-menu .btn-clear:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Fix row spacing inside dropdown */
.search-box-items .select-dropdown .dropdown-menu .row {
    margin-left: -5px;
    margin-right: -5px;
}

.search-box-items .select-dropdown .dropdown-menu .row > [class*="col-"] {
    padding-left: 5px;
    padding-right: 5px;
}

/* Keep dropdown open when clicking inside */
.search-box-items .select-dropdown .dropdown-menu.keep-open {
    display: block;
}

/* Fix choices.js if used */
.search-box-items .choices {
    width: 100%;
}

.search-box-items .choices__inner {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    min-height: 45px;
    padding: 8px 12px;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
}

.search-box-items .choices__inner:hover {
    border-color: #1d5f6f;
}

.search-box-items .choices.is-focused .choices__inner {
    border-color: #1d5f6f;
    box-shadow: 0 0 0 0.2rem rgba(29, 95, 111, 0.15);
}

.search-box-items .choices__list--dropdown {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    margin-top: 5px;
}

.search-box-items .choices__item {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .search-box-items .dropdown .btn-secondary {
        height: 42px;
        font-size: 13px;
        padding: 0 12px;
    }
    
    .search-box-items .dropdown-menu .min-max-input .form-control {
        height: 38px;
        font-size: 13px;
    }
    
    .search-box-items .dropdown-menu .min-max-input .btn {
        height: 38px;
        font-size: 13px;
    }
    
    .search-box-items .choices__inner {
        min-height: 42px;
        font-size: 13px;
    }
}


/* ============================================
   Additional Fixes for Choices Dropdown
   ============================================ */

/* Override Bootstrap dropdown styles */
.search-box-items .dropdown .btn-secondary.dropdown-toggle {
    background-color: white !important;
    border-color: #e0e0e0 !important;
    color: #333 !important;
}

.search-box-items .dropdown .btn-secondary.dropdown-toggle:not(:disabled):not(.disabled):active,
.search-box-items .dropdown .btn-secondary.dropdown-toggle:not(:disabled):not(.disabled).active,
.search-box-items .dropdown.show .btn-secondary.dropdown-toggle {
    background-color: #f8f9fa !important;
    border-color: #1d5f6f !important;
    color: #333 !important;
}

/* Fix dropdown menu positioning */
.search-box-items .dropdown-menu {
    transform: none !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
}

[dir="rtl"] .search-box-items .dropdown-menu {
    left: auto !important;
    right: 0 !important;
}

/* Ensure dropdown stays open when clicking inside */
.search-box-items .dropdown-menu.keep-open {
    display: block !important;
}

/* Fix form group margins inside dropdown */
.search-box-items .dropdown-menu .form-group {
    margin-bottom: 15px;
}

.search-box-items .dropdown-menu .form-group:last-child {
    margin-bottom: 0;
}

/* Fix select elements inside dropdown */
.search-box-items .dropdown-menu select.form-control {
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    background-color: white;
    cursor: pointer;
}

/* Fix input groups inside dropdown */
.search-box-items .dropdown-menu .input-group {
    width: 100%;
}

/* Responsive adjustments for choices dropdown */
@media (max-width: 768px) {
    .search-box-items .select-dropdown .btn-secondary {
        height: 42px;
        font-size: 13px;
        padding: 0 12px;
    }
    
    .search-box-items .select-dropdown .dropdown-menu {
        min-width: 280px !important;
        padding: 12px;
    }
    
    .search-box-items .select-dropdown .dropdown-menu .form-control,
    .search-box-items .select-dropdown .dropdown-menu select {
        height: 38px;
        font-size: 13px;
    }
    
    .search-box-items .select-dropdown .dropdown-menu .btn {
        height: 36px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .search-box-items .select-dropdown .dropdown-menu {
        min-width: 100% !important;
        max-width: 100%;
    }
}


/* ============================================
   OK Button Next to Floor Field
   ============================================ */

/* Align floor field with OK button */
.search-box-items .select-dropdown .dropdown-menu .row.align-items-end {
    align-items: flex-end !important;
}

.search-box-items .select-dropdown .dropdown-menu .row.align-items-end .form-group {
    margin-bottom: 0;
}

.search-box-items .select-dropdown .dropdown-menu .row.align-items-end .btn {
    height: 40px;
    margin-bottom: 0;
    padding: 0 25px;
    white-space: nowrap;
}

/* Ensure floor select has same height as button */
.search-box-items .select-dropdown .dropdown-menu .row.align-items-end select {
    height: 40px;
}

/* Make the button column auto-width */
.search-box-items .select-dropdown .dropdown-menu .row.align-items-end .col-auto {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
}

/* Make the floor field take remaining space */
.search-box-items .select-dropdown .dropdown-menu .row.align-items-end .col {
    flex: 1 1 auto;
}

/* Remove clear button styles */
.search-box-items .select-dropdown .dropdown-menu .btn-clear {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .search-box-items .select-dropdown .dropdown-menu .row.align-items-end .btn {
        height: 38px;
        padding: 0 20px;
        font-size: 13px;
    }
    
    .search-box-items .select-dropdown .dropdown-menu .row.align-items-end select {
        height: 38px;
    }
}


/* ============================================
   Performance Optimization - Critical CSS
   ============================================ */

/* Optimize font loading */
@font-face {
    font-family: 'Tajawal';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Tajawal'), url(https://fonts.gstatic.com/s/tajawal/v9/Iurf6YBj_oCad4k1l_6gLrZjiLlJ-G0.woff2) format('woff2');
}

/* Reduce layout shift */
img {
    height: auto;
    max-width: 100%;
}

/* Optimize animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Will-change for better performance */
.property-map-pin:hover,
.detail-item:hover,
.feature-item:hover {
    will-change: transform;
}

/* GPU acceleration */
.leaflet-marker-icon,
.property-map-pin {
    transform: translateZ(0);
    backface-visibility: hidden;
}


/* ============================================
   Fix Dropdown Closing Issue
   ============================================ */

/* Prevent dropdown from closing when clicking inside */
.search-box-items .select-dropdown .dropdown-menu {
    /* Remove keep-open behavior */
}

/* Close dropdown when clicking OK button - handled by JS */


/* ============================================
   RTL Dropdown Arrow Position Fix
   ============================================ */

/* Fix dropdown arrow position in RTL (Arabic) */
[dir="rtl"] .search-box-items .dropdown .btn-secondary::after {
    margin-right: auto;
    margin-left: 0;
    position: absolute;
    left: 15px;
    right: auto;
}

[dir="ltr"] .search-box-items .dropdown .btn-secondary::after {
    margin-left: auto;
    margin-right: 0;
    position: absolute;
    right: 15px;
    left: auto;
}

/* Adjust text padding to make room for arrow */
[dir="rtl"] .search-box-items .dropdown .btn-secondary {
    padding-left: 35px;
    padding-right: 15px;
    text-align: right;
}

[dir="ltr"] .search-box-items .dropdown .btn-secondary {
    padding-right: 35px;
    padding-left: 15px;
    text-align: left;
}

/* Fix for select dropdown specifically */
[dir="rtl"] .search-box-items .select-dropdown .btn-secondary::after {
    left: 15px;
    right: auto;
}

[dir="ltr"] .search-box-items .select-dropdown .btn-secondary::after {
    right: 15px;
    left: auto;
}

/* Ensure span text alignment */
[dir="rtl"] .search-box-items .dropdown .btn-secondary span {
    text-align: right;
    padding-left: 0;
    padding-right: 0;
    display: block;
    width: 100%;
}

[dir="ltr"] .search-box-items .dropdown .btn-secondary span {
    text-align: left;
    padding-right: 0;
    padding-left: 0;
    display: block;
    width: 100%;
}

/* Fix dropdown menu text alignment in RTL */
[dir="rtl"] .search-box-items .dropdown-menu {
    text-align: right;
}

[dir="rtl"] .search-box-items .dropdown-menu label {
    text-align: right;
    display: block;
}

[dir="rtl"] .search-box-items .dropdown-menu .form-control,
[dir="rtl"] .search-box-items .dropdown-menu select {
    text-align: right;
    direction: rtl;
}

[dir="ltr"] .search-box-items .dropdown-menu {
    text-align: left;
}

[dir="ltr"] .search-box-items .dropdown-menu label {
    text-align: left;
    display: block;
}

[dir="ltr"] .search-box-items .dropdown-menu .form-control,
[dir="ltr"] .search-box-items .dropdown-menu select {
    text-align: left;
    direction: ltr;
}


/* ============================================
   Keep Dropdown Open - Force Display
   ============================================ */

/* Force dropdown to stay open when clicking inside */
.search-box-items .dropdown-menu.keep-open.show {
    display: block !important;
}

/* Prevent Bootstrap from hiding dropdown */
.search-box-items .dropdown.show .dropdown-menu.keep-open {
    display: block !important;
}


/* ============================================
   Floor Plans - Professional 3-Column Grid
   ============================================ */

.floor-plans-section {
    margin: 40px 0;
}

.floor-plans-section .headifhouse {
    font-family: 'Tajawal', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1d5f6f;
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 3px solid #e0e0e0;
    position: relative;
}

.floor-plans-section .headifhouse::before {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, #d4a574 0%, transparent 100%);
}

[dir="ltr"] .floor-plans-section .headifhouse::before {
    right: auto;
    left: 0;
}

/* Floor Plans Grid */
.floor-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    align-items: start;
}

/* Floor Plan Card */
.floor-plan-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.floor-plan-card:hover {
    border-color: #1d5f6f;
    box-shadow: 0 4px 20px rgba(29, 95, 111, 0.15);
    transform: translateY(-3px);
}

.floor-plan-card.expanded {
    grid-column: span 3;
    border-color: #d4a574;
}

/* Floor Plan Summary */
.floor-plan-summary {
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.floor-plan-name {
    font-family: 'Tajawal', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1d5f6f;
    margin: 0 0 15px 0;
}

/* Quick Info Icons */
.floor-plan-quick-info {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.floor-plan-quick-info .info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.floor-plan-quick-info .info-item i {
    color: #d4a574;
    font-size: 18px;
}

.floor-plan-quick-info .info-item span {
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Price and Area */
.floor-plan-price-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.price-tag,
.area-tag {
    padding: 12px 15px;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    text-align: center;
}

.price-tag {
    border-color: #1d5f6f;
    background: linear-gradient(135deg, #1d5f6f 0%, #2c7a8c 100%);
}

.price-tag .label,
.price-tag .value {
    color: #fff;
}

.area-tag {
    border-color: #d4a574;
}

.price-tag .label,
.area-tag .label {
    font-family: 'Tajawal', sans-serif;
    font-size: 12px;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.price-tag .value,
.area-tag .value {
    font-family: 'Tajawal', sans-serif;
    font-size: 18px;
    font-weight: 700;
    display: block;
    color: #1d5f6f;
}

/* Action Buttons */
.floor-plan-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.floor-plan-actions .btn {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-inquiry {
    background: linear-gradient(135deg, #d4a574 0%, #c89860 100%);
    color: #fff;
}

.btn-inquiry:hover {
    background: linear-gradient(135deg, #c89860 0%, #b8864d 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.btn-details {
    background: #fff;
    color: #1d5f6f;
    border: 2px solid #1d5f6f;
    white-space: nowrap;
}

.btn-details:hover {
    background: #1d5f6f;
    color: #fff;
}

.btn-details .text-hide {
    display: none;
}

.btn-details[aria-expanded="true"] .text-show {
    display: none;
}

.btn-details[aria-expanded="true"] .text-hide {
    display: inline;
}

.btn-details[aria-expanded="true"] i {
    transform: rotate(180deg);
}



/* Floor Plan Content */
.floor-plan-content {
    padding: 0;
    display: none;
}

.floor-plan-content.show {
    display: block;
    padding: 20px;
    animation: slideDown 0.3s ease-out;
}

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

/* Expanded Card Layout */
.floor-plan-card.expanded .floor-plan-content.show {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.floor-plan-card.expanded .floor-plan-description {
    margin-bottom: 0;
}

.floor-plan-card.expanded .floor-plan-image {
    margin-top: 0;
}

.floor-plan-description {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
}

.floor-plan-description p {
    margin-bottom: 10px;
}

/* Floor Plan Image */
.floor-plan-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 15px;
}

.floor-plan-image-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.floor-plan-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.floor-plan-image-link:hover img {
    transform: scale(1.05);
}

.floor-plan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(29, 95, 111, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floor-plan-image-link:hover .floor-plan-overlay {
    opacity: 1;
}

.floor-plan-overlay i {
    color: #fff;
    font-size: 32px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .floor-plans-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .floor-plan-card.expanded {
        grid-column: span 2;
    }
    
    .floor-plan-card.expanded .floor-plan-content.show {
        grid-template-columns: 1fr;
    }
    
    .floor-plan-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .floor-plans-section .headifhouse {
        font-size: 20px;
    }
    
    .floor-plans-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .floor-plan-card.expanded {
        grid-column: span 1;
    }
    
    .floor-plan-card.expanded .floor-plan-content.show {
        grid-template-columns: 1fr;
    }
    
    .floor-plan-summary {
        padding: 20px;
    }
    
    .floor-plan-name {
        font-size: 18px;
    }
    
    .floor-plan-quick-info {
        gap: 15px;
    }
    
    .floor-plan-price-area {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .floor-plan-actions {
        grid-template-columns: 1fr;
    }
    
    .floor-plan-actions .btn {
        font-size: 13px;
        padding: 10px 15px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floor-plan-card {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.floor-plan-card:nth-child(1) { animation-delay: 0.1s; }
.floor-plan-card:nth-child(2) { animation-delay: 0.2s; }
.floor-plan-card:nth-child(3) { animation-delay: 0.3s; }
.floor-plan-card:nth-child(4) { animation-delay: 0.4s; }
.floor-plan-card:nth-child(5) { animation-delay: 0.5s; }
.floor-plan-card:nth-child(6) { animation-delay: 0.6s; }


/* ============================================
   Enhanced Property Card & Floor Plans Styling
   ============================================ */

/* Property Card Enhancements */
.property-card-enhanced .blii .heart {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.property-card-enhanced .blii .heart:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.property-card-enhanced .property-price-main {
    margin: 15px 0 10px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color, #ff6600);
}

.property-card-enhanced .property-price-main .price-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color, #ff6600);
    display: block;
}

.property-card-enhanced .property-details-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0;
    padding: 12px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.property-card-enhanced .property-details-row .detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #495057;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.property-card-enhanced .property-details-row .detail-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.property-card-enhanced .property-details-row .detail-item img {
    opacity: 0.7;
}

.property-card-enhanced .property-details-row .detail-item span {
    font-weight: 500;
}

.property-card-enhanced .property-inquiry-btn {
    margin-top: 15px;
}

.property-card-enhanced .btn-inquiry {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: var(--primary-color, #ff6600);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    justify-content: center;
}

.property-card-enhanced .btn-inquiry:hover {
    background: var(--primary-hover-color, #e55a00);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
    color: #fff;
    text-decoration: none;
}

.property-card-enhanced .btn-inquiry i {
    font-size: 16px;
}

/* Floor Plans Enhanced Styling */
.floor-plans-section .floor-plan-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.floor-plans-section .floor-plan-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.floor-plans-section .floor-plan-header {
    margin-bottom: 15px;
}

.floor-plans-section .floor-plan-name {
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 12px;
}

.floor-plans-section .floor-plan-price-main {
    padding: 12px 15px;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe6cc 100%);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color, #ff6600);
    margin-bottom: 15px;
}

.floor-plans-section .floor-plan-price-main .price-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color, #ff6600);
    display: block;
}

.floor-plans-section .floor-plan-details-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.floor-plans-section .floor-plan-details-row .detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #495057;
    padding: 8px 14px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: fit-content;
}

.floor-plans-section .floor-plan-details-row .detail-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.floor-plans-section .floor-plan-details-row .detail-item img {
    opacity: 0.7;
}

.floor-plans-section .floor-plan-details-row .detail-item span {
    font-weight: 500;
    white-space: nowrap;
}

.floor-plans-section .floor-plan-actions {
    margin-top: 15px;
}

.floor-plans-section .btn-details-floor {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--primary-color, #ff6600);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.floor-plans-section .btn-details-floor:hover {
    background: var(--primary-hover-color, #e55a00);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.floor-plans-section .btn-details-floor .text-hide {
    display: none;
}

.floor-plans-section .floor-plan-card.expanded .btn-details-floor .text-show {
    display: none;
}

.floor-plans-section .floor-plan-card.expanded .btn-details-floor .text-hide {
    display: inline;
}

.floor-plans-section .btn-details-floor i {
    transition: transform 0.3s ease;
}

.floor-plans-section .floor-plan-card.expanded .btn-details-floor i {
    transform: rotate(180deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .property-card-enhanced .property-details-row {
        gap: 8px;
    }
    
    .property-card-enhanced .property-details-row .detail-item {
        font-size: 13px;
        padding: 5px 10px;
    }
    
    .property-card-enhanced .property-price-main .price-value {
        font-size: 18px;
    }
    
    .floor-plans-section .floor-plan-details-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .floor-plans-section .floor-plan-details-row .detail-item {
        flex: none;
        width: 100%;
    }
    
    .floor-plans-section .btn-details-floor {
        width: 100%;
    }
    
    .floor-plans-section .floor-plan-price-main .price-value {
        font-size: 20px;
    }
}

/* RTL Support */
[dir="rtl"] .property-card-enhanced .property-price-main {
    border-left: none;
    border-right: 4px solid var(--primary-color, #ff6600);
}

[dir="rtl"] .floor-plans-section .floor-plan-price-main {
    border-left: none;
    border-right: 4px solid var(--primary-color, #ff6600);
}

[dir="rtl"] .property-card-enhanced .blii .heart {
    right: auto;
    left: 15px;
}
