/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    touch-action: manipulation;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --border-color: #e5e7eb;
    --text-color: #374151;
    --text-light: #6b7280;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ===== Header & Navigation ===== */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.logo i {
    font-size: 28px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 6px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    list-style: none;
    padding: 10px 0;
    margin-top: 10px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    transition: background 0.3s;
}

.dropdown-menu a:hover {
    background: var(--light-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-color);
    padding: 10px;
    transition: transform 0.3s;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/hero-bg.jpg') center/cover;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
}

.search-box {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    max-width: 900px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.search-field {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-field i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-field input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
}

.search-select {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    min-width: 150px;
}

/* ===== Stats Section ===== */
.stats-section {
    padding: 60px 0;
    background: var(--light-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 36px;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.stat-card p {
    color: var(--text-light);
    font-size: 16px;
}

/* ===== Properties Section ===== */
.featured-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-light);
    font-size: 18px;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.property-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.property-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--warning-color);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.property-content {
    padding: 25px;
}

.property-price {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.property-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.property-title a {
    color: var(--dark-color);
    transition: color 0.3s;
}

.property-title a:hover {
    color: var(--primary-color);
}

.property-location {
    color: var(--text-light);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.property-features {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-type {
    background: var(--light-color);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 14px;
    color: var(--text-color);
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* ===== Features Section ===== */
.why-choose-section {
    padding: 80px 0;
    background: var(--light-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-card {
    text-align: center;
}

.feature-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--text-light);
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Properties Page ===== */
.page-header {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.properties-page {
    padding: 60px 0;
}

.properties-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

.filters-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filter-section {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-section h3 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.range-inputs input {
    width: 100%;
}

.properties-content {
    min-width: 0;
}

.properties-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.results-count {
    font-weight: 600;
    color: var(--dark-color);
}

.sort-select {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-select select {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.no-results {
    text-align: center;
    padding: 80px 20px;
    background: var(--white);
    border-radius: 10px;
    grid-column: 1 / -1;
}

.no-results i {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.no-results p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--white);
    color: var(--text-color);
    transition: all 0.3s;
}

.page-link:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.page-link.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ===== Property Detail Page ===== */
.breadcrumb {
    background: var(--light-color);
    padding: 15px 0;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-color);
}

.property-detail-page {
    padding-bottom: 60px;
}

.property-detail-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    padding: 40px 0;
}

.property-gallery {
    margin-bottom: 30px;
}

.main-image {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    height: 500px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.thumbnail {
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.thumbnail:hover {
    border-color: var(--primary-color);
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 30px;
    gap: 20px;
}

.property-title-section h1 {
    font-size: 32px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.property-price-section {
    text-align: right;
}

.property-price-section .price {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.badges {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.badge {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
}

.badge-sale {
    background: var(--success-color);
}

.badge-rent {
    background: var(--primary-color);
}

.badge-featured {
    background: var(--warning-color);
}

.key-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 30px;
    background: var(--light-color);
    border-radius: 10px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.feature-item i {
    font-size: 32px;
    color: var(--primary-color);
}

.feature-item strong {
    display: block;
    color: var(--dark-color);
}

.feature-item p {
    color: var(--text-light);
}

.property-section {
    margin-bottom: 40px;
}

.property-section h2 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list i {
    color: var(--success-color);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: var(--light-color);
    border-radius: 6px;
}

/* ===== Sidebar Widgets ===== */
.sidebar-widget {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 20px;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.inquiry-form .form-group {
    margin-bottom: 15px;
}

.inquiry-form input,
.inquiry-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

.inquiry-form textarea {
    resize: vertical;
}

.agent-info {
    text-align: center;
}

.agent-avatar {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.agent-info h4 {
    font-size: 20px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.agent-info p {
    color: var(--text-light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ===== Auth Pages ===== */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 60px 0;
    background: var(--light-color);
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.auth-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.auth-card h2 {
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.auth-subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.auth-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-weight: normal !important;
}

.checkbox-label input {
    width: auto !important;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

.auth-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}

.auth-info h3 {
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.auth-info ul {
    list-style: none;
    margin-bottom: 30px;
}

.auth-info li {
    padding: 15px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-color);
}

.auth-info i {
    color: var(--success-color);
    font-size: 20px;
}

/* ===== Contact Page ===== */
.contact-page {
    padding: 60px 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-info-section {
    display: grid;
    gap: 20px;
}

.contact-info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.contact-info-card .icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info-card h3 {
    font-size: 20px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.contact-info-card p {
    color: var(--text-light);
}

.contact-form-section {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(--0,0,0,0.05);
}

.contact-form-section h2 {
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.contact-form-section > p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
}

.map-section {
    margin-top: 60px;
}

.map-section h2 {
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 30px;
    text-align: center;
}

.map-placeholder iframe {
    width: 100%;
    border-radius: 10px;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #9ca3af;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #9ca3af;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #9ca3af;
}

/* ===== Flash Messages ===== */
.flash-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flash-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.flash-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.flash-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: inherit;
}

/* ===== Alerts ===== */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .properties-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
    }
    
    .property-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 30px;
        transition: left 0.3s;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        z-index: 999;
        overflow-y: auto;
        align-items: flex-start;
        gap: 15px;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-link,
    .nav-menu .btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
        min-width: 44px;
        min-height: 44px;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 10px;
        margin-left: 20px;
        padding-left: 0;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo i {
        font-size: 24px;
    }
    
    /* Hero Section */
    .hero {
        min-height: 450px;
        padding: 40px 0;
    }
    
    .hero-content h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .search-box {
        padding: 20px;
    }
    
    .search-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-field {
        min-width: 100%;
    }
    
    .search-select {
        width: 100%;
    }
    
    .btn-block {
        width: 100%;
    }
    
    /* Properties */
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .property-card {
        max-width: 100%;
    }
    
    .property-image {
        height: 220px;
    }
    
    .property-content {
        padding: 20px;
    }
    
    .property-price {
        font-size: 24px;
    }
    
    .property-title {
        font-size: 18px;
    }
    
    .property-features {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 13px;
    }
    
    /* Sections */
    .featured-section,
    .why-choose-section,
    .cta-section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .section-header p {
        font-size: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-card {
        padding: 25px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* CTA Section */
    .cta-content h2 {
        font-size: 32px;
    }
    
    .cta-content p {
        font-size: 18px;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* Property Detail */
    .property-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .property-title-section h1 {
        font-size: 24px;
    }
    
    .property-price-section {
        text-align: left;
    }
    
    .property-price-section .price {
        font-size: 28px;
    }
    
    .badges {
        justify-content: flex-start;
    }
    
    .main-image {
        height: 300px;
    }
    
    .thumbnail-images {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }
    
    .thumbnail {
        height: 80px;
    }
    
    .key-features {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    /* Auth Pages */
    .auth-container {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-card h2 {
        font-size: 24px;
    }
    
    .auth-info {
        display: none;
    }
    
    /* Contact Page */
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-section {
        padding: 30px 20px;
    }
    
    .contact-info-card {
        padding: 25px 20px;
    }
    
    /* Filters & Toolbar */
    .properties-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 15px;
    }
    
    .sort-select {
        width: 100%;
        justify-content: space-between;
    }
    
    .sort-select select {
        flex: 1;
    }
    
    .filter-section {
        padding: 20px;
    }
    
    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .page-link {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* General */
    .container {
        padding: 0 16px;
    }
    
    .page-header {
        padding: 40px 0;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    /* Typography */
    .hero-content h1 {
        font-size: 24px;
    }
    
    .hero-content p {
        font-size: 14px;
    }
    
    .hero {
        min-height: 400px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .section-header p {
        font-size: 14px;
    }
    
    .cta-content h2 {
        font-size: 24px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
    
    /* Components */
    .search-box {
        padding: 15px;
    }
    
    .property-image {
        height: 200px;
    }
    
    .property-content {
        padding: 15px;
    }
    
    .property-price {
        font-size: 20px;
    }
    
    .property-title {
        font-size: 16px;
    }
    
    .property-features {
        font-size: 12px;
        gap: 8px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-card i {
        font-size: 36px;
    }
    
    .stat-card h3 {
        font-size: 28px;
    }
    
    .feature-card i {
        font-size: 36px;
    }
    
    .feature-card h3 {
        font-size: 18px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
        min-height: 44px;
    }
    
    input,
    select,
    textarea,
    button {
        font-size: 16px !important;
    }
    
    .page-link,
    .btn-icon,
    .social-links a {
        min-width: 44px;
        min-height: 44px;
    }
    
    .main-image {
        height: 250px;
    }
    
    .thumbnail-images {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 6px;
    }
    
    .thumbnail {
        height: 60px;
    }
    
    .property-title-section h1 {
        font-size: 20px;
    }
    
    .property-price-section .price {
        font-size: 24px;
    }
    
    .badge {
        padding: 4px 10px;
        font-size: 12px;
    }
    
    .property-badge,
    .featured-badge {
        padding: 4px 10px;
        font-size: 12px;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .feature-item i {
        font-size: 24px;
    }
    
    .property-section h2 {
        font-size: 20px;
    }
    
    .auth-card {
        padding: 25px 15px;
    }
    
    .contact-form-section {
        padding: 25px 15px;
    }
    
    .contact-info-card {
        padding: 20px 15px;
    }
    
    .contact-info-card .icon {
        font-size: 36px;
    }
    
    .sidebar-widget {
        padding: 20px 15px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .social-links {
        justify-content: center;
    }
}
