/* ========================================
   home.css - استایل مخصوص صفحه اصلی (نقشه + لیست)
   ======================================== */

#map {
    height: 520px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid #dee2e6;
    z-index: 1;
}

.map-container {
    position: relative;
}

.instruction-box {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: white;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(13,110,253,0.3);
}

.instruction-box ul {
    margin-bottom: 0;
    padding-right: 1.2rem;
}

.instruction-box li {
    margin-bottom: 0.25rem;
}

/* House cards */
.house-card {
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

.house-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12) !important;
}

.house-card .card-body {
    padding: 1.15rem 1.25rem;
}

.house-card .card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

/* Status / draw info */
#drawStatus {
    font-size: 0.9rem;
}

/* List section */
#houseListSection {
    display: none;
    margin-top: 2rem;
    scroll-margin-top: 20px;
}

.no-houses {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.no-houses .fs-1 {
    font-size: 3rem;
}

/* Geoman tweaks */
.leaflet-pm-toolbar {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.leaflet-container {
    font-family: inherit;
}

/* باکس جستجو زیر نقشه */
.search-box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.search-box .form-label {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.search-box .form-control,
.search-box .form-select {
    padding: 0.45rem 0.75rem;
    font-size: 0.92rem;
}

/* کارت ملک (لینک واقعی) */
a.house-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.type-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-inline-end: 0.35rem;
}

.map-tile-warning {
    display: none;
    background: #fff3cd;
    border: 1px solid #ffe69c;
    color: #664d03;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

/* پنجره‌ی ورود */
.otp-input {
    direction: ltr;
    text-align: center;
    letter-spacing: 0.5rem;
    font-size: 1.4rem;
}

.ltr-input {
    direction: ltr;
    text-align: left;
}

/* Responsive */
@media (max-width: 768px) {
    #map {
        height: 380px;
    }
}
