/* ─── Urantia Web Pro CSS ─────────────────────────── */

/* Property cards */
.property-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e5e7eb;
}
.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}
.property-img {
    height: 220px;
    object-fit: cover;
}
.property-img-placeholder {
    height: 220px;
}

/* Sidebar panel */
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar .nav-link {
    padding: 0.5rem 0.75rem;
    margin-bottom: 2px;
    border-radius: 6px;
    font-size: 0.9rem;
}
.sidebar .nav-link:hover {
    background: rgba(255,255,255,0.1);
}

/* Hero */
.hero-section {
    background-size: cover;
    background-position: center;
}

/* Responsive sidebar */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        z-index: 1040;
        width: 250px !important;
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    .sidebar.show {
        transform: translateX(0);
    }
    main {
        margin-left: 0 !important;
    }
}

/* Carousel thumbnails */
.thumb-img {
    opacity: 0.6;
    transition: opacity 0.2s;
}
.thumb-img:hover {
    opacity: 1;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Badge overrides */
.badge {
    font-weight: 500;
}

/* Card footer */
.card-footer {
    font-size: 0.85rem;
}

/* ─── Flash / Toast ─── */
.flash-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}
.toast-uwp {
    pointer-events: auto;
    min-width: 320px;
    max-width: 460px;
    padding: 0;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 32px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    position: relative;
    animation: toast-slide-in .4s cubic-bezier(.21,1.02,.73,1) forwards;
    transform: translateX(120%);
}
.toast-uwp.toast-hiding {
    animation: toast-slide-out .35s ease forwards;
}
@keyframes toast-slide-in {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
@keyframes toast-slide-out {
    from { transform: translateX(0);    opacity: 1; }
    to   { transform: translateX(120%); opacity: 0; }
}
.toast-uwp::before {
    content: '';
    width: 5px;
    flex-shrink: 0;
    border-radius: 12px 0 0 12px;
}
.toast-uwp.success::before { background: #16a34a; }
.toast-uwp.danger::before  { background: #dc2626; }
.toast-uwp.warning::before { background: #d97706; }
.toast-uwp.info::before    { background: #2563eb; }
.toast-uwp .toast-body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    flex: 1;
    min-width: 0;
}
.toast-uwp .toast-ico {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.toast-uwp.success .toast-ico { background: #f0fdf4; color: #16a34a; }
.toast-uwp.danger .toast-ico  { background: #fef2f2; color: #dc2626; }
.toast-uwp.warning .toast-ico { background: #fffbeb; color: #d97706; }
.toast-uwp.info .toast-ico    { background: #eff6ff; color: #2563eb; }
.toast-uwp .toast-msg {
    flex: 1;
    font-size: .88rem;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.4;
    word-break: break-word;
}
.toast-uwp .toast-close {
    background: none; border: none; cursor: pointer;
    color: #9ca3af; font-size: 1.1rem;
    padding: 8px 12px;
    align-self: flex-start;
    transition: color .15s;
    flex-shrink: 0;
}
.toast-uwp .toast-close:hover { color: #374151; }
.toast-uwp .toast-progress {
    position: absolute;
    bottom: 0; left: 5px; right: 0;
    height: 3px;
    background: #e5e7eb;
    overflow: hidden;
}
.toast-uwp .toast-progress::after {
    content: '';
    display: block;
    height: 100%;
    width: 100%;
    transform-origin: left;
    animation: toast-countdown 3.5s linear forwards;
}
.toast-uwp.success .toast-progress::after { background: #16a34a; }
.toast-uwp.danger .toast-progress::after  { background: #dc2626; }
.toast-uwp.warning .toast-progress::after { background: #d97706; }
.toast-uwp.info .toast-progress::after    { background: #2563eb; }
@keyframes toast-countdown {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}
@media (max-width: 576px) {
    .flash-container { right: 12px; left: 12px; top: 70px; }
    .toast-uwp { min-width: 0; max-width: 100%; }
}
