/* ===================================
   Pattaya Residence - Frontend Styles
   =================================== */

:root {
    --primary: #0057ff;
    --primary-dark: #0044cc;
    --secondary: #1a1a2e;
    --accent: #00d4ff;
    --background: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Protection Styles */
.protected-content {
    pointer-events: none;
}

#property-description {
    white-space: pre-line;
}

img {
    user-select: none;
    -webkit-user-drag: none;
}

/* Header */
/* Header */
.header {
    background: rgba(15, 23, 42, 0.98);
    /* Almost solid to perfectly match hero start */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: #94a3b8;
    /* Match footer text color */
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.nav a:hover {
    color: white;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    cursor: pointer;
}

.lang-toggle {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 12px;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-weight: 600;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.lang-toggle img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.lang-toggle i {
    font-size: 10px;
    margin-left: 5px;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.3s;
}

/* Dropdown Menu */
.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 150px;
    background: white;
    border-radius: var(--radius);
    padding: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1001;
    margin-top: 10px;
}

/* Show dropdown on hover */
.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-switcher:hover .lang-toggle i {
    transform: rotate(180deg);
}

/* Dropdown specific triangle/nub */
.lang-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-radius: 2px;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 6px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    text-align: left;
}

.lang-option:hover {
    background: var(--background);
    color: var(--primary);
}

.lang-option img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lang-option.active {
    background: rgba(0, 87, 255, 0.05);
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: white;
    padding: 120px 20px 160px;
    /* Increased padding */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 87, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 212, 255, 0.15) 0%, transparent 50%);
    background-blend-mode: screen, screen;
    opacity: 1;
}

.hero-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #bae6fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 30px;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #e2e8f0;
}

/* Filters Redesign - Dark Premium Look */
.filters {
    background: #0f172a;
    padding: 24px 40px;
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    margin: -50px auto 60px;
    position: relative;
    width: fit-content;
    max-width: 95%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.08);
}



.filter-group {
    flex: 1;
    min-width: 150px;
    padding: 0 20px;
    position: relative;
    text-align: center;
}

.filter-group.filter-search {
    flex: 1.5;
}

/* Add custom arrow for centered dark select, but NOT for search input */
.filter-group:not(.filter-search)::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 25px;
    bottom: 8px;
    font-size: 10px;
    color: #475569;
    pointer-events: none;
}

.filter-group label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 2px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 5px 0;
    border: none;
    border-radius: 0;
    font-size: 14px;
    color: #f1f5f9;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    appearance: none;
    -webkit-appearance: none;
    text-align: center;
    border-bottom: 1px solid transparent;
}

.filter-group select option {
    background-color: #0f172a;
    color: #f1f5f9;
    padding: 12px;
}

.filter-group input {
    cursor: text;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    color: var(--primary);
    border-bottom-color: rgba(0, 87, 255, 0.3);
}

.filter-group input::placeholder {
    color: #475569;
    font-weight: 400;
}

/* Override separators positioning */
.filter-group:not(:last-of-type)::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
}

.filters .btn {
    border-radius: 24px;
    padding: 12px 35px;
    background: #0057ff;
    color: white;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 87, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    margin-left: 20px;
}

.filters .btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.filters .btn:hover {
    transform: translateY(-2px);
    background: #004de6;
    box-shadow: 0 15px 35px rgba(0, 87, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Re-add standard Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-telegram {
    background: #0088cc !important;
}

.btn-whatsapp {
    background: #25D366 !important;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

/* Page Specific Styles */
.hero-small {
    padding: 120px 20px 140px;
}

.hero-small h1 {
    font-size: 3rem;
}

.page-content {
    max-width: 1000px;
    margin: 120px auto !important;
    padding: 0 20px;
    position: relative;
    clear: both;
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 40px;
}

.content-text p {
    margin-bottom: 20px;
}

.step-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    height: 100%;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: inline-block;
}

.step-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    color: var(--secondary);
}

/* Contact Styles */
.contact-info h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
}

.contact-info p i {
    width: 20px;
    color: var(--primary);
}

.contact-form-container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.contact-form-container label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary);
}

.contact-form-container input,
.contact-form-container textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--background);
    font-size: 1rem;
    transition: all 0.3s;
    color: var(--text);
    font-family: inherit;
}

.contact-form-container input:focus,
.contact-form-container textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 87, 255, 0.1);
}

.form-success {
    text-align: center;
    padding: 20px 0;
    animation: fadeIn 0.5s ease;
}

.form-success i {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 20px;
    display: block;
}

.form-success h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 10px;
    font-weight: 800;
}

.form-success p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Catalog Page Title Adjustment */
.page-title {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: white;
    padding: 80px 20px 100px;
    /* Extra bottom padding for overlap */
    text-align: center;
    position: relative;
}

.page-title h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #bae6fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Properties Grid */
.properties-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--secondary);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Property Card */
.property-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
}

.property-image {
    position: relative;
    height: 240px;
    /* Taller image */
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.property-card:hover .property-image img {
    transform: scale(1.08);
}

/* Glassmorphism Badge */
.property-status {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    /* Glass effect */
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.property-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 87, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.property-card:hover .property-overlay {
    opacity: 1;
}

.view-details {
    background: white;
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.property-card:hover .view-details {
    transform: translateY(0);
}

.property-status.available {
    background: rgba(16, 185, 129, 0.85);
    /* Semi-transparent Green */
    color: white;
}


.property-status.pending {
    background: rgba(245, 158, 11, 0.85);
    /* Semi-transparent Orange */
    color: white;
}

.property-status.reserved {
    background: rgba(100, 116, 139, 0.85);
    /* Semi-transparent Gray */
    color: white;
}

.property-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    /* Deprecated but needed for clamp */
    overflow: hidden;
}

.property-location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-location i {
    color: var(--primary);
    opacity: 0.8;
}

.property-specs {
    display: flex;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

.spec-item i {
    color: var(--text-light);
    font-size: 1rem;
}

/* Card Footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    /* Push to bottom */
}

.card-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
}

.price-from {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.price-amount {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.price-period {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.details-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.property-card:hover .details-link {
    transform: translateX(5px);
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: #94a3b8;
    padding: 80px 20px 40px;
    margin-top: 100px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Subtle background accent for footer */


.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1fr 1.2fr;
    gap: 80px;
    text-align: left;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Align children to the start (left) */
    text-align: left;
}

.footer-section h3 {
    color: white;
    margin-bottom: 24px;
    font-size: 1.25rem;
    /* Slightly smaller for elegance */
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.footer-section p {
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 0.95rem;
    color: #94a3b8;
    max-width: 320px;
    /* Limit text width for better readability */
}

.footer-section a {
    color: #94a3b8;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: white;
}

.footer-section i {
    width: 20px;
    color: #64748b;
    transition: color 0.2s;
}

.footer-section a:hover i {
    color: var(--primary);
}

.footer-section p i {
    color: var(--primary);
    opacity: 0.8;
}

.footer-bottom {
    max-width: 1200px;
    margin: 80px auto 0;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
    letter-spacing: 0.02em;
}

.footer-bottom a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: white;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f1f5f9;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 50px;
}

.social-links a i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px) scale(0.98);
    color: white;
}

/* Payment Methods Grid */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 25px;
}

.payment-method {
    background: rgba(255, 255, 255, 0.05);
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    color: #f1f5f9;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.payment-method i {
    font-size: 16px;
    color: #64748b;
    margin-right: 2px;
}

.payment-method:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(0.98);
    color: white;
    opacity: 0.8;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 15px 20px;
        justify-content: flex-start;
        gap: 15px;
    }

    .lang-switcher {
        margin-left: auto;
    }

    .nav {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #0f172a;
        padding: 100px 40px;
        z-index: 999;
        transition: transform 0.3s ease;
        transform: translateY(-100%);
    }

    .nav.active {
        display: flex !important;
        transform: translateY(0);
    }

    .nav a {
        font-size: 1.5rem;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        color: white;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-small {
        padding: 100px 20px 80px;
    }

    .hero-small h1 {
        font-size: 2.5rem;
    }

    .page-content {
        margin: 60px auto !important;
    }

    .contact-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .filters {
        flex-direction: column;
        margin: -30px auto 40px;
        width: 90%;
        padding: 30px 20px;
        align-items: stretch;
    }

    .filter-group {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        text-align: left;
        min-width: 100%;
    }

    .filter-group:not(.filter-search)::after {
        right: 10px;
        bottom: 18px;
    }

    .filters .btn {
        margin-left: 0;
        margin-top: 20px;
        width: 100%;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-section {
        align-items: center;
        text-align: center;
    }

    .footer-section p {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 10px 15px;
    }

    .logo span {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .lang-switcher .lang-toggle span {
        display: none;
    }
}

/* Map Placeholder */
.map-container {
    height: 300px;
    background: #e5e5e5;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.map-circle {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(0, 87, 255, 0.2);
    border: 3px solid var(--primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Reviews */
.reviews-section {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-top: 30px;
}

.review {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.review:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.review-author {
    font-weight: 600;
}

.review-date {
    color: var(--text-light);
    font-size: 13px;
}

.review-stars {
    color: #fbbf24;
}

.review-text {
    color: var(--text);
    line-height: 1.7;
}

/* Catalog Page Styles */
.page-title {
    background: linear-gradient(135deg, var(--secondary) 0%, #16213e 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.page-title h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-title p {
    opacity: 0.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.filters-section {
    padding: 30px 0;
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filters-bar {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.catalog-section {
    padding: 40px 0;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.results-count {
    color: var(--text-light);
}

.sort-select {
    padding: 10px 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    grid-column: 1 / -1;
}

.no-results i {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 20px;
    display: block;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    padding: 10px 16px;
    border: 2px solid var(--border);
    background: white;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.page-btn:hover:not(.disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-ellipsis {
    padding: 10px;
    color: var(--text-light);
}

/* Property Status Badges */
.property-status {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.property-status.available {
    background: var(--success);
    color: white;
}


/* Property Card Link */
a.property-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.property-specs {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 10px;
}

.property-specs i {
    color: var(--primary);
    margin-right: 5px;
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

/* Custom MAX Icon */
.fa-max {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    font-weight: 900;
    font-style: normal;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.5px;
    display: inline-block;
    width: auto !important;
    /* Override fixed width */
    margin-right: 5px;
    /* Add spacing */
    transform: translateY(1px);
}

.fa-max::before {
    content: "MAX";
}

/* SEO Section */
.seo-section {
    padding: 60px 0;
    background: #fff;
    border-top: 1px solid var(--gray-100);
}

.seo-content {
    max-width: 900px;
    margin: 0 auto;
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 0.95rem;
    text-align: justify;
}

@media (max-width: 768px) {
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .filters-bar .filter-group {
        min-width: 100%;
        padding: 0;
    }

    .catalog-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .page-title h1 {
        font-size: 2rem;
    }
}