/* =========================================================
   HikingAz — custom stylesheet (no framework)
   ========================================================= */

:root {
    --green: #1f7a4d;
    --green-dark: #155c39;
    --green-light: #e7f3ec;
    --ink: #1c2b25;
    --muted: #6b7c74;
    --line: #e2e8e4;
    --bg: #f5f7f6;
    --white: #ffffff;
    --amber: #b7791f;
    --amber-bg: #fdf3e1;
    --red: #c53030;
    --red-bg: #fbeaea;
    --blue: #2b6cb0;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(16, 32, 24, .08), 0 6px 20px rgba(16, 32, 24, .06);
    --max: 1140px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--ink); }

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Top navigation ---------- */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}
.navbar__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.brand {
    font-size: 22px;
    font-weight: 800;
    color: var(--green-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
.brand:hover { text-decoration: none; }
.brand .logo { font-size: 24px; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-wrap: wrap;
}
.nav-link {
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--ink);
    font-weight: 500;
}
.nav-link:hover { background: var(--green-light); text-decoration: none; }

/* language switch */
.lang {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}
.lang a {
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    background: var(--white);
}
.lang a:hover { text-decoration: none; background: var(--bg); }
.lang a.active { background: var(--green); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 9px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: .15s ease;
    line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { background: var(--bg); }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: var(--green-dark); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #9b2424; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 7px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: #fff;
    padding: 56px 0;
}
.hero h1 { color: #fff; font-size: 36px; margin-bottom: 10px; }
.hero p { color: #d8efe2; font-size: 18px; margin: 0 0 22px; max-width: 620px; }
.search-form {
    display: flex;
    gap: 10px;
    max-width: 540px;
}
.search-form input {
    flex: 1;
    padding: 13px 16px;
    border-radius: 9px;
    border: none;
    font-size: 15px;
}

/* ---------- Section ---------- */
.section { padding: 40px 0; }
.section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 22px;
    gap: 12px;
    flex-wrap: wrap;
}
.section__head h2 { font-size: 26px; margin: 0; }
.section__head .muted { color: var(--muted); }

/* ---------- Tour grid / cards ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(16,32,24,.12); }
.card__img {
    aspect-ratio: 16 / 10;
    background: var(--green-light);
    object-fit: cover;
    width: 100%;
}
.card__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    color: var(--green);
}
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 18px; margin: 0 0 6px; }
.card__title a { color: var(--ink); }
.card__company { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.card__desc { color: var(--muted); font-size: 14px; flex: 1; margin: 0 0 14px; }
.card__foot { display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 18px; font-weight: 800; color: var(--green-dark); }
.price small { font-weight: 500; color: var(--muted); font-size: 12px; }

/* ---------- Badges ---------- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
}
.badge-pending { background: var(--amber-bg); color: var(--amber); }
.badge-approved { background: var(--green-light); color: var(--green-dark); }
.badge-rejected { background: var(--red-bg); color: var(--red); }

/* ---------- Alerts ---------- */
.alert {
    padding: 12px 16px;
    border-radius: 9px;
    margin-bottom: 18px;
    font-size: 14px;
    border: 1px solid transparent;
}
.alert-success { background: var(--green-light); color: var(--green-dark); border-color: #bfe3cd; }
.alert-warning { background: var(--amber-bg); color: var(--amber); border-color: #f0dcb0; }
.alert-danger { background: var(--red-bg); color: var(--red); border-color: #f0c4c4; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: 15px;
    font-family: inherit;
    background: var(--white);
    color: var(--ink);
}
.form-control:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,122,77,.12); }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-error { color: var(--red); font-size: 13px; margin-top: 5px; }
.form-hint { color: var(--muted); font-size: 13px; margin-top: 5px; }
.input-group-prefix { display: flex; align-items: stretch; }
.input-group-prefix .addon {
    display: flex; align-items: center; padding: 0 14px;
    background: var(--bg); border: 1px solid var(--line); border-right: none;
    border-radius: 9px 0 0 9px; color: var(--muted); font-weight: 600;
}
.input-group-prefix .form-control { border-radius: 0 9px 9px 0; }

/* ---------- Auth card ---------- */
.auth-wrap {
    min-height: calc(100vh - 65px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.auth-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 420px;
    padding: 32px;
}
.auth-card h1 { font-size: 24px; margin-bottom: 4px; }
.auth-card .sub { color: var(--muted); margin-bottom: 24px; font-size: 14px; }
.auth-foot { margin-top: 18px; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- Dashboard layout ---------- */
.layout { display: flex; min-height: calc(100vh - 65px); }
.sidebar {
    width: 240px;
    background: var(--white);
    border-right: 1px solid var(--line);
    padding: 22px 14px;
    flex-shrink: 0;
}
.sidebar__title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    padding: 0 12px;
    margin-bottom: 10px;
}
.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 9px;
    color: var(--ink);
    font-weight: 500;
    margin-bottom: 3px;
}
.sidebar a:hover { background: var(--bg); text-decoration: none; }
.sidebar a.active { background: var(--green-light); color: var(--green-dark); font-weight: 700; }
.sidebar-badge {
    margin-left: auto;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    min-width: 22px;
    text-align: center;
}
.main { flex: 1; padding: 28px; min-width: 0; }
.page-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; margin-bottom: 22px;
}
.page-head h1 { font-size: 26px; margin: 0; }

@media (max-width: 760px) {
    .layout { flex-direction: column; }
    .sidebar { width: auto; border-right: none; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px; }
    .sidebar__title { width: 100%; }
    .sidebar a { margin-bottom: 0; }
}

/* ---------- Stat cards ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
}
.stat .num { font-size: 30px; font-weight: 800; color: var(--green-dark); }
.stat .label { color: var(--muted); font-size: 13px; }

/* ---------- Tables ---------- */
.panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { background: var(--bg); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table tr:last-child td { border-bottom: none; }
.table-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.table .thumb { width: 56px; height: 40px; object-fit: cover; border-radius: 6px; }

/* ---------- Filter tabs ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a {
    padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
    color: var(--muted); background: var(--white); border: 1px solid var(--line);
}
.tabs a:hover { text-decoration: none; background: var(--bg); }
.tabs a.active { background: var(--green); color: #fff; border-color: var(--green); }

/* ---------- Tour detail ---------- */
.detail-hero { background: var(--white); border-bottom: 1px solid var(--line); }
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; padding: 30px 0; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-img { width: 100%; border-radius: var(--radius); aspect-ratio: 16/10; object-fit: cover; background: var(--green-light); }
.detail-img--placeholder { display: flex; align-items: center; justify-content: center; font-size: 70px; color: var(--green); }
.detail-side {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 22px; align-self: start; box-shadow: var(--shadow);
}
.detail-side .price { font-size: 30px; }
.detail-side hr { border: none; border-top: 1px solid var(--line); margin: 18px 0; }
.content-body { line-height: 1.75; }
.content-body h1, .content-body h2, .content-body h3 { margin-top: 1.2em; }
.content-body img { border-radius: 9px; margin: 12px 0; }
.content-body ul, .content-body ol { padding-left: 22px; }

/* ---------- Empty state ---------- */
.empty {
    text-align: center;
    padding: 50px 20px;
    color: var(--muted);
    background: var(--white);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}
.empty .icon { font-size: 48px; margin-bottom: 10px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; list-style: none; padding: 0; margin: 24px 0 0; flex-wrap: wrap; }
.pagination a, .pagination span {
    padding: 8px 13px; border-radius: 8px; border: 1px solid var(--line);
    background: var(--white); color: var(--ink); font-size: 14px;
}
.pagination a:hover { text-decoration: none; background: var(--bg); }
.pagination .active span, .pagination [aria-current] span { background: var(--green); color: #fff; border-color: var(--green); }
.pagination .disabled span { color: #b6c2bc; }

/* ---------- Footer ---------- */
.footer {
    background: var(--ink);
    color: #b8c8c0;
    padding: 30px 0;
    margin-top: 50px;
    font-size: 14px;
}
.footer a { color: #d8efe2; }

/* ---------- Misc ---------- */
.muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-2 { margin-top: 12px; }
.mb-0 { margin-bottom: 0; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.inline-form { display: inline; }
.notice-bar { background: var(--amber-bg); color: var(--amber); padding: 10px 0; font-size: 14px; text-align: center; }
