/* ===== GLOBAL RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0077b6;
    --secondary: #00b4d8;
    --accent: #f77f00;
    --dark: #03045e;
    --light: #f0f8ff;
    --white: #ffffff;
    --gray: #6c757d;
    --light-gray: #f8f9fa;
    --danger: #dc3545;
    --success: #28a745;
    --shadow: 0 4px 20px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light);
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

/* ===== NAVBAR ===== */
.navbar {
    background: var(--white);
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}

.navbar .logo {
    font-size: 22px;
    font-weight: 800;
    color: #111;
    letter-spacing: 1px;
}

.navbar .logo span {
    color: #d61f1f;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 18px;
    align-items: center;
}

.nav-links a {
    color: #111;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 2px;
    transition: color 0.2s ease;
    padding: 6px 10px;
    border-radius: 4px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #d61f1f;
}

.nav-links .btn-nav {
    border: 1px solid #222;
    border-radius: 999px;
    font-weight: 500;
}

.nav-links .btn-nav:hover {
    color: #d61f1f;
    border-color: #d61f1f;
}

/* Keep register link same as other nav links on auth pages */
.nav-links a[href="register.php"] {
    border: none;
    border-radius: 4px;
    background: transparent;
    padding: 6px 10px;
}

.dropdown {
    position: relative;
}

.dropdown .caret {
    font-size: 12px;
    margin-left: 4px;
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    left: 0;
    min-width: 180px;
    background: var(--white);
    border: 1px solid #ececec;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    padding: 8px;
    list-style: none;
    display: none;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    font-size: 14px;
    letter-spacing: 0.3px;
    padding: 8px 10px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(rgba(3,4,94,0.55), rgba(0,119,182,0.45)),
                url('https://images.pexels.com/photos/390051/surfer-wave-sunset-the-indian-ocean-390051.jpeg?auto=compress&cs=tinysrgb&w=1920') center/cover no-repeat;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.4);
    animation: fadeDown 0.8s ease;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 20px;
    margin-bottom: 35px;
    opacity: 0.9;
    animation: fadeUp 0.8s ease;
}

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: #e06b00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247,127,0,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--primary);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--dark);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* ===== SECTION STYLES ===== */
.section {
    padding: 70px 40px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--dark);
    font-weight: 800;
    margin-bottom: 10px;
}

.section-title h2 span {
    color: var(--primary);
}

.section-title p {
    color: var(--gray);
    font-size: 16px;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 12px auto;
    border-radius: 2px;
}

/* ===== PACKAGE CARDS ===== */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.package-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.18);
}

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

.card-body {
    padding: 20px;
}

.card-body h3 {
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 8px;
}

.card-body p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.price {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
}

.duration {
    font-size: 13px;
    color: var(--gray);
    background: var(--light-gray);
    padding: 4px 10px;
    border-radius: 20px;
}

/* ===== TRAVEL GALLERY ===== */
.travel-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.travel-gallery-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.travel-gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.travel-gallery-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.travel-gallery-info {
    padding: 12px 14px;
}

.travel-gallery-info h3 {
    font-size: 15px;
    color: #222;
    font-weight: 600;
    line-height: 1.4;
}

/* ===== FEATURES SECTION ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    background: var(--white);
    padding: 35px 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 45px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--gray);
    font-size: 14px;
}

/* ===== FORMS ===== */
.form-container {
    max-width: 480px;
    margin: 60px auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-container h2 {
    text-align: center;
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 26px;
}

.form-container .subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 28px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #dde;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0,119,182,0.12);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* ===== ALERTS ===== */
.alert {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    padding: 50px 40px;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
}

.page-header p {
    opacity: 0.85;
    font-size: 16px;
}

/* ===== BOOKING PAGE ===== */
.booking-container {
    max-width: 700px;
    margin: 50px auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.package-summary {
    background: var(--light);
    border-left: 4px solid var(--primary);
    padding: 18px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.package-summary h3 {
    color: var(--dark);
    margin-bottom: 8px;
}

.package-summary p {
    font-size: 14px;
    color: var(--gray);
}

/* ===== MY BOOKINGS ===== */
.bookings-table-container {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

thead {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    color: var(--white);
}

thead th {
    padding: 15px 18px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
}

tbody tr {
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

tbody tr:hover {
    background: var(--light);
}

tbody td {
    padding: 14px 18px;
    font-size: 14px;
    color: #444;
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-pending { background: #fff3cd; color: #856404; }
.badge-confirmed { background: #d4edda; color: #155724; }
.badge-cancelled { background: #f8d7da; color: #721c24; }
.badge-completed { background: #d4edda; color: #155724; }
.badge-failed { background: #f8d7da; color: #721c24; }

/* ===== ADMIN PANEL ===== */
.admin-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.tab-btn {
    padding: 10px 22px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    background: var(--light-gray);
    color: var(--gray);
    transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 4px solid var(--primary);
}

.stat-card h3 {
    font-size: 36px;
    color: var(--primary);
    font-weight: 800;
}

.stat-card p {
    color: var(--gray);
    font-size: 14px;
    margin-top: 5px;
}

/* ===== AI ASSISTANT ===== */
.ai-container {
    max-width: 750px;
    margin: 50px auto;
    padding: 0 20px;
}

.chat-box {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.ai-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.chat-header h3 {
    font-size: 18px;
    margin-bottom: 2px;
}

.chat-header span {
    font-size: 12px;
    opacity: 0.8;
}

.chat-messages {
    height: 420px;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f5f9ff;
}

.message {
    max-width: 78%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
    animation: fadeIn 0.3s ease;
}

.message.bot {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.message.user {
    background: var(--primary);
    color: var(--white);
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.chat-input-area {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    background: var(--white);
}

.chat-input-area input {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid #dde;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.chat-input-area input:focus {
    border-color: var(--primary);
}

.chat-input-area button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.chat-input-area button:hover {
    background: var(--dark);
}

.quick-btns {
    padding: 12px 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    background: var(--white);
    border-top: 1px solid #f0f0f0;
}

.quick-btn {
    padding: 6px 14px;
    background: var(--light);
    border: 1px solid var(--secondary);
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.quick-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* ===== PAYMENT PAGE ===== */
.payment-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 0 20px;
}

.payment-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.payment-card-header {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    padding: 25px 30px;
    color: var(--white);
    text-align: center;
}

.payment-card-header h2 {
    font-size: 22px;
    margin-bottom: 5px;
}

.payment-card-body {
    padding: 30px;
}

.payment-method-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.payment-method-option {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    font-size: 13px;
    font-weight: 600;
}

.payment-method-option:hover,
.payment-method-option.selected {
    border-color: var(--primary);
    background: var(--light);
    color: var(--primary);
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 25px;
    font-size: 14px;
}

footer span {
    color: var(--accent);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 20px;
        flex-direction: column;
        gap: 10px;
    }
    .nav-links {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-links a {
        font-size: 14px;
        letter-spacing: 1px;
    }
    .dropdown-menu {
        left: 50%;
        transform: translateX(-50%);
    }
    .hero h1 { font-size: 34px; }
    .section { padding: 50px 20px; }
    .form-row { grid-template-columns: 1fr; }
    .payment-method-options { grid-template-columns: 1fr; }
    thead th, tbody td { padding: 10px 12px; font-size: 13px; }
    .admin-tabs { flex-direction: column; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 26px; }
    .nav-links { gap: 4px; }
    .nav-links a {
        font-size: 13px;
        letter-spacing: 0.5px;
        padding: 4px 6px;
    }
    .chat-messages { height: 300px; }
}
