/* =========================================================
   Sakira Camp Booking System - Tema Hijau Tropika
   ========================================================= */

:root {
    --forest-900: #0f2e1d;
    --forest-800: #163d27;
    --forest-700: #1f5233;
    --forest-600: #2c6e42;
    --forest-500: #3d8b57;
    --leaf-500:   #5cb670;
    --leaf-400:   #7fcb8f;
    --leaf-100:   #e6f4ea;
    --sand-100:   #faf7ee;
    --sand-200:   #f1ead5;
    --bark-700:   #6b4a2f;
    --amber-500:  #e0a63c;
    --amber-600:  #c98a1f;
    --red-500:    #c0473a;
    --ink-800:    #24312a;
    --ink-500:    #56635b;
    --white:      #ffffff;

    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-soft: 0 4px 16px rgba(15, 46, 29, 0.10);
    --shadow-card: 0 6px 24px rgba(15, 46, 29, 0.14);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--sand-100);
    color: var(--ink-800);
    line-height: 1.6;
}

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

a { color: var(--forest-600); text-decoration: none; }
a:hover { color: var(--forest-800); }

h1, h2, h3, h4 { color: var(--forest-800); line-height: 1.25; margin-top: 0; }

/* ---------- Header ---------- */
.site-header {
    background: linear-gradient(135deg, var(--forest-800), var(--forest-600));
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white) !important;
}
.main-nav a {
    color: var(--leaf-100) !important;
    margin-left: 22px;
    font-weight: 600;
    font-size: 0.95rem;
}
.main-nav a:first-child { margin-left: 0; }
.main-nav a:hover { color: var(--white) !important; }

/* ---------- Hero ---------- */
.hero {
    background: radial-gradient(ellipse at top, var(--forest-700), var(--forest-900));
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}
.hero h1 {
    color: var(--white);
    font-size: 2.4rem;
    margin-bottom: 10px;
}
.hero p {
    color: var(--leaf-100);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto;
}
.hero-badges {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 26px;
    flex-wrap: wrap;
}
.hero-badge {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--white);
}

/* ---------- Section ---------- */
.section {
    padding: 48px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 8px;
}
.section-subtitle {
    text-align: center;
    color: var(--ink-500);
    margin-bottom: 32px;
}

/* ---------- Cards / grid ---------- */
.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.facility-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--sand-200);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    flex-direction: column;
}
.facility-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}
.facility-thumb {
    height: 120px;
    background: linear-gradient(135deg, var(--leaf-400), var(--forest-600));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
}
.facility-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.facility-name {
    font-weight: 700;
    color: var(--forest-800);
    margin-bottom: 4px;
}
.facility-desc {
    font-size: 0.88rem;
    color: var(--ink-500);
    margin-bottom: 12px;
    flex: 1;
}
.facility-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--forest-700);
    margin-bottom: 12px;
}
.facility-price span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--ink-500);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: background 0.15s ease, transform 0.1s ease;
}
.btn-primary {
    background: var(--forest-600);
    color: var(--white) !important;
}
.btn-primary:hover { background: var(--forest-700); }
.btn-secondary {
    background: var(--leaf-100);
    color: var(--forest-800) !important;
    border: 1px solid var(--leaf-400);
}
.btn-secondary:hover { background: var(--leaf-400); color: var(--forest-900) !important; }
.btn-amber {
    background: var(--amber-500);
    color: var(--forest-900) !important;
}
.btn-amber:hover { background: var(--amber-600); }
.btn-block { display: block; width: 100%; }
.btn-danger { background: var(--red-500); color: var(--white) !important; }
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }

/* ---------- River section ---------- */
.river-banner {
    background: linear-gradient(120deg, var(--forest-600), var(--leaf-500));
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.river-banner h3 { color: var(--white); }
.river-banner p { color: var(--leaf-100); margin: 4px 0 0; }

/* ---------- Forms ---------- */
.form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 32px;
    max-width: 640px;
    margin: 0 auto;
    border: 1px solid var(--sand-200);
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--forest-800);
    font-size: 0.92rem;
}
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 180px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number],
input[type=password], input[type=file], select, textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d7e3da;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--sand-100);
    color: var(--ink-800);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--forest-500);
    background: var(--white);
}
.hint { font-size: 0.82rem; color: var(--ink-500); margin-top: 4px; }
.price-summary {
    background: var(--leaf-100);
    border: 1px solid var(--leaf-400);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin: 20px 0;
}
.price-summary .total-line {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: var(--forest-800);
    font-size: 1.15rem;
    border-top: 1px dashed var(--leaf-400);
    padding-top: 10px;
    margin-top: 10px;
}
.price-summary .sub-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--ink-500);
}

/* ---------- Alerts ---------- */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.92rem;
}
.alert-success { background: #e6f4ea; color: var(--forest-800); border: 1px solid var(--leaf-400); }
.alert-error { background: #fbebe9; color: #8a2f24; border: 1px solid #e5a89f; }
.alert-info { background: #eaf3fb; color: #234a6b; border: 1px solid #a9c9e5; }

/* ---------- Status badges ---------- */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}
.badge-pending { background: #fdf1d9; color: var(--amber-600); }
.badge-confirmed { background: var(--leaf-100); color: var(--forest-700); }
.badge-cancelled { background: #fbebe9; color: #8a2f24; }
.badge-completed { background: #e5eaf6; color: #34408a; }

/* ---------- Booking success ---------- */
.success-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 44px 32px;
    box-shadow: var(--shadow-soft);
}
.success-icon { font-size: 3.4rem; margin-bottom: 10px; }
.ref-code {
    display: inline-block;
    background: var(--leaf-100);
    color: var(--forest-800);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 1px;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    margin: 16px 0;
    border: 1px dashed var(--forest-500);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--forest-900);
    color: var(--leaf-100);
    text-align: center;
    padding: 26px 20px;
    margin-top: 40px;
    font-size: 0.88rem;
}
.footer-note { color: #9db8a6; font-size: 0.8rem; margin-top: 4px; }

/* ---------- Table (admin) ---------- */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
th, td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--sand-200);
    font-size: 0.9rem;
}
th {
    background: var(--forest-800);
    color: var(--white);
    font-weight: 600;
}
tr:hover td { background: var(--leaf-100); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .header-inner { flex-direction: column; align-items: flex-start; }
    .main-nav a { margin-left: 0; margin-right: 16px; }
    .hero h1 { font-size: 1.8rem; }
    .form-card { padding: 22px; }
}
