
:root{--brand-navy:#0B2A3A;--brand-ink:#0F2230;--brand-orange:#F26522;--brand-mist:#F5F7FA;--text:#101828;--muted:#475467;--radius:14px;--shadow:0 10px 30px rgba(0,0,0,.08)}
*{box-sizing:border-box}html,body{margin:0;padding:0;color:var(--text);background:#fff;font:16px/1.55 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',Arial,sans-serif}
img{max-width:100%;display:block}a{color:var(--brand-orange);text-decoration:none}a:hover{text-decoration:underline}
.container{width:min(1200px,92vw);margin:auto}
.header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.85);backdrop-filter:saturate(140%) blur(10px);border-bottom:1px solid #eaeef3}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:12px 0}
.brand{display:flex;gap:12px;align-items:center}.brand img{width:40px;height:40px}.brand .name{font-weight:800;letter-spacing:.3px;color:var(--brand-navy)}
.brand img[style*="width:150px"]{width:150px!important;height:auto!important}
.nav{display:flex;gap:22px;align-items:center}.nav a{color:var(--brand-ink);font-weight:600}
.btn{display:inline-flex;align-items:center;gap:8px;border-radius:999px;padding:12px 18px;font-weight:700;border:2px solid transparent;transition:.2s all}
.btn-primary{background:var(--brand-orange);color:#fff}.btn-primary:hover{filter:brightness(.96)}
.btn-ghost{border-color:rgba(15,34,48,.2);color:var(--brand-ink);background:#fff}
.mobile-toggle{display:none}
.hero{position:relative;background:linear-gradient( to bottom, rgba(11,42,58,.65), rgba(11,42,58,.65) ), url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat; color:#fff}
.hero-inner{padding:96px 0 56px; text-align:center}
.hero h1{font-size:clamp(28px,4.2vw,54px);line-height:1.1;margin:0 0 14px}
.hero p{margin:0 0 22px;font-size:clamp(16px,2.2vw,20px);opacity:.9}
.hero .cta{display:flex;justify-content:center;gap:14px;flex-wrap:wrap}
.search-card{background:#0d2b3a; color:#fff; border-radius:var(--radius); box-shadow:var(--shadow); padding:18px; margin-top:-28px}
.search-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.input, select{width:100%;padding:12px 14px;border-radius:10px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.08);color:#fff}
.input::placeholder{color:#e6eef3}
.pills{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.pill{padding:8px 12px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.28);border-radius:999px;cursor:pointer}.pill.active{background:#fff;color:#0d2b3a}
.section{padding:56px 0}.section .title{font-size:clamp(22px,3vw,30px);margin:0 0 18px;color:var(--brand-ink)}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.card{background:#fff;border:1px solid #eaeef3;border-radius:16px;overflow:hidden;box-shadow:var(--shadow);transition:transform .15s ease}
.card:hover{transform:translateY(-3px)}
.card-link{text-decoration:none;color:inherit;display:block}
.card-link:hover{text-decoration:none;color:inherit}
.card-media{position:relative;height:240px;overflow:hidden}.card-media img{width:100%;height:100%;object-fit:cover}.badge{position:absolute;top:12px;left:12px;background:var(--brand-orange);color:#fff;padding:6px 10px;border-radius:999px;font-weight:800;box-shadow:var(--shadow)}
.card-body{padding:14px 16px}.card-title{font-weight:800;color:var(--brand-navy)}.meta{color:#5b6b78;font-size:14px;margin-top:6px}
.card-actions{display:flex;gap:10px;margin-top:12px}.tag{display:inline-flex;padding:6px 10px;border-radius:999px;background:var(--brand-mist);color:#0b2030;font-weight:600;font-size:14px}
.cta-band{background:var(--brand-navy);color:#fff;border-radius:18px;padding:22px 28px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px}
.footer{background:#0a1f2c;color:#d7e1ea;padding:36px 0;margin-top:36px}.footer a{color:#d7e1ea}
.footer .grid{display:grid;grid-template-columns:2fr 1fr 1fr 1.2fr;gap:20px}
/* Tablet Responsiveness */
@media (max-width: 1024px){
    .search-grid{grid-template-columns:repeat(3,1fr)}
    .cards{grid-template-columns:repeat(2,1fr)}
    .footer .grid{grid-template-columns:1fr 1fr}
    .brand img{width:120px;height:auto}
    .brand img[style*="width:150px"]{width:120px!important;height:auto!important}
    .container{width:95vw}
    .section{padding:40px 0}
    .hero-inner{padding:80px 0 50px}
    .card-media{height:220px}
}

/* Mobile Responsiveness */
@media (max-width: 768px){
    /* Better touch targets */
    .btn{min-height:44px}
    .input, select{min-height:44px}
    /* Prevent zoom on iOS */
    .input, select{font-size:16px}
    /* Better table scrolling */
    .admin-table{overflow-x:auto;display:block;white-space:nowrap}
    .admin-table-wrapper{overflow-x:auto;-webkit-overflow-scrolling:touch}
    .nav{display:none;position:absolute;top:100%;left:0;right:0;background:white;flex-direction:column;padding:20px;box-shadow:var(--shadow);border-radius:0 0 16px 16px;z-index:1000;gap:16px;border:1px solid #eee;border-top:none;transition:all 0.3s ease}
    .nav[style*="flex"]{display:flex!important;animation:slideDown 0.3s ease}
    .nav a{padding:12px 0;border-bottom:1px solid #eee;width:100%;text-decoration:none}
    .nav a:last-child{border-bottom:none}
    .nav a:hover{background:rgba(11,42,58,0.05);padding-left:8px;transition:all 0.2s ease}
    .mobile-toggle{display:inline-flex;font-size:18px;background:transparent;border:none;color:var(--brand-navy);cursor:pointer;padding:8px;border-radius:4px;transition:all 0.2s ease}
    .mobile-toggle:hover{background:rgba(11,42,58,0.1)}
    .header{position:relative}
    .search-grid{grid-template-columns:1fr}
    .cards{grid-template-columns:1fr}
    .hero-inner{padding:60px 0 30px}
    .brand img{width:100px;height:auto}
    .brand img[style*="width:150px"]{width:100px!important;height:auto!important}
    .header-inner{padding:8px 0}
    .search-card{margin-top:-20px;padding:16px}
    .section{padding:32px 0}
    .cta-band{flex-direction:column;text-align:center;padding:18px}
    .footer .grid{grid-template-columns:1fr;gap:16px;text-align:center}
    .card-actions{flex-wrap:wrap}
    .tag{font-size:12px;padding:4px 8px}
    .btn{padding:10px 16px;font-size:14px}
    .hero .cta{flex-direction:column;align-items:center}
    .hero .cta .btn{width:100%;max-width:280px;justify-content:center}
    .card-media{height:200px}
}

/* Small Mobile Responsiveness */
@media (max-width: 480px){
    .container{width:98vw}
    .brand img{width:80px;height:auto}
    .brand img[style*="width:150px"]{width:80px!important;height:auto!important}
    .hero h1{font-size:24px}
    .hero p{font-size:16px}
    .hero-inner{padding:50px 0 25px}
    .search-card{padding:12px}
    .input, select{padding:10px 12px;font-size:16px}
    .btn{padding:8px 14px;font-size:14px}
    .card-body{padding:12px}
    .card-title{font-size:16px}
    .meta{font-size:13px}
    .section .title{font-size:20px}
    .cta-band{padding:16px}
    .footer{padding:24px 0}
    .card-media{height:180px}
    /* Admin responsive styles */
    .admin-table{font-size:12px}
    .admin-table th, .admin-table td{padding:8px 4px}
    .form-grid{grid-template-columns:1fr}
    .stats-grid{grid-template-columns:1fr}
    .admin-nav a{font-size:14px;margin-right:12px}
    .admin-features{grid-template-columns:1fr!important}
}

/* Mobile menu animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Property listing form styles */
.property-form .form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 14px;
    display: block;
}

.property-form h3, .property-form h4 {
    color: #ffffff;
    margin-bottom: 16px;
}

/* Google Maps autocomplete styling */
.pac-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    margin-top: 4px;
}

.pac-item {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-size: 14px;
}

.pac-item:hover {
    background-color: #fff5f1;
}

.pac-item-selected {
    background-color: #fff5f1;
}

.pac-matched {
    color: var(--brand-orange);
    font-weight: 600;
}

.pac-icon {
    background-image: none;
    background-color: var(--brand-orange);
    border-radius: 50%;
    width: 20px;
    height: 20px;
}

/* Location input feedback */
#locationInput.location-valid {
    border-color: #198754 !important;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25) !important;
}

#locationInput.location-typing {
    border-color: var(--brand-orange) !important;
    box-shadow: 0 0 0 0.2rem rgba(242, 101, 34, 0.25) !important;
}

.property-form .form-control, .property-form .form-select {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px 16px;
    transition: border-color 0.2s ease;
}

.property-form .form-control:focus, .property-form .form-select:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 0.2rem rgba(242, 101, 34, 0.25);
}

.property-form .btn-lg {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
}

/* Form validation styles */
.property-form .form-control.is-invalid,
.property-form .form-select.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.property-form .form-control.is-valid,
.property-form .form-select.is-valid {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

/* Responsive improvements for property form */
@media (max-width: 768px) {
    .property-form .col-md-6,
    .property-form .col-md-4 {
        margin-bottom: 16px;
    }
    
    .property-form .btn-lg {
        width: 100%;
        padding: 14px 24px;
    }
    
    .property-form h3 {
        font-size: 20px;
    }
    
    .upload-area {
        border: 1px dashed #ddd;
        padding: 16px;
    }
    
    .image-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .image-preview-item {
        height: 100px;
    }
    
    .features-checkboxes .col-md-4,
    .features-checkboxes .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Image Upload Styles */
.image-upload-section {
    margin-bottom: 20px;
}

.upload-area {
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: #fafbfc;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--brand-orange);
    background: #fff5f1;
}

.upload-area.dragover {
    border-color: var(--brand-orange);
    background: #fff5f1;
    transform: scale(1.02);
}

.upload-content {
    pointer-events: none;
}

.upload-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.upload-area h5 {
    color: var(--brand-navy);
    margin-bottom: 8px;
    font-weight: 600;
}

.upload-area p {
    color: var(--muted);
    margin-bottom: 16px;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.image-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    height: 120px;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-item .remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-item .remove-btn:hover {
    background: #dc3545;
}

.image-preview-item .main-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: var(--brand-orange);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.upload-progress {
    margin-top: 20px;
}

.upload-progress .progress {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.upload-progress .progress-bar {
    background: var(--brand-orange);
    transition: width 0.3s ease;
}

.upload-status {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

/* Features checkboxes styling */
.features-checkboxes .form-check {
    padding: 8px 12px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #fff;
    transition: all 0.2s ease;
}

.features-checkboxes .form-check:hover {
    border-color: var(--brand-orange);
    background: #fff5f1;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(242, 101, 34, 0.15);
}

.features-checkboxes .form-check-input:checked + .form-check-label {
    color: var(--brand-orange);
    font-weight: 600;
}

.features-checkboxes .form-check-input:checked ~ .form-check {
    border-color: var(--brand-orange);
    background: #fff5f1;
}

.features-checkboxes .form-check-label {
    cursor: pointer;
    font-size: 14px;
    margin-left: 6px;
    color: #374151;
    font-weight: 500;
}

.features-checkboxes .form-check-input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    border: 2px solid #6b7280;
    background-color: #ffffff;
}

/* Admin features styling */
.admin-features div {
    transition: all 0.2s ease;
}

.admin-features div:hover {
    border-color: var(--brand-orange) !important;
    background: #fff5f1 !important;
}

.admin-features input[type="checkbox"]:checked + label {
    color: var(--brand-orange);
    font-weight: 600;
}

/* Additional features styling improvements */
.features-checkboxes .form-check-input:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 0.25rem rgba(242, 101, 34, 0.25);
    outline: none;
}

.features-checkboxes .form-check-input:checked {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 0.15rem rgba(242, 101, 34, 0.2);
}

.features-checkboxes .form-check-input:hover {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 0.1rem rgba(242, 101, 34, 0.15);
}

/* Property Detail Page Styles */
.property-images .main-image {
    position: relative;
    margin-bottom: 16px;
}

.property-images .main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.price-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--brand-orange);
    color: white;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 18px;
    box-shadow: var(--shadow);
}

.image-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--brand-orange);
}

.location {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 16px;
}

.location-icon {
    margin-right: 8px;
}

.property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.meta-item {
    background: var(--brand-mist);
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    color: var(--brand-navy);
    font-size: 14px;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    background: #e9ecef;
    color: #495057;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.contact-sidebar {
    position: sticky;
    top: 100px;
}

.contact-card {
    background: white;
    border: 1px solid #eaeef3;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.contact-card h3 {
    color: var(--brand-navy);
    margin-bottom: 12px;
}

.contact-info h4 {
    color: var(--brand-navy);
    font-size: 16px;
    margin-bottom: 12px;
}

.contact-info p {
    margin-bottom: 8px;
    color: var(--muted);
}

.contact-info a {
    color: var(--brand-orange);
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Map container styles */
.location-map h3 {
    margin-bottom: 16px;
    color: var(--brand-navy);
}

#map {
    border: 1px solid #ddd;
    box-shadow: var(--shadow);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .property-images .main-image img {
        height: 250px;
    }
    
    .property-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .meta-item {
        text-align: center;
    }
    
    .contact-sidebar {
        position: static;
        margin-top: 32px;
    }
    
    .image-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
    
    .thumbnail {
        width: 60px;
        height: 45px;
    }
    
    #map {
        height: 300px !important;
    }
}

.alert{padding:16px 20px;margin:16px 0;border-radius:12px;font-weight:600}
.alert-success{background:#d1fae5;color:#166534;border:1px solid #bbf7d0}
.alert-error{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}

/* About Page Styles */
.section-title {
    color: var(--brand-navy);
    font-size: clamp(24px, 3vw, 32px);
    margin-bottom: 20px;
    font-weight: 800;
}

.lead {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.feature-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #eaeef3;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.feature-card h5 {
    color: var(--brand-navy);
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.service-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eaeef3;
    box-shadow: var(--shadow);
}

.service-item h5 {
    color: var(--brand-navy);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 16px;
}

.service-item p {
    color: var(--muted);
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.about-sidebar {
    position: sticky;
    top: 100px;
}

.contact-card, .stats-card, .credentials-card {
    background: white;
    border: 1px solid #eaeef3;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.contact-card h4, .stats-card h4, .credentials-card h4 {
    color: var(--brand-navy);
    margin-bottom: 16px;
    font-size: 18px;
}

.contact-info p {
    margin-bottom: 8px;
    color: var(--muted);
}

.contact-info a {
    color: var(--brand-orange);
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

.stat-item {
    text-align: center;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--brand-orange);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--muted);
    margin-top: 4px;
}

.credentials-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.credentials-card li {
    padding: 8px 0;
    color: var(--muted);
    font-size: 14px;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 16px;
}

.credentials-card li:before {
    content: '✓';
    color: var(--brand-orange);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.credentials-card li:last-child {
    border-bottom: none;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.area-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eaeef3;
    box-shadow: var(--shadow);
    text-align: center;
}

.area-card h5 {
    color: var(--brand-navy);
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 18px;
}

.area-card p {
    color: var(--muted);
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

/* Mobile responsiveness for about page */
@media (max-width: 768px) {
    .about-sidebar {
        position: static;
        margin-top: 32px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .areas-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .service-item {
        padding: 16px;
    }
    
    .area-card {
        padding: 16px;
    }
    
    .contact-card, .stats-card, .credentials-card {
        padding: 20px;
    }
}
