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

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

/* ============================================
   Loading Indicators
   ============================================ */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #1e3a5f;
    --color-primary-dark: #0f2a47;
    --color-gold: #D4AF37;
    --color-white: #FFFFFF;
    --color-gray-light: #f8f9fa;
    --color-gray: #6c757d;
    --color-gray-dark: #343a40;
    --color-text: #212529;
    --color-text-light: #6c757d;
    --transition: all 0.3s ease;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 80px;
}

body[dir="ltr"],
html[dir="ltr"] body {
    font-family: 'Inter', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

/* ============================================
   Header
   ============================================ */
.header {
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    transition: var(--transition);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    transition: var(--transition);
}

.logo-link:hover .logo-image {
    transform: translateY(-2px);
    opacity: 0.9;
}

.logo-text-ar {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-gray-dark);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.logo-text-en {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text-light);
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1rem;
    letter-spacing: 0.2px;
}

.nav-link .nav-link-en {
    font-size: 0.75rem;
    color: var(--color-text-light);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-gold);
}

/* Dropdown Menu Styles */
.nav-list li {
    position: relative;
}

.nav-list li.has-dropdown > .nav-link::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    margin-right: 6px;
    vertical-align: middle;
    border-top: 5px solid currentColor;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    transition: var(--transition);
    opacity: 0.7;
}

[dir="rtl"] .nav-list li.has-dropdown > .nav-link::after {
    margin-left: 0;
    margin-right: 6px;
}

[dir="ltr"] .nav-list li.has-dropdown > .nav-link::after {
    margin-left: 6px;
    margin-right: 0;
}

.nav-list li.has-dropdown:hover > .nav-link::after {
    transform: rotate(180deg);
    opacity: 1;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color-white);
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[dir="ltr"] .dropdown-menu {
    right: auto;
    left: 0;
}

.nav-list li.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

[dir="ltr"] .dropdown-menu li a {
    border-left: none;
    border-right: 3px solid transparent;
}

.dropdown-menu li a:hover {
    background: rgba(212, 175, 55, 0.08);
    color: var(--color-gold);
    border-color: var(--color-gold);
    padding-right: 1.75rem;
}

[dir="ltr"] .dropdown-menu li a:hover {
    padding-right: 1.5rem;
    padding-left: 1.75rem;
}

.dropdown-menu li:first-child a {
    border-radius: 8px 8px 0 0;
}

.dropdown-menu li:last-child a {
    border-radius: 0 0 8px 8px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switcher {
    padding: 0.5rem 1rem;
    background: var(--color-gray-light);
    color: #000000;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.lang-switcher:hover {
    background: #000000;
    color: var(--color-white);
    border-color: #000000;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

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

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold) 0%, #B8941F 100%);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #B8941F 0%, #9a7a1a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-secondary:hover {
    background: var(--color-white);
    color: #000000;
}

.btn-outline {
    background: transparent;
    color: #000000;
    border: 2px solid #000000;
}

.btn-outline:hover {
    background: #000000;
    color: var(--color-white);
}

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

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-hero {
    padding: 1.25rem 2.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Default background - will be overridden by hero-slider if slides exist */
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(20, 20, 20, 0.75) 100%),
                url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
    background-attachment: fixed;
}

/* When hero-slider exists, it will cover the default background */
.hero .hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(20, 20, 20, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding: 6rem 2rem;
    max-width: 1000px;
    width: 100%;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.1;
    color: var(--color-white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

.hero-title-gold {
    display: block;
    color: var(--color-gold);
    margin-top: 0.75rem;
    text-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-subtitle-en {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 4rem;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

/* ============================================
   Features Section
   ============================================ */
.features-section {
    background: var(--color-white);
}

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

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

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--color-gray-light);
    border-radius: 12px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background: var(--color-white);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.feature-icon svg {
    width: 40px;
    height: 40px;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gray-dark);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: var(--color-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ============================================
   Services Preview Section
   ============================================ */
.services-preview {
    background: var(--color-gray-light);
}

.services-preview-content {
    text-align: center;
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%),
                url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(20, 20, 20, 0.85) 100%);
    z-index: 1;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-white);
    position: relative;
    z-index: 2;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: var(--color-gray-light);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-gray-dark);
}

.cta-text {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ============================================
   Search Section
   ============================================ */
.search-section {
    background: var(--color-gray-light);
    padding: 2rem 0;
}

.search-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1rem;
    align-items: center;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper svg {
    position: absolute;
    right: 1rem;
    width: 20px;
    height: 20px;
    color: var(--color-text-light);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--color-white);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.search-select {
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--color-white);
    cursor: pointer;
    transition: var(--transition);
}

.search-select:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* ============================================
   Properties Section
   ============================================ */
.properties-section {
    background: var(--color-white);
}

/* Properties Filters */
.properties-filters {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--color-gray-light);
    border-radius: 12px;
}

.filter-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select {
    flex: 1;
    min-width: 200px;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    background: var(--color-white);
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:hover {
    border-color: var(--color-gold);
}

.filter-select:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.filter-form .btn {
    white-space: nowrap;
    min-width: 120px;
    padding: 0.875rem 1.5rem;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 1rem;
}

/* Make filter form responsive */
@media (max-width: 768px) {
    .filter-form {
        flex-direction: column;
    }
    
    .filter-select {
        width: 100%;
        min-width: 100%;
    }
    
    .filter-form .btn {
        width: 100%;
    }
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.property-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 1;
    transform: scale(1);
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.property-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--color-gray-light);
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.property-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.9rem;
}

.property-badge.sale {
    background: var(--color-gold);
}

.property-badge.rent {
    background: #28a745;
}

.property-content {
    padding: 1.5rem;
}

.property-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-gray-dark);
}

.property-location {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.property-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    background: var(--color-gray-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-gray-dark);
    text-align: right;
}

/* Fix text alignment for LTR (English) pages */
html[dir="ltr"] .section-title,
body[dir="ltr"] .section-title {
    text-align: left;
}

.contact-info {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    text-align: right;
}

.contact-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 500;
    text-align: right;
    display: block;
    width: 100%;
    margin-bottom: 0.25rem;
}

.contact-value {
    font-size: 1.1rem;
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: block;
    width: 100%;
    text-align: right;
    word-break: break-word;
    line-height: 1.5;
}

.contact-value[href^="tel:"],
.contact-value[href^="mailto:"] {
    direction: ltr;
    unicode-bidi: embed;
    display: block;
    width: 100%;
    text-align: right;
}

/* Fix text alignment for LTR (English) pages */
html[dir="ltr"] .contact-item,
body[dir="ltr"] .contact-item {
    text-align: left;
    align-items: flex-start;
}

html[dir="ltr"] .contact-label,
body[dir="ltr"] .contact-label {
    text-align: left;
}

html[dir="ltr"] .contact-value,
body[dir="ltr"] .contact-value {
    text-align: left;
}

html[dir="ltr"] .contact-value[href^="tel:"],
body[dir="ltr"] .contact-value[href^="tel:"],
html[dir="ltr"] .contact-value[href^="mailto:"],
body[dir="ltr"] .contact-value[href^="mailto:"] {
    text-align: left;
}

.contact-value:hover {
    color: var(--color-gold);
}

.contact-form-wrapper {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-caption {
    font-size: 1rem;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* CAPTCHA Styles */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.captcha-display {
    flex: 1;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border: 2px solid var(--color-gray);
    border-radius: 8px;
    padding: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.3rem;
    text-align: center;
    color: #000000;
    font-family: 'Courier New', monospace;
    user-select: none;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-captcha-refresh {
    background: #000000;
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.btn-captcha-refresh:hover {
    background: #1a1a1a;
    transform: rotate(90deg);
}

.btn-captcha-refresh svg {
    width: 20px;
    height: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--color-gray-dark);
    font-size: 0.95rem;
}

.form-control {
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--color-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-control.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--color-gray-dark);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-gold);
    padding-right: 5px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact svg {
    width: 20px;
    height: 20px;
    color: var(--color-gold);
    flex-shrink: 0;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--color-gold);
}

/* Fix phone number display in RTL pages */
.footer-contact a[href^="tel:"],
.footer-contact a[href^="mailto:"] {
    direction: ltr;
    display: inline-block;
    unicode-bidi: embed;
    text-align: right;
}

/* Fix phone number alignment for LTR (English) pages */
html[dir="ltr"] .footer-contact a[href^="tel:"],
body[dir="ltr"] .footer-contact a[href^="tel:"],
html[dir="ltr"] .footer-contact a[href^="mailto:"],
body[dir="ltr"] .footer-contact a[href^="mailto:"] {
    text-align: left;
}

/* Fix phone number alignment for LTR (English) pages */
html[dir="ltr"] .footer-contact a[href^="tel:"],
body[dir="ltr"] .footer-contact a[href^="tel:"],
html[dir="ltr"] .footer-contact a[href^="mailto:"],
body[dir="ltr"] .footer-contact a[href^="mailto:"] {
    text-align: left;
}

/* Fix form elements alignment for LTR (English) pages */
html[dir="ltr"] .form-group label,
body[dir="ltr"] .form-group label {
    text-align: left;
}

html[dir="ltr"] .form-control,
body[dir="ltr"] .form-control {
    text-align: left;
    direction: ltr;
}

html[dir="ltr"] .contact-grid,
body[dir="ltr"] .contact-grid {
    direction: ltr;
}

html[dir="ltr"] .contact-info,
body[dir="ltr"] .contact-info {
    direction: ltr;
}

html[dir="ltr"] .contact-form-wrapper,
body[dir="ltr"] .contact-form-wrapper {
    direction: ltr;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.footer-bottom-center {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-bottom-right {
    grid-column: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.footer-bottom-center p {
    margin: 0;
    font-size: 0.9rem;
}

.everest-logo-img {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    display: block;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav.active {
        max-height: 500px;
    }

    .nav-list {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #e0e0e0;
    }

    /* Mobile Dropdown Styles */
    .nav-list li.has-dropdown > .nav-link::after {
        margin-left: auto;
        margin-right: auto;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0;
        margin-top: 0;
        background: rgba(0, 0, 0, 0.03);
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-list li.has-dropdown:hover .dropdown-menu,
    .nav-list li.has-dropdown.active .dropdown-menu {
        max-height: 500px;
    }

    .dropdown-menu li a {
        padding: 0.875rem 1rem 0.875rem 2.5rem;
        border-left: none;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    [dir="ltr"] .dropdown-menu li a {
        padding: 0.875rem 2.5rem 0.875rem 1rem;
    }

    .dropdown-menu li a:hover {
        padding-right: 2.5rem;
        padding-left: 2.5rem;
    }

    [dir="ltr"] .dropdown-menu li a:hover {
        padding-right: 2.5rem;
        padding-left: 2.5rem;
    }

    .header-actions .btn:not(.btn-whatsapp) {
        display: none;
    }

    .btn-whatsapp span {
        display: none;
    }

    .btn-whatsapp {
        padding: 0.5rem;
        min-width: auto;
    }

    .hero {
        min-height: 80vh;
        padding: 2rem 0;
        background-attachment: scroll;
    }

    .hero-content {
        padding: 4rem 2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-title-gold {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-subtitle-en {
        font-size: 1rem;
    }

    .hero-buttons {
        gap: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        padding: 2rem;
    }
    
    .section-title {
        text-align: right;
    }
    
    /* Fix text alignment for LTR (English) pages in mobile */
    html[dir="ltr"] .section-title,
    body[dir="ltr"] .section-title {
        text-align: left;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom-content {
        gap: 1rem;
        grid-template-columns: 1fr;
    }

    .footer-bottom-center {
        grid-column: 1;
        order: 1;
    }

    .footer-bottom-right {
        grid-column: 1;
        order: 2;
        justify-content: center;
    }

    .footer-bottom-center p {
        font-size: 0.75rem;
        white-space: normal;
        word-wrap: break-word;
    }

    .everest-logo-img {
        height: 30px;
        max-width: 80px;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .stat-number {
        font-size: 3rem;
    }

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

@media (max-width: 480px) {
    .hero {
        min-height: 70vh;
    }

    .hero-content {
        padding: 3rem 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title-gold {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-subtitle-en {
        font-size: 0.95rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }
}

/* ============================================
   WhatsApp Floating Button
   ============================================ */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px;
    background: #25D366;
    color: var(--color-white);
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        left: 20px;
    }

    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
}

/* ============================================
   Services Section
   ============================================ */
.services-section {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.service-icon svg {
    width: 40px;
    height: 40px;
}

.service-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-gray-dark);
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
    text-align: right;
    padding: 0;
    margin: 0;
}

.service-list li {
    padding: 0.75rem 0;
    color: var(--color-text);
    line-height: 1.8;
    position: relative;
    padding-right: 1.5rem;
}

.service-list li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: var(--color-gold);
    font-weight: 700;
    font-size: 1.2rem;
}

html[dir="ltr"] .service-list,
body[dir="ltr"] .service-list {
    text-align: left;
}

html[dir="ltr"] .service-list li,
body[dir="ltr"] .service-list li {
    padding-right: 0;
    padding-left: 1.5rem;
}

html[dir="ltr"] .service-list li::before,
body[dir="ltr"] .service-list li::before {
    right: auto;
    left: 0;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-card {
        padding: 2rem;
    }
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-btn,
.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    background: var(--color-white);
    color: var(--color-text);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    font-weight: 500;
}

.pagination-btn:hover:not(.disabled),
.pagination-number:hover:not(.active) {
    background: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
}

.pagination-number.active {
    background: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
    cursor: default;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-dots {
    padding: 0 8px;
    color: var(--color-text-light);
}

[dir="rtl"] .pagination {
    direction: rtl;
}

/* ============================================
   Social Sharing
   ============================================ */
.social-sharing {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1rem;
    background: var(--color-gray-light);
    border-radius: 8px;
    flex-wrap: wrap;
}

.social-sharing-label {
    font-weight: 600;
    color: var(--color-text);
}

.social-sharing-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid #ddd;
}

.social-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.social-share-btn.facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.social-share-btn.twitter:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.social-share-btn.whatsapp:hover {
    background: #25d366;
    color: white;
    border-color: #25d366;
}

.social-share-btn.linkedin:hover {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

.social-share-btn.telegram:hover {
    background: #0088cc;
    color: white;
    border-color: #0088cc;
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--color-gold);
}

.breadcrumb-separator {
    color: var(--color-text-light);
    margin: 0 0.25rem;
}

.breadcrumb-current {
    color: var(--color-text);
    font-weight: 500;
}

[dir="rtl"] .breadcrumb {
    direction: rtl;
}

/* ============================================
   Property Detail Page Styles
   ============================================ */
.property-detail-section {
    background: #f5f5f5;
    min-height: 100vh;
}

.property-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 968px) {
    .property-detail-grid {
        grid-template-columns: 1fr;
    }
}

.property-detail-main {
    min-width: 0; /* Prevent grid overflow */
}

.property-detail-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.property-gallery {
    background: #fff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.property-main-image {
    position: relative;
    margin-bottom: 1rem;
    background: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
}

.property-main-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.3s;
}

.property-main-image img:hover {
    transform: scale(1.02);
}

.property-no-image {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-no-image img {
    max-width: 100%;
    max-height: 100%;
}

.property-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
}

.property-thumbnails img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.property-thumbnails img:hover {
    border-color: #D4AF37;
    transform: scale(1.05);
}

.property-thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.property-thumb.active {
    border-color: #D4AF37;
}

.property-info {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
}

.property-title-main {
    margin: 0 0 0.5rem;
    color: #000;
    font-size: 2rem;
    font-weight: 700;
}

.property-location-main {
    color: #666;
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-location-main svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.featured-badge {
    background: #D4AF37;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.property-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.property-spec-item {
    text-align: center;
}

.property-spec-value {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
}

.property-spec-label {
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .property-specs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .property-header {
        flex-direction: column;
        gap: 1rem;
    }
}

.property-sidebar-card {
    background: #000;
    color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    position: sticky;
    top: 100px;
    text-align: center;
}

.property-sidebar-card h3 {
    color: #fff;
    margin: 0 0 1.5rem;
    font-size: 1.3rem;
}

.price-label {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0.5rem;
    display: block;
}

.price-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.price-unit {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 2rem;
    display: block;
}

.status-box {
    background: #1a1a1a;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.status-label {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0.5rem;
    display: block;
}

.status-value {
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
}

.property-sidebar-card .btn {
    width: 100%;
    display: block;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 1rem;
    text-decoration: none;
    transition: all 0.3s;
}

.property-sidebar-card .btn-primary {
    background: #D4AF37;
    color: #000;
}

.property-sidebar-card .btn-primary:hover {
    background: #B8941F;
    transform: translateY(-2px);
}

.property-sidebar-card .btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.property-sidebar-card .btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

.contact-form-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-form-card h3 {
    margin: 0 0 1.5rem;
    color: #000;
    font-size: 1.3rem;
    font-weight: 700;
}

.contact-form-card .form-group {
    margin-bottom: 1rem;
}

.contact-form-card .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form-card .form-control:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.contact-form-card textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.contact-form-card .btn {
    width: 100%;
    padding: 1rem;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.contact-form-card .btn:hover {
    background: #333;
    transform: translateY(-2px);
}

.captcha-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.captcha-display {
    flex: 1;
    padding: 0.5rem;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 5px;
    color: #000;
}

.btn-captcha-refresh {
    padding: 0.5rem;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-captcha-refresh:hover {
    background: #e9e9e9;
}

.btn-captcha-refresh svg {
    width: 20px;
    height: 20px;
    color: #666;
}

.related-properties {
    margin-top: 4rem;
}

.related-properties h2 {
    margin: 0 0 2rem;
    color: #000;
    font-size: 2rem;
    text-align: center;
    font-weight: 700;
}

.related-properties .properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.related-properties .property-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.related-properties .property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.related-properties .property-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.related-properties .property-card h3 {
    margin: 0 0 0.5rem;
    color: #000;
    font-size: 1.2rem;
    font-weight: 700;
}

.related-properties .property-card h3 a {
    color: inherit;
    text-decoration: none;
}

.related-properties .property-card h3 a:hover {
    color: #D4AF37;
}

.related-properties .property-card p {
    color: #666;
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.related-properties .property-card .property-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000;
}

.related-properties .property-card .property-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
}

/* Image Modal Styles */
#imageModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

#imageModal.active {
    display: flex;
}

#imageModal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

#imageModal button {
    position: absolute;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s;
}

#imageModal button:hover {
    background: rgba(255,255,255,0.3);
}

#imageModal #imageCounter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1.1rem;
}

/* ============================================
   Responsive Improvements
   ============================================ */
@media (max-width: 768px) {
    .pagination {
        gap: 0.25rem;
    }
    
    .pagination-btn,
    .pagination-number {
        min-width: 35px;
        height: 35px;
        padding: 0 8px;
        font-size: 0.9rem;
    }
    
    .social-sharing {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .social-sharing-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Blog Section - Modern Design
   ============================================ */
.blog-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.blog-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-dark-gray);
    line-height: 1.4;
}

.blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: var(--color-gold);
}

.blog-excerpt {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.875rem;
    color: var(--color-text-light);
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-meta svg {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* ============================================
   Post Detail Section - Modern Design
   ============================================ */
.post-detail-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.blog-post {
    background: #fff;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
}

.post-featured-image {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    background: #f0f0f0;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e9ecef;
}

.post-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    flex-shrink: 0;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--color-text);
    margin-bottom: 2rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.post-tags strong {
    color: var(--color-dark-gray);
    margin-left: 0.5rem;
}

.post-tags span {
    background: #f0f0f0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.post-tags span:hover {
    background: var(--color-gold);
    color: #000;
}

/* Comments Section */
.comments-section {
    background: #fff;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
}

.comments-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--color-dark-gray);
}

.comments-list {
    margin-bottom: 3rem;
}

.comment-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.comment-item > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.comment-item strong {
    color: var(--color-dark-gray);
    font-size: 1rem;
}

.comment-item span {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

.comment-item p {
    color: var(--color-text);
    line-height: 1.7;
    margin: 0;
}

.add-comment {
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.add-comment h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-dark-gray);
}

.add-comment .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.add-comment .form-group {
    margin-bottom: 1rem;
}

.add-comment input,
.add-comment textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.add-comment input:focus,
.add-comment textarea:focus {
    outline: none;
    border-color: var(--color-gold);
}

/* Related Posts */
.related-posts {
    background: #fff;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.related-posts h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--color-dark-gray);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e9ecef;
}

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

.post-card > div:last-child {
    padding: 1.5rem;
}

.post-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.post-card h3 a {
    color: var(--color-dark-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card h3 a:hover {
    color: var(--color-gold);
}

.post-card p {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.post-card > div:last-child > div:last-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.post-card > div:last-child > div:last-child a {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.post-card > div:last-child > div:last-child a:hover {
    color: var(--color-dark-gray);
}

/* Responsive Blog Styles */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-post {
        padding: 2rem 1.5rem;
    }
    
    .post-header h1 {
        font-size: 1.75rem;
    }
    
    .post-featured-image {
        height: 300px;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .comments-section,
    .related-posts {
        padding: 2rem 1.5rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .add-comment .form-row {
        grid-template-columns: 1fr;
    }
}

