/* Mobile-First Rental System Styles - Inspired by Selar */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: #333;
    line-height: 1.6;
}

/* Mobile Header */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    padding: 12px 16px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #8b5cf6;
    text-decoration: none;
    font-style: italic;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}


.currency-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
}


.header-icons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.header-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.header-icon:hover {
    color: #8b5cf6;
}

.header-icon i {
    font-size: 18px;
}

/* Profile Section */
.profile-section {
    padding: 16px;
    background: #ffffff;
    margin-top: 80px;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.profile-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Shop Section */
.shop-section {
    padding: 0 16px 20px;
}

.shop-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

/* Property Grid */
.properties-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.property-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.property-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.property-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: #f3f4f6;
}

.property-content {
    padding: 12px;
}

.property-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-price {
    font-size: 16px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 8px;
}

.property-location {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.view-details-btn {
    width: 100%;
    background: #8b5cf6;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.view-details-btn:hover {
    background: #7c3aed;
}

/* Search Bar */
.search-section {
    padding: 16px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.search-bar {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    background: #f9fafb;
}

.search-input:focus {
    outline: none;
    border-color: #8b5cf6;
    background: #ffffff;
}

.search-btn {
    background: #8b5cf6;
    color: #ffffff;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.reset-btn {
    background: #ef4444;
    color: #ffffff;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 16px;
}

.pagination a {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination a.active {
    background: #8b5cf6;
    color: #ffffff;
    border-color: #8b5cf6;
}

.pagination a:hover {
    background: #f3f4f6;
}

/* Footer */
.mobile-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 16px;
    text-align: center;
    margin-top: 40px;
}

.footer-text {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.lock-icon {
    width: 12px;
    height: 12px;
}

/* Responsive Design */
@media (min-width: 768px) {
    .mobile-header {
        padding: 16px 24px;
    }
    
    .profile-section {
        padding: 24px;
        margin-top: 100px;
    }
    
    .shop-section {
        padding: 0 24px 20px;
    }
    
    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .property-image {
        height: 180px;
    }
    
    .search-section {
        padding: 24px;
    }
}

@media (min-width: 1024px) {
    .properties-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .property-image {
        height: 200px;
    }
}

/* Loading States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 16px;
    color: #666;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.empty-state p {
    font-size: 14px;
    color: #666;
}
