/* Listing Cards */
.listing-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text);
}
.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    color: var(--text);
}
.listing-card .card-img-wrapper {
    position: relative;
    padding-top: 66%;
    overflow: hidden;
}
.listing-card .card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.listing-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}
.listing-card .price-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--card-bg);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.listing-card .card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.listing-card .category-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}
.listing-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}
.listing-card .location {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}
.listing-card .card-footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}
.listing-card .host-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}
.listing-card .host-info img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* Placeholder image */
.placeholder-img {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--success) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

/* Forms */
.form-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    max-width: 480px;
    margin: 2rem auto;
}
.form-card h2 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    padding: 0.625rem 0.875rem;
    transition: border-color 0.2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,83,92,0.1);
}
.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

/* Dashboard Sidebar */
.dashboard-layout {
    display: flex;
    gap: 2rem;
    min-height: calc(100vh - 200px);
}
.dashboard-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem 0;
    height: fit-content;
    position: sticky;
    top: 80px;
}
.dashboard-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.5rem !important;
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 0;
}
.dashboard-sidebar .nav-link:hover,
.dashboard-sidebar .nav-link.active {
    color: var(--primary) !important;
    background: rgba(26,83,92,0.06);
}
.dashboard-sidebar .nav-link.active {
    border-right: 3px solid var(--primary);
    font-weight: 600;
}
.dashboard-content {
    flex: 1;
    min-width: 0;
}

/* Stat Cards */
.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    text-align: center;
}
.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}
.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Badge styles */
.badge-status {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-status.confirmed { background: #d4edda; color: #155724; }
.badge-status.pending { background: #fff3cd; color: #856404; }
.badge-status.cancelled { background: #f8d7da; color: #721c24; }
.badge-status.completed { background: #cce5ff; color: #004085; }
.badge-status.draft { background: #e2e3e5; color: #383d41; }
.badge-status.active { background: #d4edda; color: #155724; }

/* Map Pins */
.map-price-pin {
    background: var(--card-bg);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 2px 8px;
    font-weight: 700;
    font-size: 0.8rem;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.15s;
}
.map-price-pin:hover, .map-price-pin.active {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}
.empty-state h4 {
    font-weight: 600;
    color: var(--text);
}

@media (max-width: 768px) {
    .dashboard-layout {
        flex-direction: column;
    }
    .dashboard-sidebar {
        width: 100%;
        position: static;
        display: flex;
        overflow-x: auto;
        padding: 0.5rem;
        gap: 0;
    }
    .dashboard-sidebar .nav-link {
        white-space: nowrap;
        padding: 0.5rem 1rem !important;
        border-radius: var(--radius-sm) !important;
        border-right: none !important;
    }
    .dashboard-sidebar .nav-link.active {
        background: var(--primary) !important;
        color: white !important;
    }
}
