/* Splashjet Dealer List - Frontend Styles v2.2 */

/* Full Width Background */
body.page #splashjet-dealer-container,
#splashjet-dealer-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 40px 5%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    box-sizing: border-box;
}

/* Container for content */
.dealer-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.dealer-header {
    text-align: center;
    margin-bottom: 35px;
    animation: fadeInDown 0.6s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dealer-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dealer-subtitle {
    font-size: 1.1rem;
    color: #4a5568;
}

/* Controls */
.dealer-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* CONSISTENT 10px BORDER RADIUS FOR ALL ELEMENTS */
.search-box input,
.filter-box select,
.dealer-card,
.dealer-btn,
.district-badge,
.no-results {
    border-radius: 10px !important;
}

.search-box input,
.filter-box select {
    width: 100%;
    height: 50px;
    padding: 0 18px;
    font-size: 15px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    color: #2d3748;
}

.search-box input:focus,
.filter-box select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 4px 12px rgba(102,126,234,0.2), 0 0 0 4px rgba(102,126,234,0.1);
    transform: translateY(-1px);
}

.filter-box select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23667eea' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 20px;
    padding-right: 45px;
    font-weight: 500;
}

/* White Theme for Select Dropdown Options */
.filter-box select option {
    padding: 12px;
    font-size: 15px;
    background: white !important;
    color: #2d3748 !important;
}

.filter-box select:hover {
    border-color: #667eea;
}

/* Dealer Count */
.dealer-count {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Dealers Grid */
.dealers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

@media (max-width: 768px) {
    .dealers-grid {
        grid-template-columns: 1fr;
    }
}

/* Dealer Card */
.dealer-card {
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    border-left: 5px solid #667eea;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dealer-card:hover {
    box-shadow: 0 8px 20px rgba(102,126,234,0.2);
    transform: translateY(-3px);
    border-left-color: #764ba2;
}

/* Card Header */
.dealer-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}

.dealer-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.district-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(102,126,234,0.3);
}

/* Card Body */
.dealer-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.dealer-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #4a5568;
    font-size: 15px;
    line-height: 1.6;
}

.dealer-info .icon {
    flex-shrink: 0;
    margin-top: 2px;
    stroke-width: 2;
    color: #667eea;
}

.phone-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.phone-link:hover {
    color: #764ba2;
    text-decoration: none;
}

/* Card Footer */
.dealer-card-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

.dealer-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: white !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.dealer-btn:hover {
    text-decoration: none !important;
    color: white !important;
}

.dealer-btn .icon {
    stroke: white !important;
}

.visit-website-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.visit-website-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102,126,234,0.4);
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
}

.visit-shop-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.visit-shop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(240,147,251,0.4);
    background: linear-gradient(135deg, #e082ea 0%, #e4465b 100%);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.no-results svg {
    color: #cbd5e0;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    color: #4a5568;
    margin-bottom: 10px;
}

.no-results p {
    color: #718096;
}

/* Loader */
.loader {
    text-align: center;
    padding: 60px;
    color: #4a5568;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #splashjet-dealer-container {
        padding: 30px 4%;
    }
    
    .dealers-grid {
        grid-template-columns: 1fr;
    }
    
    .dealer-title {
        font-size: 2rem;
    }
    
    .dealer-subtitle {
        font-size: 1rem;
    }
    
    .dealer-controls {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .search-box input,
    .filter-box select {
        height: 48px;
        font-size: 15px;
    }
    
    .dealer-card {
        padding: 16px;
    }
    
    .dealer-card-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    
    .dealer-name {
        font-size: 1.1rem;
        flex: 1;
    }
    
    .district-badge {
        font-size: 12px;
        padding: 5px 12px;
        flex-shrink: 0;
    }
    
    .dealer-info {
        font-size: 14px;
    }
    
    .dealer-card-footer {
        flex-direction: column;
        gap: 8px;
    }
    
    .dealer-btn {
        justify-content: center;
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    #splashjet-dealer-container {
        padding: 25px 3%;
    }
    
    .dealer-title {
        font-size: 1.75rem;
    }
    
    .dealer-subtitle {
        font-size: 0.95rem;
    }
    
    .search-box input,
    .filter-box select {
        height: 48px;
        padding: 0 14px;
        font-size: 14px;
    }
    
    .dealer-card {
        padding: 14px;
        border-left-width: 4px;
    }
    
    .dealer-name {
        font-size: 1rem;
    }
    
    .district-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
}