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

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

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

/* Header */
header {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 5px;
}

.tagline {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Hero Section */
.hero {
    background: white;
    padding: 40px 0;
}

.alert-box {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8787 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(255,107,107,0.3);
}

.alert-box h2 {
    font-size: 2.2em;
    margin-bottom: 15px;
}

/* Countdown Timer Styles */
.countdown-container {
    margin: 25px 0;
}

.countdown-label {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
    border-radius: 10px;
    min-width: 80px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.countdown-number {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 5px;
}

.countdown-label-small {
    display: block;
    font-size: 0.9em;
    opacity: 0.9;
    font-weight: 600;
}

.large-text {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
}

.cta-box {
    background: #fff3cd;
    border: 3px solid #ffc107;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
}

.cta-box h3 {
    color: #856404;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.emphasis {
    color: #d9534f;
    font-size: 1.2em;
    font-weight: bold;
}

/* Search Box */
.search-box {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.search-box h3 {
    margin-bottom: 15px;
    color: #8B4513;
}

#citySearch {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s;
}

#citySearch:focus {
    outline: none;
    border-color: #8B4513;
}

/* Cities Section */
.cities {
    padding: 40px 0;
}

.cities h2 {
    text-align: center;
    color: #8B4513;
    font-size: 2em;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1em;
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.city-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.city-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.rank {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #8B4513;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
}

.city-card h3 {
    color: #8B4513;
    font-size: 1.4em;
    margin-bottom: 10px;
    margin-top: 10px;
}

.spike {
    color: #d9534f;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.plumber-count {
    color: #5cb85c;
    font-weight: 600;
}

/* Social Share Section */
.social-share {
    background: #f8f9fa;
    padding: 40px 0;
    text-align: center;
}

.social-share h3 {
    color: #8B4513;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.share-btn {
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: transform 0.2s, opacity 0.2s;
}

.share-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.facebook {
    background: #1877f2;
}

.twitter {
    background: #1da1f2;
}

.linkedin {
    background: #0077b5;
}

.reddit {
    background: #ff4500;
}

/* About Section */
.about {
    background: white;
    padding: 40px 0;
}

.about h2 {
    color: #8B4513;
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

.about p {
    max-width: 800px;
    margin: 0 auto 15px;
    font-size: 1.1em;
    line-height: 1.8;
}

.about a {
    color: #8B4513;
    font-weight: 600;
}

.disclaimer {
    color: #999;
    font-size: 0.9em;
    font-style: italic;
    margin-top: 30px;
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
}

footer p {
    margin-bottom: 5px;
}

/* City Page Styles */
.city-header {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.city-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.city-stats {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    display: inline-block;
}

.back-link {
    display: inline-block;
    margin: 20px 0;
    padding: 12px 25px;
    background: #8B4513;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
}

.back-link:hover {
    background: #A0522D;
}

.plumbers-list {
    padding: 40px 0;
}

.plumber-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.plumber-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.plumber-name {
    color: #8B4513;
    font-size: 1.5em;
    font-weight: 600;
    flex: 1;
}

.rating {
    background: #ffc107;
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
}

.plumber-info {
    margin: 10px 0;
    color: #666;
}

.plumber-info strong {
    color: #333;
}

.service-badge {
    display: inline-block;
    background: #5cb85c;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.9em;
    margin: 10px 0;
}

.call-button {
    display: inline-block;
    background: #d9534f;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 15px;
    transition: background 0.3s;
}

.call-button:hover {
    background: #c9302c;
}

.website-link {
    display: inline-block;
    margin-left: 15px;
    color: #8B4513;
    text-decoration: none;
    font-weight: 600;
}

.website-link:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    .alert-box h2 {
        font-size: 1.5em;
    }

    .countdown {
        gap: 10px;
    }

    .countdown-item {
        min-width: 65px;
        padding: 10px 15px;
    }

    .countdown-number {
        font-size: 2em;
    }

    .countdown-label-small {
        font-size: 0.75em;
    }

    .large-text {
        font-size: 1.1em;
    }

    .city-grid {
        grid-template-columns: 1fr;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        max-width: 300px;
    }

    .plumber-header {
        flex-direction: column;
    }

    .call-button {
        width: 100%;
        text-align: center;
    }

    .website-link {
        margin-left: 0;
        margin-top: 10px;
        display: block;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    .tagline {
        font-size: 0.9em;
    }

    .alert-box {
        padding: 20px;
    }

    .alert-box h2 {
        font-size: 1.3em;
    }

    .city-card {
        padding: 20px;
    }
}
