/* ============================================
   THELINKS KENYA - CLASSIC ROYAL CRIMSON
   Primary: #C2185B | Dark: #880E4F | Light: #FCE4EC
   ============================================ */

:root {
    --primary: #C2185B;
    --primary-dark: #880E4F;
    --primary-light: #FCE4EC;
    --primary-gradient: linear-gradient(135deg, #C2185B 0%, #880E4F 100%);
    --accent: #FF6B6B;
    --success: #2E7D32;
    --warning: #F57C00;
    --error: #D32F2F;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border: #e0e0e0;
    --bg-light: #fafafa;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.5;
    background: var(--white);
}

/* ===== NAVIGATION ===== */
.nav-container {
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.navbar {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 1.6rem;
    color: var(--primary);
}

.logo-text {
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-text span {
    font-weight: 400;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.host-btn {
    background: transparent;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s;
}

.host-btn:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.login-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.user-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s;
}

.user-icon:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* Mobile Slide Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: var(--white);
    z-index: 1001;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
}

.mobile-menu.open {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-muted);
}

.mobile-menu-links {
    padding: 1rem 0;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s;
}

.mobile-link i {
    width: 24px;
    color: var(--primary);
}

.mobile-link:hover {
    background: var(--primary-light);
}

.mobile-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

.host-link-mobile {
    background: var(--primary);
    color: var(--white);
    border-radius: 30px;
    margin: 0.5rem 1rem;
    width: auto;
    justify-content: center;
}

.host-link-mobile i {
    color: var(--white);
}

/* ===== HERO SECTION ===== */
.hero {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SEARCH BAR ===== */
.search-container {
    max-width: 1100px;
    margin: -2rem auto 2rem;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

.search-form {
    background: var(--white);
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 0.5rem;
    border: 1px solid var(--border);
}

.search-group {
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 40px;
}

.search-group:hover {
    background: var(--bg-light);
}

.search-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.search-label i {
    color: var(--primary);
    font-size: 0.7rem;
}

.search-input {
    border: none;
    outline: none;
    font-size: 0.9rem;
    width: 100%;
    background: transparent;
    font-weight: 500;
}

.search-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

select.search-input {
    cursor: pointer;
}

.search-button {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 40px;
    padding: 0 1.8rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-button:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

/* ===== CATEGORIES ===== */
.categories {
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0 2rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.categories-grid {
    display: flex;
    gap: 2rem;
    min-width: min-content;
}

.category-item {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.5;
    padding: 0.5rem 0;
}

.category-item:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.category-active {
    opacity: 1;
    border-bottom: 2px solid var(--primary);
}

.category-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.category-name {
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== PROPERTIES SECTION ===== */
.properties-section {
    max-width: 1280px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s;
}

.view-all:hover {
    text-decoration: underline;
    transform: translateX(3px);
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.property-card {
    cursor: pointer;
    transition: all 0.3s;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.property-image {
    width: 100%;
    height: 260px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.property-wishlist {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--white);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.property-wishlist:hover {
    transform: scale(1.1);
}

.property-wishlist i {
    color: var(--primary);
}

.property-rating {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.75);
    color: var(--white);
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.property-info {
    padding: 1rem;
}

.property-location {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.property-location i {
    font-size: 0.7rem;
    color: var(--primary);
}

.property-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.property-price {
    font-weight: 700;
    margin-top: 0.5rem;
    font-size: 1rem;
    color: var(--primary);
}

.property-price span {
    font-weight: normal;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ===== LOCATIONS SECTION ===== */
.locations-section {
    max-width: 1280px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.location-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.location-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.location-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.location-name {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.location-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ===== HOST CTA ===== */
.host-cta {
    max-width: 1280px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.host-cta-content {
    background: var(--primary-light);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
}

.host-cta-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.host-cta-content h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.host-cta-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.host-cta-button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s;
}

.host-cta-button:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

/* ===== MOBILE BOTTOM NAVIGATION ===== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 0.8rem 1rem;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    transition: all 0.3s;
}

.mobile-nav-item i {
    font-size: 1.2rem;
}

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
    background: #1a1a1a;
    color: var(--text-muted);
    padding: 3rem 2rem 2rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section p {
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-section a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin: 0.5rem 0;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    font-size: 1.2rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #333;
    font-size: 0.75rem;
}

/* ===== LOADING STATES ===== */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links,
    .user-menu .host-btn,
    .user-menu .login-btn {
        display: none;
    }
    
    .user-menu .user-icon {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-bottom-nav {
        display: flex;
    }
    
    body {
        padding-bottom: 70px;
    }
    
    .navbar {
        padding: 0.8rem 1rem;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .search-container {
        margin: -1.5rem auto 1.5rem;
    }
    
    .search-form {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }
    
    .search-group {
        padding: 0.6rem 1rem;
    }
    
    .search-button {
        padding: 0.8rem;
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .property-grid {
        grid-template-columns: 1fr;
    }
    
    .locations-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .host-cta-content {
        padding: 2rem;
    }
    
    .host-cta-content h2 {
        font-size: 1.4rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (min-width: 769px) {
    .mobile-menu,
    .mobile-menu-btn {
        display: none !important;
    }
}
/* Role Badges */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.role-guest { background: #10B98120; color: #10B981; }
.role-agent { background: #3B82F620; color: #3B82F6; }
.role-host { background: #F59E0B20; color: #F59E0B; }
.role-admin { background: #DC262620; color: #DC2626; }
.role-super-admin { background: #7C3AED20; color: #7C3AED; }
.role-marketer { background: #8B5CF620; color: #8B5CF6; }
.role-support { background: #EC489920; color: #EC4899; }