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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: #222;
    line-height: 1.6;
    background: #fff;
}

a { color: inherit; text-decoration: none; }

/* Navbar */
.navbar {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar .brand {
    font-size: 22px;
    font-weight: 700;
    color: #c2410c;
    letter-spacing: 0.02em;
}
.navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.navbar .nav-links a,
.navbar .nav-links button {
    color: #444;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 999px;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}
.navbar .nav-links a:hover,
.navbar .nav-links button:hover {
    color: #c2410c;
    background: #fff7ed;
}
.navbar .nav-links form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

/* Hero slider */
.hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
}
.hero .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}
.hero .slide.active { opacity: 1; }
.hero .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}
.hero h1 { font-size: 64px; margin-bottom: 16px; }
.hero p  { font-size: 20px; margin-bottom: 32px; color: #eee; }
.hero .btn {
    background: #ea580c;
    color: #fff;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 17px;
    display: inline-block;
}
.hero .btn:hover { background: #c2410c; }

/* Sections */
.section { padding: 70px 20px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section h2 {
    font-size: 34px;
    text-align: center;
    margin-bottom: 40px;
    color: #111;
}
.intro { background: #fff7ed; text-align: center; }
.intro p { max-width: 750px; margin: 0 auto; color: #444; font-size: 17px; }

/* Cards grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}
.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: transform 0.25s, box-shadow 0.25s;
    display: block;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.14);
}
.card .card-img {
    height: 200px;
    background: linear-gradient(135deg, #fb923c, #c2410c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
}
.card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card .card-body { padding: 20px; }
.card h3 { font-size: 21px; margin-bottom: 6px; }
.card .loc { color: #c2410c; font-size: 14px; margin-bottom: 10px; }
.card .desc { color: #555; font-size: 15px; }

/* Footer */
footer {
    background: #111827;
    color: #d1d5db;
    padding: 50px 20px 20px;
    margin-top: 60px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}
footer h3, footer h4 { color: #f59e0b; margin-bottom: 14px; }
footer a { color: #d1d5db; display: block; margin-bottom: 8px; }
footer a:hover { color: #f59e0b; }
.footer-bottom {
    text-align: center;
    border-top: 1px solid #1f2937;
    margin-top: 30px;
    padding-top: 20px;
    color: #6b7280;
    font-size: 14px;
}

/* Buttons */
.btn-primary {
    background: #ea580c;
    color: #fff;
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    display: inline-block;
}
.btn-primary:hover { background: #c2410c; }
.btn-secondary {
    background: #e5e7eb;
    color: #111;
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    display: inline-block;
}
.btn-secondary:hover { background: #d1d5db; }
.btn-danger {
    background: #dc2626;
    color: #fff;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}
.btn-link { color: #c2410c; }
.btn-link:hover { text-decoration: underline; }

/* Forms */
.form-box {
    max-width: 620px;
    margin: 0 auto;
    background: #fff;
    padding: 34px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.form-box h1 { margin-bottom: 22px; font-size: 26px; }
.field { margin-bottom: 18px; }
.field label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
    font-weight: 600;
}
.field input[type=text],
.field input[type=email],
.field input[type=password],
.field input[type=file],
.field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: #ea580c;
}
.checkbox { display: flex; align-items: center; gap: 8px; }
.checkbox input { width: auto; }
.error { color: #dc2626; font-size: 13px; margin-top: 4px; }
.form-actions { margin-top: 24px; display: flex; gap: 12px; }

/* Alerts */
.alert-success {
    background: #dcfce7;
    color: #166534;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.alert-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Dashboard */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}
.page-title { font-size: 30px; margin-bottom: 24px; }
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.stat {
    background: #fff;
    padding: 22px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 5px solid #ea580c;
}
.stat .label {
    color: #6b7280;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat .value {
    font-size: 34px;
    font-weight: bold;
    margin-top: 6px;
    color: #111;
}
.actions { margin-bottom: 28px; display: flex; gap: 12px; }

/* Tables */
.table-box {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
table { width: 100%; border-collapse: collapse; }
th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}
th { background: #f9fafb; font-size: 12px; text-transform: uppercase; color: #6b7280; }
td img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.badge {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}
.badge-yes { background: #ffedd5; color: #9a3412; }
.badge-no  { background: #f3f4f6; color: #4b5563; }

/* Pagination */
.pagination { margin-top: 20px; }
.pagination a, .pagination span {
    display: inline-block;
    padding: 6px 12px;
    margin-right: 4px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
}
.pagination a:hover { background: #f9fafb; }

/* Street detail */
.street-hero {
    height: 55vh;
    background: linear-gradient(135deg, #fb923c, #c2410c);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.street-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit:contain;
}
.street-hero .title-overlay {
    position: relative;
    text-align: center;
    color: #fff;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.street-hero h1 { font-size: 50px; }
.street-detail {
    max-width: 850px;
    margin: -60px auto 0;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 3;
}
.street-detail .loc { color: #c2410c; font-size: 17px; margin-bottom: 20px; }
.breadcrumb { margin-bottom: 20px; font-size: 14px; }
.breadcrumb a { color: #c2410c; }
.breadcrumb span { color: #999; margin: 0 6px; }

/* Responsive */
@media (max-width: 700px) {
    .hero h1 { font-size: 40px; }
    .hero p { font-size: 16px; }
    .navbar .nav-links a, .navbar .nav-links button {
        margin-left: 12px;
        font-size: 14px;
    }
    .street-hero h1 { font-size: 32px; }
    .street-detail { padding: 24px; margin-top: -30px; }
    th, td { padding: 10px; font-size: 13px; }
}

/* Page header (for All Streets page) */
.page-header {
    background: linear-gradient(135deg, #fb923c, #c2410c);
    color: #fff;
    padding: 70px 20px;
    text-align: center;
}
.page-header h1 {
    font-size: 40px;
    margin-bottom: 10px;
}
.page-header p {
    font-size: 17px;
    color: #fee2e2;
}

/* Search bar */
.search-bar {
    max-width: 520px;
    margin: 0 auto 40px;
}
.search-bar input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #d1d5db;
    border-radius: 30px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-bar input:focus {
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

/* Popular badge on card image */
.card-img { position: relative; }
.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ea580c;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
