/* Inshuti Residence – Refreshed visual language */

:root {
    --brand-primary: #2563eb;
    --brand-primary-dark: #1d4ed8;
    --brand-secondary: #0f172a;
    --brand-secondary-soft: #1e293b;
    --brand-accent: #14b8a6;
    --brand-highlight: #38bdf8;
    --brand-success: #22c55e;
    --brand-muted: #e2e8f0;
    --brand-surface: #ffffff;
    --brand-surface-soft: #f1f5f9;
    --brand-font: 'Arial', 'Helvetica Neue', sans-serif;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-lift: 0 30px 70px rgba(15, 23, 42, 0.18);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--brand-font);
    color: var(--brand-secondary-soft);
    background: linear-gradient(180deg, #fdf7ef 0%, #eef4ff 55%, #ffffff 100%);
    line-height: 1.7;
}

html {
    scroll-behavior: smooth;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--brand-primary-dark);
}

.top-bar {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.12) 0%, rgba(14, 165, 233, 0.15) 50%, rgba(20, 184, 166, 0.12) 100%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    color: #0f172a;
    font-size: 0.85rem;
}

.top-bar.is-scrolled {
    background: rgba(15, 23, 42, 0.88);
    border-bottom-color: transparent;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
}

.top-bar.is-scrolled .navbar-brand,
.top-bar.is-scrolled a {
    color: #f8fafc !important;
}

.top-bar-container {
    position: relative;
}

.top-bar-links,
.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.top-bar-item,
.top-bar a {
    color: rgba(15, 23, 42, 0.75);
    transition: color 0.2s ease;
}

.top-bar a:hover,
.top-bar a:focus {
    color: var(--brand-primary);
}

.top-bar .divider {
    color: rgba(15, 23, 42, 0.2);
    font-weight: 500;
}

.top-bar-social .social-link {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.12);
    color: var(--brand-primary);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.top-bar-social .social-link:hover {
    transform: translateY(-2px);
    background: var(--brand-primary);
    color: #fff;
}

.navbar {
    backdrop-filter: blur(14px);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--brand-secondary-soft);
    font-weight: 500;
    padding: 0.75rem 1rem;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: var(--brand-primary);
}

.primary-nav {
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 0;
    z-index: 999;
}

.primary-nav .navbar-brand {
    padding: 0;
}

.primary-nav .navbar-nav .nav-link {
    position: relative;
    font-weight: 500;
    padding: 0.75rem 0;
    margin: 0 1rem;
    color: var(--brand-secondary-soft);
    transition: color 0.2s ease;
}

.primary-nav .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    height: 3px;
    width: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.primary-nav .navbar-nav .nav-link:hover::after,
.primary-nav .navbar-nav .nav-link:focus::after,
.primary-nav .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.brand-icon {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.25);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand-secondary);
    letter-spacing: -0.01em;
}

.brand-tagline {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.55);
}

.nav-cta .nav-btn {
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    border: none;
    color: #fff;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
}

.nav-cta .nav-btn:hover,
.nav-cta .nav-btn:focus {
    background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary));
    color: #fff;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    border: none;
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary));
}

.btn-outline-primary {
    border-color: rgba(37, 99, 235, 0.45);
    color: var(--brand-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: rgba(37, 99, 235, 0.12);
    border-color: var(--brand-primary);
    color: var(--brand-secondary);
}

.btn-outline-secondary {
    border-radius: 999px;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: rgba(37, 99, 235, 0.12);
    border-color: var(--brand-primary);
    color: var(--brand-secondary);
}

.section-title {
    font-weight: 700;
    color: var(--brand-secondary);
}

.section-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--brand-primary);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Hero */
.hero-banner {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 55%, #0ea5e9 100%);
    border-radius: 40px;
    margin-top: 1.5rem;
    box-shadow: var(--shadow-lift);
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.4), transparent 55%), radial-gradient(circle at bottom left, rgba(20, 184, 166, 0.45), transparent 60%);
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(250, 204, 21, 0.18);
    color: #fefce8;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

.hero-title {
    font-size: clamp(2.6rem, 4vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-top: 1rem;
}

.hero-title .highlight {
    color: var(--brand-highlight);
    text-decoration: underline wavy rgba(250, 204, 21, 0.5);
    text-decoration-thickness: 0.18em;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.hero-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(12px);
    font-size: 0.95rem;
}

.hero-feature i {
    color: var(--brand-highlight);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.hero-stat-card {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 18px;
    padding: 1rem 1.2rem;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-stat-card i {
    font-size: 1.6rem;
    color: var(--brand-accent);
}

.hero-stat-card strong {
    display: block;
    font-size: 1.2rem;
    color: #f8fafc;
}

.hero-stat-card span {
    color: rgba(226, 232, 240, 0.85);
    font-size: 0.9rem;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.hero-media {
    position: relative;
    z-index: 2;
}

.hero-media .media-frame {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lift);
    border: 6px solid rgba(255, 255, 255, 0.35);
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.hero-media .media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media .media-badge {
    position: absolute;
    top: -18px;
    right: 18px;
    background: var(--brand-surface);
    color: var(--brand-secondary);
    padding: 0.9rem 1.2rem;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    font-weight: 600;
}

.hero-media .media-stack {
    position: absolute;
    left: -24px;
    bottom: -28px;
    display: flex;
    gap: 0.75rem;
}

.hero-media .media-stack img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    border: 4px solid #fff;
}

.floating-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 26px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: var(--shadow-soft);
}

.floating-card .form-control,
.floating-card .form-select {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 0.8rem 1rem;
}

.floating-card .form-control:focus,
.floating-card .form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.2);
}

/* Features section */
.bg-soft-sand {
    background: linear-gradient(180deg, rgba(251, 191, 80, 0.16) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 36px;
    padding: 4rem 0;
    margin-top: 4rem;
}

.reason-card {
    background: var(--brand-surface);
    border-radius: 22px;
    padding: 1.8rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reason-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lift);
}

.reason-card i {
    font-size: 1.6rem;
    color: var(--brand-primary);
    background: rgba(37, 99, 235, 0.15);
    padding: 0.8rem;
    border-radius: 14px;
}

/* Filters + listings */
.filters-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(235, 244, 255, 0.85) 100%);
    border-radius: 22px;
    padding: 1.8rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: var(--shadow-soft);
}

.filters-card .form-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(15, 23, 42, 0.6);
}

.filters-card .form-control,
.filters-card .form-select {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 0.75rem 1rem;
}

.listing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: #64748b;
    font-size: 0.9rem;
}

.listing-card {
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: var(--shadow-soft);
    background: var(--brand-surface);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.listing-card:hover,
.listing-card:focus-within {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lift);
}

.listing-figure {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.listing-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.listing-card:hover .listing-figure img {
    transform: scale(1.05);
}

.listing-gallery-thumbs {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    gap: 0.4rem;
}

.listing-gallery-thumbs .thumb {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
}

.badge-availability {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(34, 197, 94, 0.92);
    color: #022c22;
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-weight: 600;
    font-size: 0.78rem;
    z-index: 2;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
}

.badge-availability.reserved {
    background: rgba(226, 232, 240, 0.92);
    color: #1e293b;
}

.listing-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1 1 auto;
    padding: 1.75rem;
}

.listing-card .card-body > .listing-meta {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.listing-card .card-body > a.btn,
.listing-card .card-body > .d-grid {
    margin-top: 0.75rem;
}

.unit-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.listing-card .listing-meta .unit-feature {
    background: var(--brand-surface-soft);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    color: #475569;
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.06);
}

.status-filter-group,
.unit-filter-group {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status-filter-group .btn,
.unit-filter-group .btn {
    border-radius: 999px;
}

.status-filter-group .btn.active,
.unit-filter-group .btn.active {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

.dashboard-table tbody tr + tr {
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.dashboard-table td,
.dashboard-table th {
    padding: 1.1rem 1.25rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.status-pill-success {
    background: rgba(34, 197, 94, 0.15);
    color: #047857;
}

.status-pill-warning {
    background: rgba(251, 191, 36, 0.18);
    color: #92400e;
}

.status-pill-warning::before,
.status-pill-success::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
}

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 96px;
    z-index: 1110;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 20px 35px rgba(18, 140, 126, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float i {
    font-size: 1.2rem;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
    transform: translateY(-3px);
    color: #fff;
    box-shadow: 0 22px 40px rgba(18, 140, 126, 0.35);
}

.whatsapp-float:focus {
    outline: 2px solid rgba(37, 99, 235, 0.35);
    outline-offset: 4px;
}

.unit-feature i {
    color: var(--brand-primary);
}

/* Unit detail */
.unit-hero {
    position: relative;
    border-radius: 36px;
    overflow: hidden;
    min-height: 360px;
    margin-top: 1.5rem;
    box-shadow: var(--shadow-lift);
}

.unit-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.2) 65%);
    z-index: 1;
}

.unit-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
}

.unit-hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem;
    color: #fff;
}

.unit-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.unit-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(8px);
    font-size: 0.85rem;
}

.unit-hero-chip.availability {
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
}

.unit-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.unit-hero-actions .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.7);
}

.unit-summary-card {
    border-radius: 24px;
    background: var(--brand-surface);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.info-tile {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: var(--brand-surface-soft);
}

.info-tile i {
    color: var(--brand-primary);
    font-size: 1.4rem;
    background: rgba(37, 99, 235, 0.15);
    padding: 0.6rem;
    border-radius: 14px;
}

.amenity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.amenity-list li {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    display: flex;
    gap: 0.75rem;
}

.amenity-list li i {
    color: var(--brand-primary);
    margin-top: 4px;
}

.unit-sidebar .btn {
    border-radius: 14px;
    padding: 0.85rem 1.2rem;
}

.unit-sidebar .alert {
    border-radius: 16px;
    border: none;
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.map-card {
    border-radius: 24px;
    padding: 2.5rem;
    background: linear-gradient(145deg, rgba(14, 116, 144, 0.06), rgba(79, 70, 229, 0.08));
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    padding: 0.9rem 0;
    box-shadow: 0 -10px 20px rgba(15, 23, 42, 0.15);
    z-index: 1050;
}

.sticky-cta .btn {
    font-weight: 600;
}

.site-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 60%, #0ea5e9 100%);
    color: #e2e8f0;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
}

.site-footer a:hover {
    color: #fff;
}

.gallery-grid img {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.15);
}

.gallery-grid img.active-thumb {
    box-shadow: 0 0 0 3px var(--brand-primary);
    transform: translateY(-4px);
}

.unit-hero img.pulse {
    animation: heroPulse 0.6s ease;
}

.unit-hero img {
    transition: transform 0.35s ease;
}

.unit-hero img:hover {
    transform: scale(1.02);
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-stat-card.is-visible {
    transform: translateY(0) scale(1);
}

.modal-content {
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: var(--shadow-lift);
}

.modal-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.modal-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.badge.bg-light {
    color: var(--brand-secondary-soft);
    font-weight: 600;
    background: rgba(148, 163, 184, 0.25) !important;
}

@media (max-width: 992px) {
    .hero-banner {
        border-radius: 24px;
    }

    .sticky-cta {
        position: static;
        border-radius: 0;
    }

    .hero-stat-card {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .listing-figure {
        height: 200px;
    }

    .hero-highlights,
    .hero-stats {
        gap: 0.6rem;
    }

    .hero-feature {
        width: 100%;
        justify-content: center;
    }

    .whatsapp-float {
        right: 16px;
        bottom: 120px;
        padding: 0.7rem 0.9rem;
    }

    .whatsapp-float span {
        display: none;
    }
}

@keyframes heroPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}
