@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --navy: #0F1F3D;
    --navy-light: #1a3358;
    --amber: #F59E0B;
    --amber-dark: #D97706;
    --danger: #EF4444;
    --success: #10B981;
    --info: #3B82F6;
    --warning: #F59E0B;
    --slate: #64748B;
    --slate-light: #94A3B8;
    --bg: #F1F5F9;
    --white: #FFFFFF;
    --card-shadow: 0 4px 24px rgba(15,31,61,0.10);
    --card-shadow-hover: 0 8px 32px rgba(15,31,61,0.18);
    --gradient: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    --gradient-navy: linear-gradient(135deg, #0F1F3D 0%, #1e3a6e 100%);
    --radius: 14px;
    --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg);
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    min-height: 100vh;
}

h1,h2,h3,h4,h5,h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* ── NAVBAR ── */
.vp-navbar {
    background: var(--gradient-navy);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 20px rgba(15,31,61,0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.vp-navbar .brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vp-navbar .brand span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vp-navbar .nav-actions { display: flex; gap: 10px; align-items: center; }

/* ── BUTTONS ── */
.btn-vp {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.btn-vp::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-vp:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,158,11,0.4); color: white; }
.btn-vp:hover::after { opacity: 1; }

.btn-outline {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255,255,255,0.4);
    padding: 3px 9px;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); color: white; border-color: white; }

.btn-ghost {
    background: transparent;
    color: var(--slate);
    border: 1.5px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-ghost:hover { background: #f8fafc; border-color: #cbd5e1; color: #334155; }

.btn-danger-soft {
    background: #FEF2F2;
    color: var(--danger);
    border: 1.5px solid #FECACA;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.btn-danger-soft:hover { background: var(--danger); color: white; border-color: var(--danger); }

.btn-edit-soft {
    background: #EFF6FF;
    color: var(--info);
    border: 1.5px solid #BFDBFE;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.btn-edit-soft:hover { background: var(--info); color: white; border-color: var(--info); }

.btn-view-soft {
    background: var(--navy);
    color: white;
    border: none;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.btn-view-soft:hover { background: var(--navy-light); color: white; transform: translateY(-1px); }

/* ── CARDS ── */
.vp-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.3s, transform 0.3s;
    animation: fadeUp 0.4s ease both;
}
.vp-card:hover { box-shadow: var(--card-shadow-hover); }

/* ── STAT CARDS ── */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }

.stat-card {
    border-radius: var(--radius);
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.4s ease both;
    cursor: default;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 100px; height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}
.stat-card::after {
    content: '';
    position: absolute;
    bottom: -20px; right: 20px;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
}

.stat-card.total    { background: var(--gradient-navy); }
.stat-card.new      { background: linear-gradient(135deg, #3B82F6, #6366F1); }
.stat-card.contacted{ background: linear-gradient(135deg, #F59E0B, #EF4444); }
.stat-card.closed   { background: linear-gradient(135deg, #10B981, #059669); }

.stat-number { font-family: 'Poppins', sans-serif; font-size: 2.4rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: 0.85rem; opacity: 0.85; margin-top: 6px; font-weight: 500; }
.stat-icon { position: absolute; top: 20px; right: 20px; font-size: 1.8rem; opacity: 0.25; }

/* ── SECTION TITLE ── */
.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    padding-left: 14px;
    margin-bottom: 22px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    border-radius: 4px;
    background: var(--gradient);
}

/* ── FILTERS ── */
.filter-bar {
    background: white;
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--card-shadow);
    margin-bottom: 24px;
    animation: fadeUp 0.4s ease 0.1s both;
}

.filter-bar .form-control,
.filter-bar .form-select {
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 9px 14px;
    font-size: 0.88rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.filter-bar .form-control:focus,
.filter-bar .form-select:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
    outline: none;
}

/* ── TABLE ── */
.vp-table-wrap {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    animation: fadeUp 0.4s ease 0.2s both;
}

.vp-table-wrap .table-header {
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vp-table-wrap .table-header h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy);
}

.vp-table { width: 100%; border-collapse: collapse; }
.vp-table thead th {
    background: #F8FAFC;
    padding: 13px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #F1F5F9;
}
.vp-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #F8FAFC;
    font-size: 0.88rem;
    vertical-align: middle;
}
.vp-table tbody tr { transition: background 0.15s; }
.vp-table tbody tr:hover { background: #FAFBFF; }
.vp-table tbody tr:last-child td { border-bottom: none; }

.owner-name { font-weight: 600; color: #1e293b; font-size: 0.9rem; }
.owner-mobile { color: var(--slate); font-size: 0.8rem; margin-top: 2px; }

/* ── BADGES ── */
.badge-vp {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    display: inline-block;
}
.badge-new        { background: #EFF6FF; color: #3B82F6; border: 1px solid #BFDBFE; }
.badge-contacted  { background: #FFFBEB; color: #D97706; border: 1px solid #FDE68A; }
.badge-meeting    { background: #F0FDF4; color: #059669; border: 1px solid #A7F3D0; }
.badge-closed     { background: #F0FDF4; color: #10B981; border: 1px solid #6EE7B7; }
.badge-notint     { background: #F8FAFC; color: #94A3B8; border: 1px solid #E2E8F0; }
.badge-sale       { background: #FFF7ED; color: #EA580C; border: 1px solid #FED7AA; }
.badge-rent       { background: #EFF6FF; color: #2563EB; border: 1px solid #BFDBFE; }
.badge-both       { background: #F5F3FF; color: #7C3AED; border: 1px solid #DDD6FE; }

.price-val { font-weight: 700; color: var(--success); font-family: 'Poppins', sans-serif; }

/* ── FORM STYLING ── */
.vp-form .form-control,
.vp-form .form-select {
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #FAFBFF;
}
.vp-form .form-control:focus,
.vp-form .form-select:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(245,158,11,0.12);
    outline: none;
    background: white;
}
.vp-form .form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #374151;
    margin-bottom: 6px;
}
.required-star { color: var(--danger); }

/* ── SUBMIT FORM HEADER ── */
.form-hero {
    background: var(--gradient-navy);
    padding: 40px 0 30px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}
.form-hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 250px; height: 250px;
    border-radius: 50%;
    background: rgba(245,158,11,0.12);
}
.form-hero::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -40px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(99,102,241,0.1);
}
.form-hero h2 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 6px;
}
.form-hero p { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.form-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gradient);
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 14px;
}

/* ── LOGIN PAGE ── */
.login-page {
    min-height: 100vh;
    background: var(--gradient-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.login-page::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(245,158,11,0.08);
    animation: pulse 4s ease-in-out infinite;
}
.login-page::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(99,102,241,0.08);
    animation: pulse 4s ease-in-out infinite reverse;
}
.login-card {
    background: white;
    border-radius: 20px;
    padding: 44px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
    animation: fadeUp 0.5s ease;
}
.login-logo {
    text-align: center;
    margin-bottom: 32px;
}
.login-logo .logo-icon {
    width: 64px; height: 64px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 8px 24px rgba(245,158,11,0.4);
}
.login-logo h4 { font-size: 1.3rem; color: var(--navy); margin-bottom: 4px; }
.login-logo p { color: var(--slate); font-size: 0.85rem; }
.login-card .form-control {
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.92rem;
}
.login-card .form-control:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
    outline: none;
}

/* ── DETAIL PAGE ── */
.detail-header {
    background: var(--gradient-navy);
    border-radius: var(--radius);
    padding: 28px;
    color: white;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.detail-header::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: rgba(245,158,11,0.12);
}
.detail-header h4 { font-size: 1.5rem; margin-bottom: 8px; }
.detail-header .location { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.detail-header .listing-type-badge {
    background: var(--gradient);
    color: white;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-block;
}

.info-row { display: flex; padding: 10px 0; border-bottom: 1px solid #F1F5F9; }
.info-row:last-child { border-bottom: none; }
.info-label { width: 180px; min-width: 180px; color: var(--slate); font-size: 0.85rem; font-weight: 500; }
.info-value { color: #1e293b; font-size: 0.9rem; font-weight: 500; }
.info-value.money { color: var(--success); font-weight: 700; font-family: 'Poppins', sans-serif; font-size: 0.95rem; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photo-grid a img {
    width: 100%; height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}
.photo-grid a img:hover { transform: scale(1.04); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

.status-panel { background: #F8FAFC; border-radius: var(--radius); padding: 22px; }
.status-panel .form-select,
.status-panel .form-control {
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
}
.status-panel .form-select:focus,
.status-panel .form-control:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(245,158,11,0.12);
    outline: none;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.08); opacity: 0.7; }
}

.anim-delay-1 { animation-delay: 0.05s; }
.anim-delay-2 { animation-delay: 0.10s; }
.anim-delay-3 { animation-delay: 0.15s; }
.anim-delay-4 { animation-delay: 0.20s; }

/* ── AMENITY CHECKBOXES ── */
.amenity-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.amenity-item {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    padding: 7px 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    font-weight: 500;
}
.amenity-item:has(input:checked) {
    background: #FFFBEB;
    border-color: var(--amber);
    color: var(--amber-dark);
}
.amenity-item input { accent-color: var(--amber); }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--slate); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.4; }
.empty-state p { font-size: 0.95rem; }

/* ── SUCCESS BOX ── */
.success-box {
    display: none;
    background: linear-gradient(135deg, #F0FDF4, #ECFDF5);
    border: 1.5px solid #A7F3D0;
    border-radius: var(--radius);
    padding: 48px 32px;
    text-align: center;
    animation: fadeUp 0.4s ease;
}
.success-box .success-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, #10B981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 24px rgba(16,185,129,0.3);
}

/* ── PRINT ── */
@media print {
    .vp-navbar, .no-print, .status-panel { display: none !important; }
    .vp-card { box-shadow: none; border: 1px solid #ddd; }
    body { background: white; }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .vp-navbar { padding: 14px 16px; }
    .form-hero { padding: 28px 0 20px; }
}