* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Poppins, sans-serif;
}

body {
    background: #f4f6f9;
}

.login-container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 400px;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

.login-card h2 {
    color: #0A1F44;
    text-align: center;
    margin-bottom: 10px;
}

.login-card p {
    text-align: center;
    margin-bottom: 25px;
}

.login-card input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.login-card button {
    width: 100%;
    padding: 15px;
    background: #F4B400;
    border: none;
    cursor: pointer;
    font-size: 18px;
    border-radius: 8px;
    font-weight: bold;
}

.login-card button:hover {
    background: #d99f00;
}

#error {
    color: red;
    margin-top: 15px;
}

.admin {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: #0A1F44;
    padding: 30px;
}

.sidebar h2 {
    color: white;
    margin-bottom: 40px;
}

.sidebar a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 0;
    font-size: 18px;
}

.sidebar a:hover {
    color: #F4B400;
}

.content {
    flex: 1;
    padding: 40px;
    background: #f5f5f5;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .1);
}

.card h2 {
    font-size: 40px;
    color: #F4B400;
    margin-bottom: 10px;
}

.yellow-btn {
    background: #F4B400;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin: 20px 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.admin-table img {
    width: 80px;
    border-radius: 8px;
}

.action-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 5px;
}

.edit-btn {
    background: #0A1F44;
    color: white;
}

.delete-btn {
    background: #d63031;
    color: white;
}


/* ==========================================
TRIPS PAGE
========================================== */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.trip-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}


/* Card */

.trip-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
}

.trip-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.trip-info {
    padding: 18px;
}

.trip-info h3 {
    color: #0A1F44;
    font-size: 24px;
    margin-bottom: 10px;
}

.trip-info p {
    margin: 8px 0;
    color: #555;
    font-size: 16px;
    line-height: 1.5;
}

.trip-buttons {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}


/* ==========================================
BUTTONS
========================================== */

.edit-btn,
.delete-btn,
.cancel-btn {
    flex: 1;
    border: none;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
}

.edit-btn {
    background: #0A1F44;
    color: #fff;
}

.delete-btn {
    background: #d63031;
    color: #fff;
}

.cancel-btn {
    background: #999;
    color: #fff;
}

.yellow-btn {
    background: #F4B400;
    color: #000;
    border: none;
    padding: 14px 22px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
}


/* ==========================================
MODAL
========================================== */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 999;
}

.modal-box {
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 18px;
    padding: 25px;
    max-height: 90vh;
    overflow: auto;
}

.modal-box h2 {
    color: #0A1F44;
    margin-bottom: 20px;
}

.modal-box input,
.modal-box textarea,
.modal-box select {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
}

.modal-box textarea {
    resize: vertical;
}

.modal-box label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}


/* ==========================================
ACTIVE MENU
========================================== */

.sidebar a.active {
    color: #F4B400;
    font-weight: bold;
}


/* ==========================================
TABLET
========================================== */

@media(min-width:768px) {
    .trip-list {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ==========================================
DESKTOP
========================================== */

@media(min-width:1200px) {
    .trip-list {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ==========================================
MOBILE
========================================== */

@media(max-width:768px) {
    .content {
        padding: 18px;
    }
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }
    .yellow-btn {
        width: 100%;
    }
    .trip-buttons {
        flex-direction: column;
    }
    .modal-box {
        padding: 18px;
    }
    .modal-buttons {
        flex-direction: column;
    }
}

.review-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 25px;
}

.review-card {
    background: #fff;
    padding: 18px;
    border-radius: 12px;
    display: flex;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
}

.review-card img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.review-info {
    flex: 1;
}

.review-info h3 {
    margin-bottom: 5px;
}

.review-info p {
    margin: 4px 0;
}

.review-buttons {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}


/* ===========================
   SETTINGS
=========================== */

.settings-card {
    max-width: 700px;
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

.settings-card label {
    display: block;
    margin-top: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.settings-card input,
.settings-card textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
}

.settings-card textarea {
    resize: vertical;
    min-height: 90px;
}

.settings-card .yellow-btn {
    margin-top: 25px;
    width: 100%;
}

.booking-list {
    display: grid;
    gap: 25px;
}

.booking-list .review-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
}

.booking-list p {
    margin: 8px 0;
}

.booking-list h2 {
    margin-bottom: 15px;
}


/*=========================
BOOKINGS
=========================*/

.booking-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.booking-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
    transition: .3s;
}

.booking-card:hover {
    transform: translateY(-5px);
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.booking-header h2 {
    font-size: 22px;
}

.status {
    padding: 6px 14px;
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.pending {
    background: #ff9800;
}

.confirmed {
    background: #2e7d32;
}

.completed {
    background: #1565c0;
}

.cancelled {
    background: #d32f2f;
}

.booking-info p {
    margin: 8px 0;
    line-height: 1.5;
}

.booking-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.booking-buttons button {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    font-weight: 600;
    transition: .3s;
}

.confirm-btn {
    background: #2e7d32;
}

.complete-btn {
    background: #1565c0;
}

.cancel-btn {
    background: #ff9800;
}

.delete-btn {
    background: #d32f2f;
}

.booking-buttons button:hover {
    opacity: .85;
}


/* ==========================================
TRIP MODAL (NEW)
========================================== */

.trip-modal {
    max-width: 850px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.preview-box {
    width: 100%;
    margin-top: 15px;
    text-align: center;
}

.preview-box img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px dashed #ddd;
    background: #fafafa;
    padding: 5px;
}

input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px dashed #F4B400;
    border-radius: 10px;
    background: #fffdf5;
    cursor: pointer;
}

input[type="file"]:hover {
    background: #fff8dc;
}

.trip-card {
    transition: .3s;
}

.trip-card:hover {
    transform: translateY(-6px);
}

.trip-card img {
    transition: .4s;
}

.trip-card:hover img {
    transform: scale(1.03);
}

.trip-info h3 {
    color: #0A1F44;
    margin-bottom: 10px;
}

.trip-info p {
    font-size: 15px;
}

.trip-buttons button {
    flex: 1;
}

@media (max-width:768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .trip-modal {
        max-width: 100%;
    }
}


/*=========================================
GALLERY PAGE
=========================================*/

.gallery-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
    transition: .3s;
}

.gallery-card:hover {
    transform: translateY(-6px);
}

.gallery-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.gallery-card h3 {
    padding: 15px 15px 5px;
    color: #0A1F44;
}

.gallery-card p {
    padding: 0 15px;
    color: #666;
}

.gallery-buttons {
    display: flex;
    gap: 10px;
    padding: 15px;
}


/*=========================================
GALLERY MODAL
=========================================*/

.gallery-modal {
    max-width: 700px;
}

.preview-box {
    margin-top: 20px;
    text-align: center;
}

.preview-box img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px dashed #ddd;
    background: #fafafa;
    padding: 5px;
}

input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px dashed #F4B400;
    border-radius: 10px;
    cursor: pointer;
    background: #fffdf5;
}

input[type="file"]:hover {
    background: #fff8dc;
}


/*=========================================
MOBILE
=========================================*/

@media(max-width:768px) {
    .gallery-list {
        grid-template-columns: 1fr;
    }
    .gallery-buttons {
        flex-direction: column;
    }
    .gallery-modal {
        max-width: 100%;
    }
}