/* ==================================================
   RESET
================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* ==================================================
   BODY
================================================== */

body {
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}


/* ==================================================
   NAVBAR
================================================== */

.navbar {
    background: white;
    padding: 18px 7%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.08);

    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
}

.nav-links a:hover {
    color: #2563eb;
}


/* ==================================================
   PAGE HEADER
================================================== */

.page-header {
    text-align: center;

    padding: 45px 20px 30px;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header p {
    color: #6b7280;
    font-size: 17px;
}


/* ==================================================
   SEARCH + FILTERS
================================================== */

.trip-search-section {
    width: 92%;
    max-width: 1200px;

    margin: 0 auto 30px;
}

.search-box {
    background: white;

    padding: 18px;

    border-radius: 15px;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.08);

    display: grid;

    grid-template-columns:
        2fr
        1fr
        1fr
        1fr
        auto;

    gap: 12px;
}

.search-box input,
.search-box select {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid #d9dee8;

    border-radius: 9px;

    background: white;

    font-size: 15px;

    outline: none;
}

.search-box input:focus,
.search-box select:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, 0.1);
}

#clearFiltersBtn {
    border: none;

    border-radius: 9px;

    padding: 0 18px;

    background: #ef4444;

    color: white;

    font-weight: bold;

    cursor: pointer;
}

#clearFiltersBtn:hover {
    opacity: 0.9;
}

.results-count {
    margin-top: 12px;

    color: #6b7280;

    font-size: 14px;
}


/* ==================================================
   TRIP SECTION
================================================== */

.trip-section {
    width: 92%;
    max-width: 1200px;

    margin: 0 auto 60px;
}


/* ==================================================
   TRIP CONTAINER
================================================== */

#tripContainer {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;

    align-items: start;
}


/* ==================================================
   TRIP CARD
================================================== */

.trip-card {
    background: white;

    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

    display: flex;

    flex-direction: column;

    min-width: 0;
}

.trip-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.12);
}


/* ==================================================
   TRIP IMAGE
================================================== */

.trip-image {
    display: block;

    width: 100%;

    height: 210px;

    object-fit: cover;

    flex-shrink: 0;
}


/* ==================================================
   TRIP CONTENT
================================================== */

.trip-content {
    padding: 20px;

    display: flex;

    flex-direction: column;

    flex: 1;
}

.trip-content h2 {
    font-size: 22px;

    margin-bottom: 15px;

    color: #111827;

    line-height: 1.25;
}

.trip-content p {
    margin-bottom: 9px;

    font-size: 14px;

    line-height: 1.45;
}

.trip-description {
    color: #6b7280;

    line-height: 1.5;

    margin-top: 5px;
}


/* ==================================================
   TRIP STATUS
================================================== */

.trip-status {
    margin-top: 5px;
}

.status-open,
.status-full,
.status-completed,
.status-cancelled {
    display: inline-block;

    padding: 5px 10px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: bold;
}

.status-open {
    background: #dcfce7;
    color: #166534;
}

.status-full {
    background: #fee2e2;
    color: #991b1b;
}

.status-completed {
    background: #e0f2fe;
    color: #075985;
}

.status-cancelled {
    background: #f3f4f6;
    color: #4b5563;
}


/* ==================================================
   TRIP ACTIONS
================================================== */

.trip-actions {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;

    margin-top: auto;

    padding-top: 17px;
}

.trip-actions button {
    border: none;

    border-radius: 8px;

    padding: 11px 14px;

    font-weight: bold;

    cursor: pointer;

    font-size: 14px;
}

.details-btn {
    background: #eef3ff;

    color: #1f2937;
}

.details-btn:hover {
    background: #dbe5ff;
}

.join-btn {
    background: #2563eb;

    color: white;
}

.join-btn:hover {
    opacity: 0.9;
}

.disabled-btn {
    background: #d1d5db !important;

    color: #555 !important;

    cursor: not-allowed !important;
}


/* ==================================================
   EMPTY / NO RESULTS
================================================== */

.empty-trips {
    grid-column: 1 / -1;

    width: 100%;

    background: white;

    padding: 60px 25px;

    text-align: center;

    border-radius: 16px;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.06);
}

.empty-icon {
    font-size: 45px;

    margin-bottom: 12px;
}

.empty-trips h2 {
    margin-bottom: 8px;
}

.empty-trips p {
    color: #6b7280;
}

.empty-clear-btn {
    margin-top: 18px;

    padding: 11px 18px;

    border: none;

    border-radius: 8px;

    background: #2563eb;

    color: white;

    font-weight: bold;

    cursor: pointer;
}


/* ==================================================
   LOADING
================================================== */

.loading-trips {
    grid-column: 1 / -1;

    background: white;

    padding: 50px;

    text-align: center;

    border-radius: 16px;

    color: #6b7280;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 950px) {

    #tripContainer {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .search-box {
        grid-template-columns:
            1fr 1fr;
    }

    #searchInput {
        grid-column: 1 / -1;
    }

    #clearFiltersBtn {
        min-height: 45px;
    }
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 600px) {

    .navbar {
        padding: 15px 20px;

        flex-direction: column;

        gap: 12px;
    }

    .logo {
        font-size: 21px;
    }

    .nav-links {
        gap: 15px;

        flex-wrap: wrap;

        justify-content: center;
    }

    .nav-links a {
        font-size: 14px;
    }

    .page-header {
        padding: 30px 15px 22px;
    }

    .page-header h1 {
        font-size: 29px;
    }

    .page-header p {
        font-size: 15px;
    }

    .trip-search-section,
    .trip-section {
        width: 94%;
    }

    .search-box {
        grid-template-columns: 1fr;
    }

    #searchInput {
        grid-column: auto;
    }

    #clearFiltersBtn {
        min-height: 45px;
    }

    #tripContainer {
        grid-template-columns: 1fr;
    }

    .trip-image {
        height: 220px;
    }

    .trip-content {
        padding: 18px;
    }

    .trip-actions {
        flex-direction: column;
    }

    .trip-actions button {
        width: 100%;
    }
}
.official-trip-badge {
    display: inline-block;

    margin-bottom: 14px;

    padding: 6px 11px;

    border-radius: 20px;

    background: #fff7d6;

    color: #9a6700;

    font-size: 12px;

    font-weight: bold;
}