/* ================================
   Veterans Directory UK
   Main CSS System
================================ */

/* ---------- Base ---------- */

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    background: #f4f6f8;
    color: #222;
    line-height: 1.5;
}

a {
    color: #0b3d5c;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.page {
    padding: 25px 0;
}

/* ---------- Header Layout ---------- */

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 22px;
    margin: 0;
}

/* ---------- Map ---------- */

.map-box {
    height: 540px;
    width: 100%;
    background: #dbe3ea;
    border: 1px solid #c9ced6;
    border-radius: 8px;
    overflow: hidden;
}

.leaflet-popup-content strong {
    color: #0b3d5c;
}

@media (max-width: 800px) {
    .map-box {
        height: 420px;
    }
}

/* ---------- Menu Layout ---------- */

.menu-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-left a,
.menu-right a {
    margin-right: 15px;
}

/* ---------- Improve Cards ---------- */

.card {
    background: #fff;
    padding: 22px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e1e4e8;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* ---------- Improve Buttons ---------- */

.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: bold;
}

/* ---------- Improve Inputs ---------- */

.input {
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* ---------- Hover Effects ---------- */

.result-card:hover {
    transform: translateY(-2px);
    transition: 0.2s;
}

/* ---------- Header ---------- */

.site-header {
    background: linear-gradient(135deg, #0b3d5c, #1e5f87);
    color: #fff;
    padding: 18px 0;
}

.site-header h1 {
    margin: 0;
    font-size: 26px;
}

/* ---------- Menu ---------- */

.main-menu {
    background: #16384f;
    padding: 10px 0;
}

.main-menu a {
    color: #fff;
    margin-right: 16px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    padding: 6px 0;
}

.main-menu a:hover {
    text-decoration: underline;
}

/* ---------- Footer ---------- */

.site-footer {
    background: #0b3d5c;
    color: #fff;
    text-align: center;
    padding: 18px 0;
    margin-top: 30px;
}

.site-footer p {
    margin: 0;
}

/* ---------- Cards ---------- */

.card {
    background: #fff;
    padding: 22px;
    border-radius: 7px;
    margin-bottom: 20px;
    border: 1px solid #e1e4e8;
}

.card h2,
.card h3 {
    margin-top: 0;
}

/* ---------- Hero ---------- */

.hero {
    background: linear-gradient(135deg, #0b3d5c, #1e5f87);
    color: #fff;
    padding: 55px 0;
    text-align: center;
}

.hero h2 {
    font-size: 34px;
    margin: 0 0 12px 0;
}

.hero p {
    font-size: 18px;
    max-width: 850px;
    margin: 0 auto 25px auto;
}

/* ---------- Search Box ---------- */

.search-box {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.search-box input {
    padding: 13px;
    width: 290px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
}

.search-box button {
    padding: 13px 28px;
    background: #f4b400;
    color: #222;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.search-box button:hover {
    background: #e0a600;
}

/* ---------- Quick Links ---------- */

.quick-links {
    margin-top: 15px;
}

.quick-links a {
    display: inline-block;
    background: #ffffff;
    color: #0b3d5c;
    padding: 8px 15px;
    margin: 5px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
}

.quick-links a:hover {
    background: #f4b400;
    color: #222;
}

/* ---------- Crisis Strip ---------- */

.crisis-strip {
    background: #8b0000;
    color: #fff;
    padding: 13px 0;
    text-align: center;
}

.crisis-strip a {
    color: #fff;
    font-weight: bold;
    margin-left: 10px;
}

/* ---------- Grid ---------- */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

/* ---------- Forms ---------- */

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}

.input,
select,
textarea {
    width: 100%;
    padding: 11px;
    border: 1px solid #c9ced6;
    border-radius: 5px;
    font-size: 15px;
    background: #fff;
}

textarea {
    min-height: 120px;
}

.input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #1e5f87;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: 10px 16px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    background: #e9ecef;
    color: #222;
    font-size: 14px;
}

.btn:hover {
    opacity: 0.9;
}

.btn-primary {
    background: #1e5f87;
    color: #fff;
}

.btn-danger {
    background: #8b0000;
    color: #fff;
}

.btn-success {
    background: #198754;
    color: #fff;
}

.btn-warning {
    background: #f4b400;
    color: #222;
}

/* ---------- Alerts ---------- */

.alert {
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.alert-danger {
    background: #f8d7da;
    color: #842029;
}

.alert-success {
    background: #d1e7dd;
    color: #0f5132;
}

.alert-warning {
    background: #fff3cd;
    color: #664d03;
}

.alert-info {
    background: #cff4fc;
    color: #055160;
}

/* ---------- Search Panel ---------- */

.search-panel {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto auto;
    gap: 12px;
    align-items: end;
}

/* ---------- Results ---------- */

.results-list {
    display: grid;
    gap: 15px;
}

.result-card {
    border: 1px solid #ddd;
    border-radius: 7px;
    padding: 16px;
    background: #fff;
}

.result-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.result-card h3 a {
    color: #0b3d5c;
    text-decoration: none;
}

.result-card h3 a:hover {
    text-decoration: underline;
}

.meta {
    color: #555;
    font-size: 14px;
}

.result-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.phone {
    font-weight: bold;
}

/* ---------- Badges ---------- */

.badges {
    margin: 10px 0;
}

.badge {
    display: inline-block;
    background: #e9ecef;
    color: #333;
    padding: 5px 9px;
    border-radius: 14px;
    font-size: 13px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.badge-success {
    background: #d1e7dd;
    color: #0f5132;
}

.badge-danger {
    background: #f8d7da;
    color: #842029;
}

.badge-warning {
    background: #fff3cd;
    color: #664d03;
}

.badge-info {
    background: #cff4fc;
    color: #055160;
}

/* ---------- Tables ---------- */

.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.table th,
.table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.table th {
    background: #0b3d5c;
    color: #fff;
}

/* ---------- Admin/User Panels ---------- */

.panel-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.panel-link {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 7px;
    padding: 18px;
    text-decoration: none;
    color: #222;
}

.panel-link:hover {
    border-color: #1e5f87;
}

.panel-link h3 {
    margin-top: 0;
    color: #0b3d5c;
}

/* ---------- Utility Classes ---------- */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* ---------- Map Placeholder ---------- */

.map-box {
    height: 500px;
    background: #dbe3ea;
    border: 1px solid #c9ced6;
    border-radius: 7px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
    .search-panel {
        grid-template-columns: 1fr 1fr;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .panel-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    .grid-2,
    .grid-3,
    .grid-4,
    .panel-links {
        grid-template-columns: 1fr;
    }

    .search-panel {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 26px;
    }

    .hero p {
        font-size: 16px;
    }

    .search-box input,
    .search-box button {
        width: 100%;
    }

    .main-menu a {
        display: block;
        margin-right: 0;
        padding: 8px 0;
    }
}
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.alert-danger {
    background: #f8d7da;
    color: #842029;
}

.alert-success {
    background: #d1e7dd;
    color: #0f5132;
}