/* Real Estate - Site-wide design system */

:root {
    --primary: #0d5c4a;
    --primary-light: #117a64;
    --primary-dark: #083d32;
    --accent: #d4a84b;
    --accent-hover: #c4993a;
    --bg-warm: #f5f3f0;
    --bg-card: #ffffff;
    --text: #1a1a1a;
    --text-muted: #5a5a5a;
    --border: #e2dfda;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --card-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.1);
    --transition: 0.25s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg-warm);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    line-height: 1.6;
}

main {
    flex: 1;
}

/* ----- Navbar ----- */
.navbar-custom {
    background: var(--bg-card) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
}

.navbar-custom .navbar-brand {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary) !important;
}

.navbar-custom .navbar-brand img {
    max-height: 42px;
    width: auto;
}

.navbar-custom .nav-link {
    color: var(--text) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--primary) !important;
    background: rgba(13, 92, 74, 0.08);
}

/* ----- Homepage layout ----- */
.main-home {
    padding: 0;
    max-width: 100%;
}

/* ----- Landing Hero ----- */
.landing-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem 1.5rem 2rem;
    text-align: center;
    overflow: hidden;
}

.landing-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    z-index: 0;
}

.landing-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M32 16v32M16 32h32' stroke='%23fff' stroke-opacity='0.03' stroke-width='1'/%3E%3Ccircle cx='32' cy='32' r='8'/%3E%3Ccircle cx='32' cy='12' r='3'/%3E%3Ccircle cx='32' cy='52' r='3'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.8;
}

.landing-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0 auto;
}

.landing-hero-text {
    max-width: 680px;
    margin: 0 auto 1.25rem;
}

.landing-hero-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.landing-hero-title {
    font-family: 'Outfit';
    font-weight: 700;
    font-size: clamp(2.1rem, 5.5vw, 3.25rem);
    line-height: 1.2;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.landing-hero-title .text-highlight {
    color: var(--accent);
    position: relative;
}

.landing-hero-desc {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 1.25rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.landing-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.btn-landing {
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-landing:hover {
    transform: translateY(-2px);
}

.btn-primary-cta {
    background: var(--accent);
    border: none;
    color: var(--primary-dark);
}

.btn-primary-cta:hover {
    background: var(--accent-hover);
    color: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline-cta {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #fff;
}

.btn-outline-cta:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: #fff;
}

/* ----- Search bar in banner (full-width responsive) ----- */
.hero-search-bar {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin: 0 0 0.75rem;
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-sizing: border-box;
}

@media (min-width: 576px) {
    .hero-search-bar {
        padding: 1.25rem 1.25rem;
    }
}

@media (min-width: 992px) {
    .hero-search-bar {
        padding: 1.25rem 1.5rem;
    }
}

.hero-search-form {
    display: grid;
    align-items: end;
    gap: 0.75rem 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 576px) {
    .hero-search-form {
        grid-template-columns: 1fr 1fr;
    }
    .hero-search-actions {
        grid-column: 1 / -1;
    }
}

@media (min-width: 768px) {
    .hero-search-form {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .hero-search-actions {
        grid-column: 1 / -1;
    }
}

/* 3 fields + Search/Clear: no extra empty space after buttons */
@media (min-width: 992px) {
    .hero-search-form {
        grid-template-columns: 1fr 1fr 1fr auto;
        gap: 0.75rem 1rem;
    }
    .hero-search-form.hide-bedrooms {
        grid-template-columns: 1fr 1fr auto;
    }
    .hero-search-actions {
        grid-column: auto;
        align-self: end;
        margin-left: 0;
    }
}

.hero-search-form-five .hero-search-budget-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.hero-search-form-five .hero-search-budget-row .hero-search-input {
    flex: 1;
    min-width: 0;
}
.hero-search-budget-sep {
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
}
.hero-search-btn-primary .bi-search {
    font-size: 1.1em;
}

.hero-search-field {
    min-width: 0;
}

.hero-search-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.hero-search-select,
.hero-search-input {
    width: 100%;
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.hero-search-input::placeholder {
    color: #999;
}

.hero-search-select:focus,
.hero-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 92, 74, 0.15);
}

.hero-search-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    align-items: end;
    flex-wrap: wrap;
}

.hero-search-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), transform var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.hero-search-btn-primary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

.hero-search-btn-clear {
    background: #fff;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.hero-search-btn-clear:hover {
    background: var(--bg-warm);
    color: var(--text);
    border-color: var(--border);
}

@media (max-width: 575px) {
    .hero-search-actions {
        width: 100%;
    }
    .hero-search-actions .hero-search-btn {
        flex: 1;
        min-width: 0;
    }
}

/* Tighter gap between search bar and View All Listings */
.landing-hero-inner > .btn-landing.mt-3 {
    margin-top: 0.5rem !important;
}

.landing-hero-scroll {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    text-decoration: none;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ----- Stats strip ----- */
.landing-stats {
    background: var(--bg-card);
    padding: 2rem 1rem;
    box-shadow: var(--card-shadow);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

.landing-stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

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

.landing-stat-num {
    display: block;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: 1.85rem;
    color: var(--primary);
    line-height: 1.2;
}

.landing-stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ----- How it works ----- */
.landing-how {
    padding: 3rem 0 2rem;
}

.landing-how .section-title {
    margin-bottom: 0.25rem;
}

.landing-step {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    height: 100%;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.landing-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.landing-step-title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.landing-step-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

/* ----- Bottom CTA ----- */
.landing-cta {
    margin-top: 3.5rem;
    padding: 3rem 2rem;
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-radius: var(--radius-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.landing-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/svg%3E");
}

.landing-cta-inner {
    position: relative;
    z-index: 1;
}

.landing-cta-title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.landing-cta-desc {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.landing-cta .btn-primary-cta {
    background: var(--accent);
    color: var(--primary-dark);
}

.landing-cta .btn-primary-cta:hover {
    background: var(--accent-hover);
    color: var(--primary-dark);
}

/* ----- Search / Filter card ----- */
.home-content {
    padding: 2rem 1rem 4rem;
}

.home-content .filter-card {
    margin-top: 2rem;
}

.filter-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    padding: 2rem;
    position: relative;
    z-index: 2;
    border: 1px solid var(--border);
}

.filter-card .filter-desc {
    font-size: 0.95rem;
}

.filter-card .filter-title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-card .filter-title::before {
    content: '';
    width: 4px;
    height: 1.25rem;
    background: var(--accent);
    border-radius: 2px;
}

.filter-card .form-label {
    font-weight: 500;
    color: var(--text);
    font-size: 0.875rem;
}

.filter-card .form-control,
.filter-card .form-select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    padding: 0.6rem 0.85rem;
}

.filter-card .form-control:focus,
.filter-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 92, 74, 0.15);
}

.filter-card .btn-search {
    background: var(--primary);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.filter-card .btn-search:hover {
    background: var(--primary-dark);
    color: #fff;
}

.filter-card .btn-clear {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-sm);
}

.filter-card .btn-clear:hover {
    background: var(--bg-warm);
    color: var(--text);
    border-color: var(--border);
}

/* ----- Section title ----- */
.section-head {
    margin-bottom: 1.75rem;
}

.section-head .section-title {
  font-family: 'Outfit';
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--text);
}

.section-head .section-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.section-head-featured .section-title {
    font-size: 2rem;
}

.section-head-featured .section-sub {
    font-size: 1rem;
}

/* ----- Property cards (Featured Projects style) ----- */
.property-listing-grid {
    margin-bottom: 0;
}

.property-card-featured {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    height: 100%;
    background: var(--primary-dark);
}

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

.property-card-featured-link {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.property-card-featured-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.property-card-featured:hover .property-card-featured-img {
    transform: scale(1.06);
}

.property-card-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.property-card-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--primary);
    color: #fff;
}

.property-card-badge.featured-badge {
    background: var(--accent);
    color: var(--primary-dark);
}

.property-card-badge.top-apartment-badge {
    background: #28a745;
    color: #fff;
}

.property-card-badge.top-plot-badge {
    background: #ffc107;
    color: #000;
}

.property-card-badge.recommended-badge {
    background: #6f42c1;
    color: #fff;
}

.property-card-badge.sold {
    background: #9a3b3b;
    color: #fff;
}

/* Featured section layout */
.featured-section {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.featured-section-grid {
    margin-bottom: 0;
}

/* Bottom gradient overlay */
.property-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem 1.25rem 1.25rem;
    background: linear-gradient(to top, rgba(8, 61, 50, 0.98) 0%, rgba(8, 61, 50, 0.8) 45%, transparent 100%);
    color: #fff;
    z-index: 1;
}

.property-card-title {
   font-family: 'Outfit';
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.property-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.property-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.property-card-meta .icon-sm {
    width: 1rem;
    height: 1rem;
    opacity: 0.9;
}

.btn-read-more {
    display: inline-block;
    background: #fff;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.property-card-featured-link:hover .btn-read-more {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-1px);
}

/* Legacy property card (admin / other pages) */
.property-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    background: var(--bg-card);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-card .card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.property-card .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--border);
}

.property-card .card-body {
    padding: 1.35rem;
}

.property-card .card-title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text);
}

.property-card .btn-view {
    background: var(--primary);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

/* ----- Empty state ----- */
.empty-state {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    border: 1px dashed var(--border);
}

.empty-state .empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: var(--bg-warm);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.75rem;
}

.empty-state .lead {
    color: var(--text);
    font-weight: 500;
    margin-bottom: 1rem;
}

.empty-state .text-muted {
    margin-bottom: 1.5rem;
}

.empty-state .btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

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

/* ----- Property details page ----- */
.property-detail-img {
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--radius-md);
    width: 100%;
    box-shadow: var(--card-shadow);
}

/* Property detail image carousel (sliding) */
#propertyImageCarousel .carousel-inner {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--border);
}
#propertyImageCarousel .carousel-item img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 450px;
    object-fit: cover;
}
#propertyImageCarousel .carousel-control-prev,
#propertyImageCarousel .carousel-control-next {
    background: rgba(0,0,0,0.3);
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    opacity: 0.9;
}
#propertyImageCarousel .carousel-control-prev { left: 12px; }
#propertyImageCarousel .carousel-control-next { right: 12px; }
#propertyImageCarousel .carousel-indicators {
    margin-bottom: 10px;
}
#propertyImageCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.7);
}
#propertyImageCarousel .carousel-indicators button.active {
    background-color: #fff;
}

.detail-badge {
    font-size: 0.85rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
}

.detail-badges .badge i {
    opacity: 0.95;
}

/* Property detail meta (Facing, Status) */
.detail-meta-list {
    padding: 0;
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

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

.detail-meta-item i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.detail-meta-label {
    font-weight: 600;
    color: var(--text-muted);
    min-width: 4rem;
}

/* Detail blocks (Property Details, Amenities, Description) */
.detail-block-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.detail-block-title i {
    color: var(--primary);
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.detail-list-icon {
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
}

.detail-list-label {
    font-weight: 500;
    color: var(--text);
    min-width: 7rem;
}

.detail-list-amenities li {
    padding: 0.35rem 0;
}

.detail-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Contact card with icons */
.contact-details-card .detail-block-title {
    margin-bottom: 0.5rem;
}

.contact-details-card p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-details-card a {
    text-decoration: none;
}

.detail-contact-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.detail-contact-btns .btn {
    display: inline-flex;
    align-items: center;
}

.detail-admin .btn {
    display: inline-flex;
    align-items: center;
}

/* ----- Inner pages (About, Services) ----- */
.page-hero {
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    padding: 2.5rem 1rem 3rem;
    text-align: center;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    box-shadow: var(--card-shadow);
}

.page-hero-title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    margin-bottom: 0.5rem;
}

.page-hero-sub {
    font-size: 0.95rem;
    opacity: 0.92;
    margin: 0;
}

.section-title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: 1.35rem;
    color: var(--text);
}

.why-choose-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.service-card-header {
    font-family: 'Fraunces', Georgia, serif;
}

.service-card-header.bg-primary {
    background: var(--primary) !important;
}

.about-intro.card,
.service-card.card {
    border-radius: var(--radius-lg) !important;
}

.why-choose-item {
    border-radius: var(--radius-md) !important;
}

.contact-details-card {
    border-radius: var(--radius-md) !important;
}

/* ----- Footer ----- */
.footer-main {
    background: var(--primary-dark) !important;
    margin-top: auto;
    border-top: 3px solid var(--accent);
}

.footer-heading {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-about {
    line-height: 1.6;
}

.footer-contact a:hover,
.footer-links a:hover {
    color: var(--accent) !important;
    opacity: 1 !important;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.footer-social-link:hover {
    background: var(--primary);
    color: #fff !important;
    transform: translateY(-2px);
}

.footer-social-link i {
    font-size: 1.25rem;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.15);
}

footer.bg-dark {
    background: var(--primary-dark) !important;
    margin-top: auto;
}

/* ----- Admin (keep existing) ----- */
.admin-card {
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}
.admin-filter-form .form-label {
    font-size: 0.75rem;
}
.admin-filter-form .row {
    row-gap: 0.5rem;
}
@media (min-width: 768px) {
    .admin-filter-form .align-items-end {
        align-items: flex-end;
    }
}

/* Location Suggestions */
.location-suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1050;
    display: none;
    max-height: 280px;
    overflow-y: auto;
    margin-top: 2px;
    padding: 0.5rem 0;
}

.location-suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--primary-dark);
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    font-weight: 500;
}

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

.location-suggestion-item:hover {
    background-color: var(--bg-warm);
    color: var(--primary);
    padding-left: 25px;
}

/* Scrollbar for suggestions */
.location-suggestions-list::-webkit-scrollbar {
    width: 6px;
}
.location-suggestions-list::-webkit-scrollbar-track {
    background: transparent;
}
.location-suggestions-list::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
}
.location-suggestions-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.2);
}

/* Admin edit: images row with close-to-remove */
.admin-images-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-start;
}
.admin-image-item {
    position: relative;
    flex-shrink: 0;
    width: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
}
.admin-image-thumb {
    display: block;
    width: 100%;
    height: 70px;
    object-fit: cover;
}
.admin-image-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.admin-image-remove-btn:hover {
    background: #dc3545;
}
.admin-image-item-removed {
    opacity: 0.5;
    border-color: #dc3545;
}
.admin-image-item-removed .admin-image-thumb {
    filter: grayscale(0.5);
}
.admin-image-item-removed-now {
    flex: 0 0 0 !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: flex 0.2s, width 0.2s, height 0.2s, opacity 0.2s;
}
.admin-image-toast {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #0f5132;
    background: #d1e7dd;
    border: 1px solid #badbcc;
    border-radius: var(--radius-sm);
    animation: admin-toast-in 0.25s ease;
}
@keyframes admin-toast-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 92, 74, 0.18);
}

.btn-primary {
    border-radius: var(--radius-sm);
    background: var(--primary);
    border-color: var(--primary);
    transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline-primary {
    border-radius: var(--radius-sm);
}

/* ----- Utility for container on home ----- */
.home-content .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ----- Property List page ----- */
.property-list-page {
    padding: 0 0 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.property-list-header {
    margin-bottom: 2rem;
    text-align: center;
}

.property-list-title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.property-list-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin: 0;
}

.property-list-filters {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    border: 1px solid var(--border);
}

.property-list-form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    align-items: end;
}

@media (min-width: 576px) {
    .property-list-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .property-list-actions {
        grid-column: 1 / -1;
    }
}

@media (min-width: 768px) {
    .property-list-form-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .property-list-form-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr auto;
        gap: 1.25rem;
    }
    .property-list-actions {
        grid-column: auto;
    }
}

.property-list-field {
    min-width: 0;
}

.property-list-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.property-list-select,
.property-list-input {
    width: 100%;
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.property-list-input::placeholder {
    color: #999;
}

.property-list-select:focus,
.property-list-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 92, 74, 0.15);
}

.property-list-budget-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-list-budget-row .property-list-input {
    flex: 1;
    min-width: 0;
}

.property-list-budget-sep {
    color: var(--text-muted);
    font-weight: 600;
}

.property-list-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.property-list-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.property-list-btn-search {
    background: var(--primary-dark);
    color: #fff;
    border: none;
}

.property-list-btn-search:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

.property-list-btn-clear {
    background: #fff;
    color: var(--text-muted);
    border: 1px solid var(--border);
    text-decoration: none;
}

.property-list-btn-clear:hover {
    background: var(--bg-warm);
    color: var(--text);
    border-color: var(--border);
}

.property-list-grid {
    margin-bottom: 0;
}

.property-list-empty {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border);
}

.property-list-empty-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.property-list-empty-title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.property-list-empty-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
