/* Home Page Styles - Using Design System Tokens */
/* Design system is loaded via responsive.css in templates */

/* Global Reset - Home Page Specific */
/* Note: Some global styles may conflict with styles.css - these are page-specific overrides */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Exclude navbar from global reset */
.navbar,
.navbar *,
.navbar-brand,
.navbar-nav,
.nav-item,
.nav-link {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-primary);
    line-height: var(--line-height-normal);
    font-size: var(--font-body);
    color: var(--color-text-primary);
    background: var(--color-bg-secondary);
    overflow-x: hidden;
}

/* Hide any stray characters */
body::before {
    display: none !important;
}

/* Ensure no content appears before navbar - but exclude navbar itself */
body > *:first-child:not(.navbar) {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: var(--spacing-3xl) 0 var(--spacing-2xl);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #d6d6d6;
    z-index: 0;
    transition: background-image 1s ease, transform 1s ease;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    color: var(--color-text-inverse);
    margin-bottom: var(--spacing-3xl);
}

.hero-eyebrow {
    font-size: clamp(0.75rem, 1.2vw, 0.875rem);
    font-weight: var(--font-weight-semibold);
    color: rgba(255, 255, 255, 0.9);
    text-transform: none; /* Changed from uppercase to normal case */
    letter-spacing: 0.15em;
    margin-bottom: var(--spacing-xs);
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    margin-top: 0;
    line-height: 1.4;
}

.hero-eyebrow-second {
    margin-bottom: var(--spacing-md);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

.hero-title-text {
    display: inline-block;
    white-space: nowrap;
}

.hero-title-line {
    display: inline;
    white-space: nowrap;
}

.hero-title-highlight {
    display: inline;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: var(--font-weight-normal);
    margin-bottom: 0;
    opacity: 0.95;
    line-height: var(--line-height-normal);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Search Container */
.hero-search-wrapper {
    position: relative;
    max-width: 1100px;
    margin: var(--spacing-2xl) auto 0;
    padding-top: var(--spacing-xl);
}

.hero-search-options {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 16px;
    overflow: hidden;
    width: min(90%, 460px);
    box-shadow: 0 24px 45px rgba(5, 8, 18, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 3;
}

.search-option {
    flex: 1 1 auto;
    padding: var(--spacing-xs) var(--spacing-lg);
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    letter-spacing: 0.3px;
    min-width: 110px;
    cursor: pointer;
    transition: var(--transition-all);
}

.hero-search-options .search-option + .search-option {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.search-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
}

.search-option.active {
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-primary);
}

.hero-search-container {
    background: var(--surface-glass-bg);
    backdrop-filter: blur(var(--surface-glass-blur));
    -webkit-backdrop-filter: blur(var(--surface-glass-blur));
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
    margin: 0 auto;
    border: 1px solid var(--surface-glass-border);
    max-width: 1100px;
}

/* Search Form */
.hero-search-form {
    width: 100%;
}

.hero-search-container .search-fields {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) minmax(180px, 1fr) auto;
    gap: var(--spacing-md);
    align-items: end;
}

.search-field-location {
    grid-column: span 1;
}

.search-field-category .category-inline {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    width: 100%;
}

.search-field-category .category-inline select {
    flex: 1 1 auto;
}

.search-field-submit {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.search-field {
    display: flex;
    flex-direction: column;
}

.search-field label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-xs);
}

.search-field .form-control,
.search-field .form-select {
    width: 100%;
    padding: var(--input-padding-y) var(--input-padding-x);
    font-size: var(--input-font-size);
    font-family: var(--font-family-primary);
    height: var(--input-height);
    border: var(--input-border-width) solid var(--input-border-color);
    border-radius: var(--input-border-radius);
    background-color: var(--input-bg);
    color: var(--input-color);
    transition: var(--transition-all);
}

.search-field .form-control:focus,
.search-field .form-select:focus {
    outline: none;
    border-color: var(--input-focus-border-color);
    box-shadow: var(--input-focus-shadow);
    background-color: var(--input-bg);
}

.location-input-wrapper {
    position: relative;
}

.location-icon {
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-secondary);
    cursor: pointer;
    font-size: var(--font-size-md);
}

.search-field-advanced,
.search-field-submit {
    grid-column: span 1;
}

.btn-advanced,
.btn-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: var(--transition-all);
    width: 100%;
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    height: var(--btn-height-md);
    font-size: var(--font-body);
}

.hero-search-container .btn-advanced,
.hero-search-container .btn-search {
    width: 100%;
}

.icon-advanced {
    width: var(--btn-height-md);
    height: var(--btn-height-md);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-all);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.icon-advanced:hover,
.icon-advanced.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--color-primary);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.btn-search {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border: none;
    color: var(--color-text-inverse);
    box-shadow: var(--shadow-btn-primary);
    width: var(--btn-height-md);
    min-width: var(--btn-height-md);
    height: var(--btn-height-md);
    border-radius: var(--radius-full);
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-search i {
    margin-right: var(--spacing-xs);
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn-primary-strong);
}

.hero-search-container .form-control,
.hero-search-container .form-select {
    background-color: var(--surface-glass-input-bg);
    border-color: var(--surface-glass-input-border);
    border-radius: var(--surface-glass-input-radius);
    box-shadow: var(--shadow-hero-input);
    color: var(--color-text-primary);
}

.hero-search-container .form-control:focus,
.hero-search-container .form-select:focus {
    border-color: var(--input-focus-border-color);
    box-shadow: var(--shadow-hero-input-focus);
}

.hero-search-container .form-control::placeholder,
.hero-search-container .form-select::placeholder {
    color: var(--color-text-secondary);
    opacity: 1;
}

/* Advanced Search Panel */
.advanced-search-panel {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-border-light);
}

.advanced-search-panel .form-group {
    margin-bottom: var(--spacing-md);
}

.advanced-search-panel label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
    display: block;
}

.price-range {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.price-range .form-control {
    flex: 1;
    padding: var(--spacing-md);
    border: 1px solid var(--color-border-medium);
    border-radius: var(--radius-md);
    font-size: var(--font-body);
}

.range-separator {
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-medium);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
        padding: var(--spacing-xl) 0 var(--spacing-lg);
    }

    .hero-search-options {
        position: static;
        transform: none;
        flex-wrap: nowrap;
        width: fit-content;
        margin: 0 auto var(--spacing-lg);
        overflow-x: auto;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        white-space: nowrap !important;
        overflow-x: auto;
    }
    
    .hero-search-container .search-fields {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .search-field-location,
    .search-field-submit {
        grid-column: span 1;
    }
    
    .search-option {
        flex: 0 0 auto;
        min-width: 100px;
        padding: var(--spacing-xs) var(--spacing-md);
    }

    .search-field-category .category-inline {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-xs);
    }

    .search-field-category .category-inline select {
        width: 100%;
    }

    .search-field-category .icon-advanced {
        width: 100%;
        justify-content: center;
        border-radius: var(--radius-md);
        height: var(--btn-height-md);
    }

    .search-field-submit {
        justify-content: stretch;
    }

    .btn-search {
        width: 100%;
        min-width: 0;
        border-radius: var(--radius-md);
        padding: var(--spacing-sm);
    }

    .price-range {
        flex-direction: column;
        align-items: stretch;
    }
    
    .range-separator {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-search-options {
        width: fit-content;
    }
}

/* Property Options Section */
.property-options {
    padding: var(--spacing-md) 0;
    background: var(--color-white);
}

.option-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--card-padding-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-all);
    height: 100%;
    border: var(--spacing-xs) solid transparent;
    text-align: center;
}

.option-card:hover {
    transform: translateY(calc(-1 * var(--spacing-sm)));
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.option-icon {
    width: clamp(3rem, 8vw, 4rem);
    height: clamp(3rem, 8vw, 4rem);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-teal));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    font-size: var(--icon-xl);
    color: var(--color-text-inverse);
    box-shadow: var(--shadow-md);
}

.option-title {
    font-size: var(--font-title-h2);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-lg);
    line-height: var(--line-height-tight);
}

.option-description {
    font-size: var(--font-body);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: var(--line-height-normal);
}

.option-features {
    list-style: none;
    padding: 0;
    margin-bottom: var(--spacing-xl);
}

.option-features li {
    padding: var(--spacing-sm) 0;
    color: var(--color-text-primary);
    font-weight: var(--font-weight-medium);
}

.option-features li i {
    color: var(--color-primary);
    margin-right: var(--spacing-sm);
    font-size: var(--icon-sm);
}

.option-btn {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: var(--font-weight-semibold);
    font-size: var(--btn-font-size-lg);
    transition: var(--transition-all);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-width: 200px;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    border: none;
    cursor: pointer;
}

.option-btn i {
    font-size: 1rem;
    color: var(--color-text-inverse);
}

.option-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--color-text-inverse);
    text-decoration: none;
    background: var(--color-primary-dark);
}

.option-btn:hover i {
    color: var(--color-text-inverse);
}

.option-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.rent-btn {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
}

.rent-btn:hover {
    background: linear-gradient(135deg, var(--color-secondary-dark), var(--color-secondary));
    color: var(--color-text-inverse);
    text-decoration: none;
}

/* Featured Property Sections */
.property-highlight {
    padding: var(--spacing-3xl) 0;
}

.property-highlight.rent-highlight {
    background: linear-gradient(135deg, var(--color-primary-lighter), var(--color-accent-teal-light));
}

.property-highlight.sale-highlight {
    background: linear-gradient(135deg, var(--color-secondary-lighter), var(--color-secondary-light));
}

.section-heading {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-heading .section-title {
    font-size: var(--font-title-h2);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: var(--line-height-tight);
}

.section-heading .section-subtitle {
    color: var(--color-text-secondary);
    font-size: var(--font-subtitle);
    max-width: clamp(500px, 60vw, 650px);
    margin: 0 auto;
    line-height: var(--line-height-normal);
}

.highlight-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: var(--transition-all);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.highlight-card:hover {
    transform: translateY(calc(-1 * var(--spacing-sm)));
    box-shadow: var(--shadow-xl);
}

.highlight-image {
    position: relative;
    width: 100%;
    padding-top: clamp(50%, 8vw, 65%);
    overflow: hidden;
}

.highlight-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.highlight-badge {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    padding: var(--badge-padding-y) var(--badge-padding-x);
    border-radius: var(--radius-full);
    font-size: var(--badge-font-size);
    font-weight: var(--badge-font-weight);
    color: var(--color-text-inverse);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-teal));
    box-shadow: var(--shadow-primary);
}

.highlight-card.sale .highlight-badge {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
    box-shadow: var(--shadow-secondary);
}

.highlight-content {
    padding: var(--card-padding-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.highlight-title {
    font-size: var(--font-title-h4);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-tight);
}

.highlight-location {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-text-secondary);
    font-size: var(--font-body-small);
    margin-bottom: var(--spacing-md);
}

.highlight-description {
    color: var(--color-text-secondary);
    font-size: var(--font-body-small);
    line-height: var(--line-height-normal);
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
}

.highlight-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-lg);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.highlight-features li {
    background: var(--color-primary-lighter);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    padding: var(--badge-padding-y) var(--badge-padding-x);
    font-size: var(--badge-font-size);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.highlight-card.sale .highlight-features li {
    background: var(--color-secondary-lighter);
    color: var(--color-secondary);
}

.highlight-price {
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
    color: var(--color-primary);
}

.highlight-card.sale .highlight-price {
    color: var(--color-secondary);
}

.highlight-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: var(--spacing-md);
}

.highlight-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-text-secondary);
    font-size: var(--font-body-small);
}

.highlight-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-text-inverse);
    padding: var(--btn-padding-y-sm) var(--btn-padding-x-md);
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-semibold);
    font-size: var(--btn-font-size-sm);
    text-decoration: none;
    transition: var(--transition-all);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.highlight-card.sale .highlight-btn {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
}

.highlight-btn:hover {
    color: var(--color-text-inverse);
    transform: translateY(calc(-1 * var(--spacing-xs)));
    box-shadow: var(--shadow-primary);
}

.highlight-card.sale .highlight-btn:hover {
    box-shadow: var(--shadow-secondary);
}

/* Features Section */
.features-section {
    background: var(--color-bg-tertiary);
    padding: var(--spacing-3xl) 0;
}

.feature-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-all);
    height: 100%;
    border: var(--spacing-xs) solid transparent;
}

.feature-card:hover {
    transform: translateY(calc(-1 * var(--spacing-xs)));
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.feature-icon {
    width: clamp(2.5rem, 6vw, 3.5rem);
    height: clamp(2.5rem, 6vw, 3.5rem);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-teal));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: var(--icon-lg);
    color: var(--color-text-inverse);
    box-shadow: var(--shadow-sm);
}

h3.feature-title,
.feature-title {
    font-size: var(--font-feature-title) !important;
    font-weight: var(--font-weight-semibold) !important;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-tight) !important;
}

.feature-description {
    color: var(--color-text-secondary);
    font-size: var(--font-body-small);
    line-height: var(--line-height-normal);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-teal));
    padding: var(--spacing-2xl) 0;
    color: var(--color-text-inverse);
    text-align: center;
    margin-bottom: 0;
}

.cta-title {
    font-size: var(--font-title-h1);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-lg);
    line-height: var(--line-height-tight);
}

.cta-text {
    font-size: var(--font-title-h4);
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
    line-height: var(--line-height-normal);
}

.cta-btn {
    background: var(--color-white);
    color: var(--color-primary);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: var(--font-weight-semibold);
    font-size: var(--btn-font-size-lg);
    transition: var(--transition-all);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-md);
    border: none;
    cursor: pointer;
}

.cta-btn i {
    font-size: 1rem;
    color: var(--color-primary);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--color-primary);
    text-decoration: none;
}

.cta-btn:hover i {
    color: var(--color-primary);
}

