/* --- The Africa Overland Network - Main Stylesheet --- */

/* --- Color & Font Variables --- */
:root {
    --sunset-orange: #FF7B00;
    --acacia-charcoal: #3D3522;
    --savanna-beige: #F4F1EA;
    --baobab-grey: #A9A9A9;
    --kalahari-red: #B44C2E;
    --white: #FFFFFF;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
}

/* --- Global & Body --- */
body {
    font-family: var(--font-body);
    background-color: var(--savanna-beige);
    color: var(--acacia-charcoal);
    margin: 0;
    line-height: 1.6;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--acacia-charcoal);
}

a {
    color: var(--kalahari-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--sunset-orange);
}

/* --- Header & Navigation --- */
.main-header {
    background-color: rgba(61, 53, 34, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5em;
    color: var(--white);
    font-weight: 700;
}

.logo:hover {
    color: var(--sunset-orange);
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav ul li {
    display: inline-block;
    margin-left: 25px;
}

.main-nav a {
    color: var(--white);
    font-weight: 700;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    color: var(--sunset-orange);
    border-bottom-color: var(--sunset-orange);
}

/* --- Hero Section --- */
.hero {
    background-color: #A54908;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    margin-top: 70px;
}

.hero-text h1 {
    font-size: 3.5em;
    margin-bottom: 0.2em;
    color: var(--white);
}

.hero-text p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Main Content Sections --- */
.content-section {
    padding: 60px 0;
    border-bottom: 1px solid #ddd;
}

.content-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
}

/* --- Featured Trips Grid --- */
.trip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.trip-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.trip-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-top: 0;
    color: var(--acacia-charcoal);
}

.card-content p {
    color: #666;
    font-size: 0.9em;
}

/* --- Search and Filter --- */
.search-and-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.search-box {
    flex-grow: 2;
}

.search-box form {
    display: flex;
}

.search-box input[type="text"] {
    width: 100%;
    padding: 15px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
}

.search-box button {
    padding: 15px 25px;
    border: none;
    background-color: var(--sunset-orange);
    color: var(--white);
    font-weight: bold;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: var(--kalahari-red);
}

.filter-box {
    display: flex;
    gap: 20px;
    flex-grow: 1;
}

.filter-form select {
    padding: 15px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: var(--white);
    width: 100%;
    min-width: 200px;
}

/* --- List & Search Result Page --- */
.trip-list {
    list-style: none;
    padding: 0;
}

.trip-list li {
    background: var(--white);
    padding: 25px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.list-item-content h4 {
    margin: 0 0 10px 0;
    font-size: 1.4em;
}

.list-item-content h4 a {
    color: var(--acacia-charcoal);
}

.list-item-content h4 a:hover {
    color: var(--sunset-orange);
}

.list-item-description {
    margin: 0 0 15px 0;
    color: #555;
}

.list-item-details span {
    margin-right: 20px;
    font-size: 0.9em;
    color: #333;
}

/* --- BIO Page --- */
.bio-page {
    padding-top: 40px;
}

.bio-header {
    text-align: center;
    margin-bottom: 40px;
}

.bio-header-h1 {
    font-size: 3em;
    margin-bottom: 5px;
}

.team-name-subheading {
    font-family: var(--font-body);
    font-weight: normal;
    font-size: 1.5em;
    color: var(--baobab-grey);
    margin-top: -15px;
}

.trip-duration {
    font-size: 1.2em;
    color: var(--baobab-grey);
}

.bio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-bottom: 40px;
}

.bio-gallery img {
    width: 100%;
    height: 250px; /* CHANGED: Sets a consistent height */
    object-fit: cover;
    border-radius: 5px;
}

.bio-content {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.bio-main {
    flex: 3;
    min-width: 300px;
}

.bio-sidebar {
    flex: 1;
    min-width: 250px;
}

.description-text {
    line-height: 1.8;
    font-size: 1.1em;
}

.bio-sidebar-h3 {
    border-bottom: 2px solid var(--sunset-orange);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list-li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-icon {
    display: inline-block;
    padding: 8px 12px;
    color: var(--acacia-charcoal);
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
}

.social-icon.facebook { background-color: #3b5998; }
.social-icon.youtube { background-color: #ff0000; }
.social-icon.instagram { background-color: #e4405f; }
.social-icon.twitter { background-color: #1da1f2; }


/* --- Contact Page --- */
.contact-form {
    max-width: 700px;
    margin: 40px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--acacia-charcoal);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="url"], /* This is the line that was added */
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
    font-family: var(--font-body);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .save-button {
    display: block;
    width: 100%;
    font-size: 1.1em;
}

.status-message {
    padding: 15px;
    margin: 0 auto 20px auto;
    border-radius: 4px;
    font-weight: bold;
    max-width: 700px;
}
.success { background-color: #dff0d8; color: #3c763d; border: 1px solid #d6e9c6; }
.error { background-color: #f2dede; color: #a94442; border: 1px solid #ebccd1; }

/* --- Report Page --- */
.report-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.report-block h3 {
    margin-top: 0;
    border-bottom: 2px solid var(--sunset-orange);
    padding-bottom: 10px;
}

.report-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.report-link-list li {
    padding: 5px 0;
}

/* --- Filter Results Page (list.php) --- */
.list-item-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.list-item-subheading {
    font-size: 0.9em;
    color: #777;
    margin-top: -8px;
    font-style: italic;
}

.list-item-image {
    flex-shrink: 0;
}

.list-item-image img {
    width: 90px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.list-item-image a {
    text-decoration: none;
    border: none;
    display: block;
}


/* --- Footer --- */
.main-footer {
    background-color: var(--acacia-charcoal);
    color: var(--savanna-beige);
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}
/* --- Dashboard Page Styles --- */

.dashboard-section {
    margin-bottom: 40px;
}

.dashboard-section h3 {
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 30px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.metric-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 3.5em;
    font-weight: bold;
    color: var(--acacia-charcoal);
}

.metric-label {
    font-size: 1.1em;
    color: #666;
    margin-top: 5px;
}

.metric-value.metric-active {
    color: #5cb85c;
}

.secondary-metrics-grid {
    display: grid;
    grid-template-columns: 1fr; /* Changed to a single column layout */
    gap: 30px;
}

.list-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.list-card h4 {
    margin-top: 0;
    border-bottom: 2px solid var(--sunset-orange);
    padding-bottom: 10px;
    font-size: 1.4em;
}

/* **** UPDATED STYLES START HERE **** */

.list-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Use flexbox for layout */
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    gap: 15px; /* The space between the stat boxes */
}

.list-card li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid #eee; /* Add a border to create the box */
    background-color: var(--savanna-beige); /* Light background for the box */
    border-radius: 5px;
    flex-basis: 280px; /* Give a base width to each box */
    flex-grow: 1; /* Allow boxes to grow and fill the space */
    border-bottom: 1px solid #eee; /* Overwrite previous style */
}

.list-card li:last-child {
    border-bottom: 1px solid #eee; /* Overwrite previous style */
}

.metric-count-badge {
    background-color: var(--acacia-charcoal);
    color: var(--white); /* White text for better contrast */
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.9em;
}
/* Add this style to css/style.css to hide the anti-spam field */

.honeypot {
    display: none;
}
