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

:root {
    --primary: #00A884;
    --primary-dark: #008C6F;
    --primary-light: #1CC9A1;
    --primary-rgb: 0, 168, 132;
    --accent: #FFB700;
    --accent-dark: #e5a500;
    --secondary: #1a1a1a;
    --text-primary: #1a1a1a;
    --text-secondary: #595959;
    --text-light: #999;
    --bg: #fff;
    --bg-gray: #f5f5f5;
    --border: #e0e0e0;
    --success: #008009;
    --info: #3B82F6;
    --warning: #F59E0B;
    --error: #d93025;
    --bg-success: #E6F7F4;
    --bg-info: #EFF6FF;
    --bg-warning: #FFFBEB;
    --bg-error: #FFF5F5;
    --shadow: 0 2px 8px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.12);
    --radius: 12px;
    --radius-lg: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header__logo-icon {
    font-size: 28px;
}

.header__nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.header__nav-link {
    color: rgba(255,255,255,.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.header__nav-link:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
}

.header__nav-link.active {
    background: rgba(255,255,255,.15);
    color: #fff;
}

.header__actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--primary);
    color: #fff;
}

.btn-secondary:hover {
    background: var(--primary-dark);
}

.btn-accent {
    background: var(--accent);
    color: var(--text-primary);
}

.btn-accent:hover {
    background: var(--accent-dark);
}

.btn-outline {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

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

.btn-lg {
    padding: 14px 18px;
    font-size: 15px;
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,.5);
}

.btn-ghost:hover {
    background: rgba(255,255,255,.1);
    border-color: #fff;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-danger {
    background: var(--error);
    color: #fff;
}

/* Hero Section */
.hero {
    background: var(--primary);
    padding: 0 24px 48px;
}

.hero__container,
.hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 32px;
}

.hero__content {
    max-width: 700px;
}

.hero__title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero__subtitle {
    font-size: 20px;
    color: rgba(255,255,255,.85);
    margin-bottom: 32px;
}

/* Search Box */
.search-box {
    background: var(--accent);
    border-radius: var(--radius);
    padding: 4px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.search-box__field {
    flex: 1;
    min-width: 150px;
    background: #fff;
    border-radius: var(--radius);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.search-box__field label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.search-box__field input,
.search-box__field select {
    border: none;
    font-size: 15px;
    color: var(--text-secondary);
    background: transparent;
    outline: none;
    width: 100%;
}

.search-tabs,
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
}

.search-tab,
.tab {
    padding: 12px 20px;
    border: none;
    background: rgba(255,255,255,.1);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.2s;
}

.search-tab:hover,
.tab:hover {
    background: rgba(255,255,255,.2);
}

.search-tab.active,
.tab.active {
    background: #fff;
    color: var(--primary);
}

.search-filters {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.search-field {
    flex: 1;
    min-width: 150px;
    background: #fff;
    border-radius: var(--radius);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.search-field label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.search-field input,
.search-field select {
    border: none;
    font-size: 15px;
    color: var(--text-secondary);
    background: transparent;
    outline: none;
    width: 100%;
    padding: 0;
}

.search-btn,
.search-box__btn {
    background: var(--primary-light);
    color: #fff;
    border: none;
    padding: 16px 32px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.search-btn:hover,
.search-box__btn:hover {
    background: var(--primary);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.search-page {
    padding-top: 40px;
    padding-bottom: 60px;
}

.search-page__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 12px;
}

.search-page__title {
    font-size: 32px;
    font-weight: 700;
}

.search-page__count {
    color: var(--text-secondary);
    font-size: 15px;
}

.search-filters {
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 32px;
}

.search-filters__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    background: var(--bg);
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.search-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-light);
    padding: 60px 0;
    font-size: 18px;
}

.section {
    padding: 48px 24px;
}

.section--gray {
    background: var(--bg-gray);
}

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

.section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.section__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.section__subtitle {
    color: var(--text-secondary);
    margin-top: 4px;
    font-size: 15px;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .grid,
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid,
    .listings-grid {
        grid-template-columns: 1fr;
    }
    .header__nav {
        display: none;
    }
    .hero__title {
        font-size: 32px;
    }
    .search-box {
        flex-direction: column;
    }
    .search-box__field,
    .search-field {
        min-width: 100%;
    }
}

/* Property Card */
.property-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.property-card__image,
.property-card__img {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f5f5f5;
}

.property-card__image img,
.property-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.property-card:hover .property-card__image img,
.property-card:hover .property-card__img img {
    transform: scale(1.05);
}

.property-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--success);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.property-card__badge--rent {
    background: var(--primary-light);
}

.property-card__badge--featured {
    background: linear-gradient(135deg, var(--accent), #ff9500);
    color: var(--text-primary);
}

.property-card__favorite,
.property-card__fav {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.property-card__favorite:hover,
.property-card__fav:hover {
    transform: scale(1.1);
    background: #fff;
}

.property-card__content,
.property-card__body {
    padding: 16px;
}

.property-card__price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.property-card__price span,
.property-card__price-unit {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

.property-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-card__location,
.property-card__loc {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.property-card__features {
    display: flex;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-secondary);
}

.property-card__feature,
.property-card__features span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Featured Card */
.featured-card {
    border: 2px solid var(--accent);
}

.featured-card::before {
    content: "A LA UNE";
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--accent), #ff9500);
    color: var(--text-primary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    z-index: 1;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: rgba(255,255,255,.7);
    padding: 48px 24px 24px;
    margin-top: 0;
}

.footer__container,
.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.footer__brand {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.footer__description,
.footer__desc {
    color: rgba(255,255,255,.7);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer__social {
    display: flex;
    gap: 12px;
}

.footer__social-link,
.footer__social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.1);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s;
}

.footer__social-link:hover,
.footer__social a:hover {
    background: var(--primary-light);
    color: #fff;
}

.footer__title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.footer__links {
    list-style: none;
    padding: 0;
}

.footer__link {
    margin-bottom: 10px;
}

.footer__link a,
.footer__links a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer__link a:hover,
.footer__links a:hover {
    color: #fff;
}

.footer__links li {
    margin-bottom: 10px;
}

.footer__bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,.5);
    font-size: 13px;
}

@media (max-width: 768px) {
    .footer__bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Skeleton Loading */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.skeleton {
    animation: pulse 1.5s infinite;
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    display: none;
}

.alert.show {
    display: block;
}

.alert-success {
    background: #e6f4ea;
    color: var(--success);
    border: 1px solid var(--success);
}

.alert-error {
    background: #fce8e6;
    color: var(--error);
    border: 1px solid var(--error);
}

.alert-info {
    background: #e8f4fd;
    color: var(--primary-light);
    border: 1px solid var(--primary-light);
}

.alert-warning {
    background: #fef7e0;
    color: #b45309;
    border: 1px solid #f59e0b;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

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

/* Cards */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.card-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Stats Bar */
.stats-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.stats-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item__value {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.stat-item__label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Page Header (for internal pages) */
.page-header {
    background: var(--primary);
    padding: 32px 24px;
}

.page-header__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.page-header__title {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.page-header__subtitle {
    font-size: 16px;
    color: rgba(255,255,255,.85);
}

/* Breadcrumbs */
.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
    color: rgba(255,255,255,.7);
    margin-bottom: 16px;
}

.breadcrumb a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb__separator {
    color: rgba(255,255,255,.4);
}

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 32px;
}

.pagination__item {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination__item:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.pagination__item.active {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: #fff;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--text-secondary);
}

.empty-state__icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-state__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state__text {
    font-size: 15px;
    margin-bottom: 24px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: var(--radius);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal__header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal__title {
    font-size: 18px;
    font-weight: 700;
}

.modal__close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal__body {
    padding: 24px;
}

.modal__footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Tags */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.tag-primary {
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary);
}

.tag-success {
    background: rgba(0,128,9,0.1);
    color: var(--success);
}

.tag-warning {
    background: rgba(245,158,11,0.1);
    color: #b45309;
}

.tag-danger {
    background: rgba(217,48,37,0.1);
    color: var(--error);
}

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-secondary); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--error); }
.font-bold { font-weight: 700; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.d-none { display: none; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
