/**
 * Homepage Styles for Melkabroad Properties
 * Color Scheme: White, Black, Red
 */

/* Global Elementor Styles */
.elementor-58 .elementor-element.elementor-element-512d764c .elementor-nav-menu--dropdown .elementor-item, 
.elementor-58 .elementor-element.elementor-element-512d764c .elementor-nav-menu--dropdown .elementor-sub-item {
    font-size: 14px;
    font-weight: 400;
}

/* Homepage Specific Styles */
.cta-overlay {
    background: rgba(62, 62, 62, 0.3);
}

.elementor-54 .elementor-element.elementor-element-22c932b5 {
    margin-top: 0;
}

.melkabroad-homepage {
    direction: rtl;
    overflow-x: hidden;
    background: #ffffff;
}

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

.homepage-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: #1a1a1a;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    z-index: 2;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.hero-text {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    line-height: 1.3;
    text-align: center;
}

.hero-title .highlight {
    color: #dc2626;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #1a1a1a;
    margin: 0;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Quick Search Container (Image Style) */
.quick-search-container {
    max-width: 1200px;
    margin: 30px auto 0;
    position: relative;
}

.advanced-search-toggle-btn {
    position: absolute;
    top: -50px;
    right: 0;
    padding: 12px 24px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #1a1a1a;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    font-family: inherit;
}

.advanced-search-toggle-btn:hover {
    border-color: #dc2626;
    color: #dc2626;
    background: #fef2f2;
}

.property-type-selector {
    background: #ffffff;
    border: 2px solid #fce7f3;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Transaction Tabs */
.transaction-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 15px;
}

.transaction-tab {
    flex: 1;
    padding: 12px 20px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    color: #1a1a1a;
}

.transaction-tab input[type="radio"] {
    display: none;
}

.transaction-tab.active,
.transaction-tab:has(input:checked) {
    background: #fce7f3;
    border-color: #f9a8d4;
    color: #1a1a1a;
}

.transaction-tab:hover {
    border-color: #f9a8d4;
    background: #fef2f2;
}

/* Property Type Grid - All in one row (6 columns) */
.property-type-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.property-type-btn {
    font-family: "Iran Sans";
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 15px;
    background: #ffffff;
    border: 1px solid #fce7f3;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.property-type-btn:hover {
    border-color: #f9a8d4;
    background: #fef2f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 168, 212, 0.2);
}

.property-type-btn.active {
    background: #fce7f3;
    border-color: #f9a8d4;
    border-width: 2px;
}

.property-type-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
}

.property-type-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.property-type-icon svg {
    width: 100%;
    height: 100%;
}

.property-type-btn.active .property-type-icon {
    color: #dc2626;
}

.property-type-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

/* Advanced Search Box - Replaces quick search */
.advanced-search-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 1200px;
    margin: 0 auto;
    border: 2px solid #fce7f3;
    display: none;
    animation: slideDown 0.3s ease-out;
}

.quick-search-container.advanced-mode .property-type-selector {
    display: none;
}

.quick-search-container.advanced-mode .advanced-search-box {
    display: block;
}

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

.search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-section-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

/* Compact Search Row */
.search-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.search-row-paired {
    grid-template-columns: repeat(2, 1fr);
}

.search-field-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
}

.search-select,
.search-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #1a1a1a;
    background: #ffffff;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.search-input:hover {
    border-color: #d1d5db;
}

.search-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    padding-right: 16px;
    padding-left: 38px;
    cursor: pointer;
}

.search-select:focus,
.search-input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
    background: #ffffff;
}

.search-input::placeholder {
    color: #9ca3af;
}

/* Radio Group - Compact */
.search-radio-group {
    display: flex;
    gap: 12px;
}

.search-radio {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.search-radio input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #9ca3af;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.search-radio input[type="radio"]:checked + .radio-custom {
    border-color: #dc2626;
    background: #dc2626;
}

.search-radio input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
}

.search-radio input[type="radio"]:checked ~ .radio-text {
    color: #dc2626;
    font-weight: 600;
}

.search-radio:hover {
    border-color: #dc2626;
    background: #fef2f2;
}

.radio-text {
    font-size: 0.9rem;
    color: #666;
    transition: all 0.2s ease;
}

/* Amenities Section - Collapsible */
.amenities-section {
    margin-top: 5px;
}

.amenities-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.amenities-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #1a1a1a;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amenities-toggle-btn:hover {
    border-color: #dc2626;
    background: #fef2f2;
    color: #dc2626;
}

.toggle-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.amenities-toggle-btn.active .toggle-icon {
    transform: rotate(180deg);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    padding: 0;
    opacity: 0;
}

.amenities-grid.amenities-expanded {
    max-height: 1000px;
    padding: 15px 0;
    opacity: 1;
}

.amenity-checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amenity-checkbox-item:hover {
    border-color: #dc2626;
    background: #fef2f2;
}

.amenity-checkbox-item input[type="checkbox"] {
    display: none;
}

.amenity-checkbox-item:has(input:checked) {
    background: #fee2e2;
    border-color: #dc2626;
}

.amenity-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.amenity-label {
    font-size: 0.8rem;
    color: #333;
}

/* Search Actions */
.search-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.search-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.search-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.search-submit-btn:hover::before {
    left: 100%;
}

.search-submit-btn:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.search-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
}

.btn-icon {
    font-size: 1.1rem;
}

.search-advanced-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
}

.search-advanced-link:hover {
    background: #f9fafb;
    border-color: #dc2626;
    color: #dc2626;
}

.link-arrow {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.search-advanced-link:hover .link-arrow {
    transform: translateX(-3px);
}

/* Floating Elements */
.hero-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.05;
    animation: float 20s infinite ease-in-out;
}

.element-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.element-2 {
    top: 60%;
    right: 20%;
    animation-delay: 5s;
}

.element-3 {
    top: 30%;
    left: 15%;
    animation-delay: 10s;
}

.element-4 {
    bottom: 20%;
    left: 10%;
    animation-delay: 15s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) rotate(5deg);
    }
    50% {
        transform: translateY(-60px) rotate(-5deg);
    }
    75% {
        transform: translateY(-30px) rotate(5deg);
    }
}

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

/* ============================================
   ABOUT US SECTION
   ============================================ */

.homepage-about {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.about-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.about-content-main {
    background: #ffffff;
    border-radius: 20px;
    padding: 60px 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e5e5;
}

.about-text {
    text-align: right;
    font-size: 1.1rem;
    line-height: 2;
    color: #1a1a1a;
    margin-bottom: 40px;
}

.about-intro {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.about-description {
    color: #666;
    line-height: 1.9;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    padding-top: 50px;
    border-top: 2px solid #f0f0f0;
}

.about-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.about-feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: 12px;
    color: #dc2626;
    flex-shrink: 0;
}

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

.about-feature-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.about-feature-text p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   PROPERTIES SECTION
   ============================================ */

.homepage-properties {
    padding: 60px 20px;
    background: #f9fafb;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.title-icon {
    font-size: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.title-icon svg {
    width: 1.2em;
    height: 1.2em;
}

.section-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #dc2626;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 8px 16px;
    border-radius: 6px;
}

.section-link:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.section-link .link-arrow {
    transition: transform 0.2s ease;
}

.section-link:hover .link-arrow {
    transform: translateX(-3px);
}

/* Properties Grid - Same as Archive */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

/* Property Card - Same as Archive */
.property-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0f0f0;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #dc2626;
}

.property-card-link {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.property-card-content {
    flex: 1;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.property-card-image {
    position: relative;
    width: 220px;
    min-width: 220px;
    height: 180px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
    padding: 12px;
    box-sizing: border-box;
}

.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

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

.property-card-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #dc2626 100%);
}

.no-image-icon {
    font-size: 3rem;
    opacity: 0.5;
}

.property-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 0.85rem;
    margin-top: 8px;
}

.location-icon {
    font-size: 0.9rem;
}

.location-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.property-image-icons {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.image-icon {
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 8px;
    border-radius: 5px;
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 500;
    color: #333;
}

.image-icon.bookmark-icon {
    cursor: pointer;
}

.image-icon.bookmark-icon:hover {
    background: rgba(255, 255, 255, 1);
}

.property-card-price {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #dc2626;
}

.price-currency {
    font-size: 0.85rem;
    color: #666;
}

.property-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #1a1a1a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.property-detail-item {
    position: relative;
    padding-right: 15px;
}

.property-detail-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #ccc;
    border-radius: 50%;
}

/* ============================================
   BLOG SECTION
   ============================================ */

.homepage-blog {
    padding: 80px 20px;
    background: #ffffff;
    background: #ffffff;
}

/* Blog Grid New Style (Horizontal Cards) */
.blog-grid-new {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card-new {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0f0f0;
}

.blog-card-new:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #dc2626;
}

.blog-card-link-new {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.blog-card-content-new {
    flex: 1;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    min-width: 0;
}

.blog-card-title-new {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-image-new {
    width: 200px;
    min-width: 200px;
    height: 150px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

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

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

.blog-card-placeholder-new {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #dc2626 100%);
}

.placeholder-icon-new {
    font-size: 2.5rem;
    opacity: 0.5;
}

/* Blog Carousel (Old - Keep for compatibility) */
.blog-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.blog-carousel {
    overflow: hidden;
    position: relative;
}

.blog-carousel-track {
    display: flex;
    gap: 25px;
    transition: transform 0.5s ease;
}

.blog-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 50%;
    font-size: 24px;
    color: #1a1a1a;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-carousel-btn:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.blog-carousel-prev {
    right: 0;
}

.blog-carousel-next {
    left: 0;
}

.blog-card {
    flex: 0 0 calc(33.333% - 17px);
    min-width: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0f0f0;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #dc2626;
}

.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

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

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

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #dc2626 100%);
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.5;
}

.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    margin-bottom: 12px;
}

.blog-date {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.blog-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-read-more {
    font-size: 0.9rem;
    color: #dc2626;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
    margin-top: auto;
}

.blog-card:hover .blog-read-more {
    color: #b91c1c;
    transform: translateX(-3px);
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.homepage-features {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.section-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 10px 0 0 0;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 35px 25px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #dc2626;
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: 16px;
    color: #dc2626;
    margin-bottom: 18px;
    flex-shrink: 0;
}

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

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.feature-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */

.homepage-cta {
    position: relative;
    padding: 80px 20px;
    background: #1a1a1a;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.cta-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 15px 0;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 35px 0;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.cta-primary {
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.cta-primary:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

.cta-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .title-line.highlight {
        font-size: 3rem;
    }
    
    .advanced-search-box {
        padding: 25px;
    }
    
    .search-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-row-paired {
        grid-template-columns: 1fr;
    }
    
    .search-field-pair {
        grid-template-columns: 1fr;
    }
    
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .homepage-hero {
        min-height: auto;
        padding: 40px 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .title-line.highlight {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .advanced-search-toggle-btn {
        top: -45px;
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .property-type-selector {
        padding: 20px 15px;
    }
    
    .property-type-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .property-type-btn {
        padding: 15px 8px;
    }
    
    .property-type-icon {
        width: 40px;
        height: 40px;
    }
    
    .property-type-label {
        font-size: 0.75rem;
    }
    
    .advanced-search-box {
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .search-row {
        grid-template-columns: 1fr;
    }
    
    .search-radio-group {
        flex-direction: column;
    }
    
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .search-submit-btn {
        width: 100%;
        justify-content: center;
    }
    
    .search-advanced-link {
        width: 100%;
        justify-content: center;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .property-card-link {
        flex-direction: column;
    }
    
    .property-card-image {
        width: 100%;
        min-width: 100%;
        height: 220px;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .blog-grid-new {
        grid-template-columns: 1fr;
    }
    
    .blog-card-link-new {
        flex-direction: column;
    }
    
    .blog-card-image-new {
        width: 100%;
        min-width: 100%;
        height: 200px;
    }
    
    .blog-card-content-new {
        padding: 20px;
    }
    
    .about-content-main {
        padding: 40px 30px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .blog-carousel-wrapper {
        padding: 0 50px;
    }
    
    .blog-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .blog-carousel-prev {
        right: 0;
    }
    
    .blog-carousel-next {
        left: 0;
    }
    
    .blog-card {
        flex: 0 0 100%;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 1.6rem;
    }
    
    .cta-subtitle {
        font-size: 0.95rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .title-line.highlight {
        font-size: 1.8rem;
    }
    
    .advanced-search-box {
        padding: 18px 12px;
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 25px 15px;
    }
    
    .blog-grid-new {
        grid-template-columns: 1fr;
    }
    
    .blog-card-image-new {
        height: 180px;
    }
    
    .about-content-main {
        padding: 30px 20px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
        padding-top: 30px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}
