/* State Index - Uber Style */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #fff;
    color: #000;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero */
.hero {
    padding: 80px 0 60px;
    background: #fff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.hero-left h1 {
    font-size: 52px;
    font-weight: 700;
    color: #000;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-left p {
    font-size: 18px;
    color: #545454;
    margin-bottom: 40px;
}

/* Search Box */
.search-box {
    max-width: 500px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    z-index: 1;
}

.search-box input {
    width: 100%;
    padding: 16px 48px 16px 48px;
    font-size: 16px;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: #000;
}

.search-box input::placeholder {
    color: #999;
}

.search-clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: color 0.2s;
    z-index: 1;
}

.search-clear:hover {
    color: #000;
}

/* Autocomplete */
.search-autocomplete {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
    z-index: 100;
    overflow: hidden;
}

.autocomplete-item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #000;
    transition: background-color 0.15s;
    border-bottom: 1px solid #f6f6f6;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: #f6f6f6;
}

.autocomplete-name {
    font-size: 14px;
    font-weight: 500;
}

/* Hero CTA */
.hero-cta {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-cta-text {
    color: #737373;
    font-size: 14px;
}

.hero-cta-link {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 2rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    background: #f6f6f6;
}

.hero-cta-link:hover {
    background: #e6e6e6;
}

/* Featured Advocates */
.hero-right {
    position: relative;
}

.featured-advocates {
    background: #f6f6f6;
    border-radius: 12px;
    padding: 24px;
}

.featured-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 20px 0;
}

.featured-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.featured-advocate {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    text-decoration: none;
    color: #000;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    cursor: pointer;
}

.featured-advocate:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.featured-advocate:hover .featured-arrow {
    opacity: 1;
    transform: translateX(0);
}

.featured-advocate img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.featured-info {
    flex: 1;
    min-width: 0;
}

.featured-name {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.featured-location {
    font-size: 14px;
    color: #737373;
}

.featured-rate {
    font-size: 13px;
    color: #737373;
    margin-top: 4px;
}

.featured-pro-badge {
    display: none;
}

.featured-arrow {
    color: #000;
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.2s, transform 0.2s;
}

/* States Section */
.states-section {
    padding: 40px 0 80px;
}

.states-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin-bottom: 24px;
}

/* States List */
.states-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid #e5e5e5;
}

.state-item {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
    text-decoration: none;
    color: #000;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.15s;
}

.state-item:hover {
    background: #f6f6f6;
}

.state-item .arrow {
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
    font-size: 18px;
}

.state-item:hover .arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Remove right border from last column */
.state-item:nth-child(4n) {
    border-right: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .states-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .state-item:nth-child(4n) {
        border-right: 1px solid #e5e5e5;
    }
    
    .state-item:nth-child(3n) {
        border-right: none;
    }
    
    .hero-grid {
        gap: 40px;
    }
    
    .hero-left h1 {
        font-size: 44px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-left h1 {
        font-size: 40px;
    }
    
    .hero-left p {
        font-size: 16px;
    }
    
    .states-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .state-item:nth-child(3n) {
        border-right: 1px solid #e5e5e5;
    }
    
    .state-item:nth-child(2n) {
        border-right: none;
    }
    
    .featured-advocates {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero-left h1 {
        font-size: 32px;
    }
    
    .hero-left p {
        font-size: 16px;
    }
    
    .states-list {
        grid-template-columns: 1fr;
    }
    
    .state-item {
        border-right: none;
    }
    
    .featured-advocates {
        padding: 16px;
    }
    
    .featured-advocate {
        padding: 12px;
    }
}
