/* ============================================
   MESSMAN PROPERTIES LLC - COMPLETE STYLESHEET
   ============================================ */

/* === CSS Variables === */
:root {
    --gold: #C9A84C;
    --gold-light: #D4B95E;
    --gold-dark: #A88B3D;
    --black: #1A1A1A;
    --dark: #2C2C2C;
    --dark-gray: #444444;
    --gray: #777777;
    --light-gray: #E8E8E8;
    --lighter-gray: #F5F5F5;
    --white: #FFFFFF;
    --success: #28A745;
    --error: #DC3545;
    --warning: #FFC107;
    --info: #17A2B8;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 5px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 10px 50px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-gray {
    background: var(--lighter-gray);
}

.section-dark {
    background: var(--black);
    color: var(--white);
}

/* === Top Bar === */
.top-bar {
    background: var(--black);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-left {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar-left a {
    color: var(--light-gray);
    font-size: 0.82rem;
}

.top-bar-left a:hover {
    color: var(--gold);
}

.top-bar-left a i {
    margin-right: 5px;
    color: var(--gold);
}

.top-bar-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-login-top, .btn-admin-top {
    color: var(--white);
    font-size: 0.8rem;
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    transition: var(--transition);
}

.btn-login-top:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

.btn-admin-top:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--gold);
}

.btn-admin-top i, .btn-login-top i {
    margin-right: 4px;
}

/* === Navigation === */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--black);
    letter-spacing: 2px;
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.65rem;
    color: var(--gold);
    letter-spacing: 3px;
    font-weight: 500;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
}

.nav-menu a {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
    border-radius: 6px;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--gold-dark);
    background: rgba(201,168,76,0.08);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    min-width: 180px;
    padding: 8px 0;
    list-style: none;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background: var(--lighter-gray);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

.nav-login-mobile {
    display: none;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(201,168,76,0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--lighter-gray);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
}

.section-dark .btn-outline:hover,
.footer .btn-outline:hover {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1920') center/cover no-repeat;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    margin-bottom: 40px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-search {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    padding: 0 20px;
}

.search-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px 30px;
    box-shadow: var(--shadow-xl);
}

.search-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.search-tab {
    padding: 8px 24px;
    border: none;
    background: var(--lighter-gray);
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    font-family: var(--font-body);
}

.search-tab.active {
    background: var(--gold);
    color: var(--white);
}

.search-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-field {
    flex: 1;
    min-width: 150px;
}

.search-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--dark);
    background: var(--white);
    font-family: var(--font-body);
    cursor: pointer;
}

.btn-search {
    padding: 10px 30px;
}

/* === Page Hero === */
.page-hero {
    position: relative;
    padding: 100px 0 80px;
    text-align: center;
    background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1920') center/cover no-repeat;
    color: var(--white);
}

.page-hero-small {
    padding: 80px 0 60px;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
}

/* === Section Headers === */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
}

.section-header.light h2 {
    color: var(--white);
}

.section-header p {
    font-size: 1.05rem;
    color: var(--gray);
}

.section-header.light p {
    color: rgba(255,255,255,0.7);
}

.section-cta {
    text-align: center;
    margin-top: 40px;
}

/* === Services Grid === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(201,168,76,0.1), rgba(201,168,76,0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--gold);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--black);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
}

/* === Property Cards === */
.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.property-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.property-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-rent {
    background: var(--info);
    color: var(--white);
}

.badge-sale {
    background: var(--success);
    color: var(--white);
}

.badge-featured {
    background: var(--gold);
    color: var(--white);
    left: auto;
    right: 12px;
}

.property-info {
    padding: 20px;
}

.property-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 6px;
    line-height: 1.3;
}

.property-address {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 10px;
}

.property-address i {
    color: var(--gold);
    margin-right: 4px;
}

.property-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 12px;
}

.property-features {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.property-features span {
    font-size: 0.82rem;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-features i {
    color: var(--gold);
    font-size: 0.85rem;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
    font-size: 1.1rem;
}

/* === Stats === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--gold);
    background: rgba(201,168,76,0.05);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* === CTA Section === */
.cta-section {
    background: linear-gradient(135deg, var(--lighter-gray) 0%, var(--white) 100%);
}

.cta-section.section-dark {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark) 100%);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.05rem;
    color: var(--gray);
    margin-bottom: 30px;
}

.section-dark .cta-content p {
    color: rgba(255,255,255,0.7);
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Filters === */
.filters-bar {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
    padding: 25px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border: 1px solid var(--light-gray);
}

.filter-group {
    flex: 1;
    min-width: 130px;
}

.filter-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: var(--font-body);
    color: var(--dark);
    background: var(--white);
}

.btn-filter {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.results-info span {
    font-size: 0.9rem;
    color: var(--gray);
}

.sort-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-group label {
    font-size: 0.85rem;
    color: var(--gray);
}

.sort-group select {
    padding: 6px 10px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: var(--font-body);
}

/* === Property Detail === */
.property-detail-section {
    padding-top: 30px;
}

.back-link {
    margin-bottom: 20px;
}

.back-link a {
    color: var(--gold-dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.back-link a:hover {
    color: var(--gold);
}

.detail-header {
    margin-bottom: 30px;
}

.detail-header h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--black);
    margin-bottom: 8px;
}

.detail-address {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 10px;
}

.detail-address i {
    color: var(--gold);
}

.detail-price-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.detail-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-dark);
}

.detail-badge {
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.gallery {
    margin-bottom: 30px;
}

.gallery-main {
    width: 100%;
    height: 450px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 10px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.gallery-thumb {
    width: 100px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    flex-shrink: 0;
    border: 2px solid transparent;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    opacity: 1;
    border-color: var(--gold);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.detail-feature {
    text-align: center;
    padding: 20px 10px;
    background: var(--lighter-gray);
    border-radius: var(--radius);
}

.detail-feature i {
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 8px;
    display: block;
}

.detail-feature .feature-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--black);
    display: block;
}

.detail-feature .feature-label {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-description {
    margin-bottom: 30px;
}

.detail-description h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--black);
}

.detail-description p {
    color: var(--dark-gray);
    line-height: 1.7;
}

.detail-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.sidebar-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 15px;
    color: var(--black);
}

.sidebar-card .btn {
    width: 100%;
    margin-bottom: 10px;
}

.sidebar-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
}

.sidebar-contact-item:last-child {
    border-bottom: none;
}

.sidebar-contact-item i {
    color: var(--gold);
    width: 20px;
    text-align: center;
}

.sidebar-contact-item a {
    color: var(--dark);
    font-size: 0.9rem;
}

.sidebar-contact-item a:hover {
    color: var(--gold);
}

/* === About Page === */
.about-intro {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.about-intro h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--black);
}

.about-intro p {
    margin-bottom: 15px;
    color: var(--dark-gray);
    line-height: 1.7;
}

.about-intro-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.service-detail {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--light-gray);
}

.service-detail-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 15px;
}

.service-detail h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 10px;
}

.service-detail > p {
    color: var(--dark-gray);
    margin-bottom: 25px;
    line-height: 1.7;
    max-width: 800px;
}

.service-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.service-feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.service-feature > i {
    color: var(--gold);
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.service-feature h4 {
    font-size: 0.95rem;
    color: var(--black);
    margin-bottom: 4px;
}

.service-feature p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.5;
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.area-card {
    text-align: center;
    padding: 25px 15px;
    background: var(--lighter-gray);
    border-radius: var(--radius);
    transition: var(--transition);
}

.area-card:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-3px);
}

.area-card i {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 8px;
    display: block;
}

.area-card:hover i {
    color: var(--white);
}

.area-card h4 {
    font-size: 0.95rem;
}

/* === Forms === */
.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-intro {
    text-align: center;
    margin-bottom: 35px;
}

.form-intro h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--black);
    margin-bottom: 10px;
}

.form-intro p {
    color: var(--gray);
}

.styled-form .form-group {
    margin-bottom: 20px;
}

.styled-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.required {
    color: var(--error);
}

.styled-form input[type="text"],
.styled-form input[type="email"],
.styled-form input[type="tel"],
.styled-form input[type="number"],
.styled-form input[type="date"],
.styled-form input[type="password"],
.styled-form select,
.styled-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--dark);
    transition: var(--transition);
    background: var(--white);
}

.styled-form input:focus,
.styled-form select:focus,
.styled-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.styled-form textarea {
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
}

.form-checkbox label {
    font-size: 0.85rem;
    color: var(--dark-gray);
    font-weight: 400;
}

.form-checkbox-inline label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
}

.form-checkbox-inline input[type="checkbox"] {
    width: auto;
}

.form-message {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-top: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-message.success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.form-message.error {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

/* === Contact Page === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}

.contact-info-panel h2,
.contact-form-panel h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--black);
    margin-bottom: 15px;
}

.contact-info-panel > p {
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold);
}

.contact-item h4 {
    font-size: 0.9rem;
    color: var(--black);
    margin-bottom: 3px;
}

.contact-item a,
.contact-item p {
    font-size: 0.9rem;
    color: var(--gray);
}

.contact-item a:hover {
    color: var(--gold);
}

/* === Login Pages === */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--black) 0%, #2C2C2C 100%);
}

.login-wrapper {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-brand {
    text-align: center;
    margin-bottom: 30px;
}

.login-brand .logo {
    display: inline-flex;
    justify-content: center;
}

.login-brand .logo-name {
    color: var(--white);
}

.login-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-xl);
}

.login-box h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 8px;
    text-align: center;
}

.login-box > p {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.login-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    background: var(--lighter-gray);
    border-radius: 8px;
    padding: 4px;
}

.login-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    font-family: var(--font-body);
    color: var(--gray);
}

.login-tab.active {
    background: var(--white);
    color: var(--dark);
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

.login-panel {
    display: none;
}

.login-panel.active {
    display: block;
}

.login-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.login-footer a {
    font-size: 0.82rem;
    color: var(--gray);
}

.login-footer a:hover {
    color: var(--gold);
}

.login-footer a i {
    margin-right: 4px;
}

/* === Footer === */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo .logo-name {
    color: var(--white);
}

.footer-col p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--gold);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--gold);
}

.footer-col .contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
}

.footer-col .contact-info i {
    color: var(--gold);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-logins {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.footer-logins .btn {
    font-size: 0.78rem;
    padding: 6px 12px;
    border-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

/* === Loading === */
.loading-spinner {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
    font-size: 1.1rem;
}

.loading-spinner i {
    color: var(--gold);
    margin-right: 10px;
}

/* === Admin Dashboard === */
.admin-body {
    display: flex;
    min-height: 100vh;
    background: var(--lighter-gray);
}

.admin-sidebar {
    width: 260px;
    background: var(--black);
    color: var(--white);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    transition: var(--transition);
}

.admin-sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar-header .logo-name {
    color: var(--white);
    font-size: 1rem;
}

.admin-sidebar-header .logo-sub {
    font-size: 0.6rem;
}

.admin-nav {
    flex: 1;
    padding: 15px 0;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,0.05);
    border-left-color: var(--gold);
}

.admin-nav-link i {
    width: 20px;
    text-align: center;
}

.admin-sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 0;
}

.admin-header {
    background: var(--white);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header h1 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--black);
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-header-right span {
    font-size: 0.9rem;
    color: var(--gray);
}

.admin-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--dark);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 25px 30px;
}

.admin-stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
}

.admin-stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.05));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.2rem;
}

.admin-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    display: block;
}

.admin-stat-label {
    font-size: 0.8rem;
    color: var(--gray);
}

.admin-content-section {
    margin: 0 30px 30px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-section-header h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--black);
}

.admin-section-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.admin-filter-tabs {
    display: flex;
    gap: 5px;
    background: var(--lighter-gray);
    border-radius: 6px;
    padding: 3px;
}

.admin-tab {
    padding: 6px 16px;
    border: none;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
    font-family: var(--font-body);
    color: var(--gray);
}

.admin-tab.active {
    background: var(--white);
    color: var(--dark);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 12px 15px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--light-gray);
    white-space: nowrap;
}

.admin-table td {
    padding: 12px 15px;
    font-size: 0.88rem;
    color: var(--dark);
    border-bottom: 1px solid var(--lighter-gray);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: rgba(201,168,76,0.03);
}

.admin-table .table-img {
    width: 60px;
    height: 45px;
    border-radius: 4px;
    object-fit: cover;
}

.admin-table .table-title {
    font-weight: 600;
    color: var(--black);
}

.admin-table .table-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
}

.table-badge.available {
    background: #D4EDDA;
    color: #155724;
}

.table-badge.pending {
    background: #FFF3CD;
    color: #856404;
}

.table-badge.rented, .table-badge.sold {
    background: #F8D7DA;
    color: #721C24;
}

.table-badge.unavailable {
    background: var(--lighter-gray);
    color: var(--gray);
}

.table-badge.rent {
    background: #D1ECF1;
    color: #0C5460;
}

.table-badge.sale {
    background: #D4EDDA;
    color: #155724;
}

.table-actions {
    display: flex;
    gap: 8px;
}

.table-actions .btn-icon {
    width: 32px;
    height: 32px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--white);
    color: var(--gray);
    font-size: 0.8rem;
    transition: var(--transition);
}

.table-actions .btn-icon:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.table-actions .btn-icon.delete:hover {
    border-color: var(--error);
    color: var(--error);
}

/* === Admin Form === */
.admin-form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--light-gray);
}

.admin-form-section:last-of-type {
    border-bottom: none;
}

.admin-form-section h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--black);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

.admin-form-actions {
    display: flex;
    gap: 15px;
    padding-top: 20px;
}

.file-input {
    padding: 10px !important;
    border: 2px dashed var(--light-gray) !important;
    background: var(--lighter-gray) !important;
    cursor: pointer;
}

.file-input:hover {
    border-color: var(--gold) !important;
}

.image-preview-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.image-preview-item {
    position: relative;
    width: 120px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--light-gray);
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-item .remove-img {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: var(--error);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

small {
    display: block;
    font-size: 0.78rem;
    color: var(--gray);
    margin-top: 4px;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-intro {
        grid-template-columns: 1fr;
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .area-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar-left {
        display: none;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 15px;
        box-shadow: var(--shadow-lg);
        gap: 0;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu a {
        padding: 12px 15px;
        display: block;
    }
    .nav-login-mobile {
        display: block;
        border-top: 1px solid var(--light-gray);
        padding-top: 10px;
        margin-top: 10px;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        display: none;
    }
    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        display: block;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .search-form {
        flex-direction: column;
    }
    .search-field {
        min-width: 100%;
    }
    .page-hero h1 {
        font-size: 2rem;
    }
    .property-grid {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .form-row-3 {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .filters-bar {
        flex-direction: column;
    }
    .filter-group {
        min-width: 100%;
    }
    .detail-features {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-main {
        height: 280px;
    }
    .area-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Admin mobile */
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
    }
    .admin-menu-toggle {
        display: block;
    }
    .admin-stats {
        grid-template-columns: 1fr 1fr;
        padding: 15px;
    }
    .admin-content-section {
        margin: 0 15px 15px;
        padding: 15px;
    }
    .admin-header {
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .section {
        padding: 50px 0;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .stat-number {
        font-size: 2rem;
    }
    .admin-stats {
        grid-template-columns: 1fr;
    }
}