@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;600;700&display=swap');

:root {
    --primary: #F5A623;
    --secondary: #e2b76c;
    --accent: #F5A623;
    --bg: #0A1128;
    --card-bg: #111A33;
    --text: #E2E8F0;
    --text-light: #94A3B8;
    --white: #FFFFFF;
    --danger: #EF4444;
    --success: #10B981;
    --warning: #F59E0B;
    --sidebar-width: 280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    overflow-x: hidden;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ========================
   NAVBAR
======================== */
.navbar {
    background: rgba(10, 17, 40, 0.97);
    border-bottom: 1px solid rgba(245, 166, 35, 0.2);
    position: sticky;
    top: 0;
    z-index: 200;
    backdrop-filter: blur(10px);
    width: 100%;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.desktop-nav {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}
.desktop-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    white-space: nowrap;
}
.desktop-nav a:hover {
    color: var(--primary);
}

/* ========================
   HAMBURGER BUTTON
======================== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 300;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ========================
   MOBILE SIDEBAR
======================== */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(var(--sidebar-width), 85vw);
    height: 100%;
    background: var(--card-bg);
    z-index: 500;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid rgba(245,166,35,0.2);
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.mobile-sidebar.open {
    right: 0;
}
.sidebar-close-btn {
    align-self: flex-end;
    color: var(--text-light);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 5px 8px;
    transition: color 0.2s;
    margin-bottom: 10px;
}
.sidebar-close-btn:hover {
    color: var(--primary);
}
.sidebar-logo {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(245,166,35,0.2);
}
.sidebar-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}
.sidebar-links a:hover {
    background: rgba(245, 166, 35, 0.1);
    color: var(--primary);
}
.sidebar-links a i {
    width: 20px;
    text-align: center;
    color: var(--primary);
}

/* Nav Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 400;
    backdrop-filter: blur(2px);
}
.nav-overlay.active {
    display: block;
}

/* ========================
   HERO SECTION
======================== */
.hero {
    background: linear-gradient(rgba(10, 17, 40, 0.6), rgba(10, 17, 40, 0.9)), url('https://images.unsplash.com/photo-1544551763-46a013bb70d5?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 60px 20px;
}
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 15px;
    color: var(--primary);
    line-height: 1.2;
    word-break: break-word;
}
.hero p {
    font-size: clamp(1rem, 3vw, 1.3rem);
    margin-bottom: 30px;
    color: var(--text);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-inner {
    z-index: 2;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 0 15px;
}
.hero-btn-wrap {
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 50px;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}
.hero-btn {
    border-radius: 50px;
    padding: 12px 35px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================
   SECTIONS & TITLES
======================== */
.section-title {
    text-align: center;
    margin: 50px 0 30px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--primary);
}

/* ========================
   BOATS GRID
======================== */
.boats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}
.boat-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(245, 166, 35, 0.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.boat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 166, 35, 0.5);
}
.boat-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.boat-info {
    padding: 20px;
}
.boat-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary);
}
.boat-desc {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* ========================
   BUTTONS
======================== */
.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--bg);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}
.btn:hover {
    background: var(--secondary);
    transform: scale(1.02);
}
.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ========================
   FORM STYLES
======================== */
.booking-form-container {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(245, 166, 35, 0.2);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin: 40px auto;
    width: 100%;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #334155;
    background: #0f172a;
    color: var(--text);
    border-radius: 6px;
    font-size: 1rem;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.2);
}

/* ========================
   SLOT SELECTION
======================== */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 10px;
}
.slot-card {
    border: 1px solid #334155;
    background: #0f172a;
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
}
.slot-card.available {
    border-color: var(--primary);
    color: var(--primary);
    font-weight: bold;
}
.slot-card.available:hover {
    background: rgba(245, 166, 35, 0.1);
}
.slot-card.booked {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    cursor: not-allowed;
    opacity: 0.6;
}
.slot-card.selected {
    background: var(--primary);
    color: var(--bg);
}
input[type="radio"][name="slot_id"] {
    display: none;
}
input[type="radio"][name="slot_id"]:checked + .slot-card.available {
    background: var(--primary);
    color: var(--bg);
}

/* ========================
   BADGES
======================== */
.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}
.badge-pending { background: var(--warning); color: #fff; }
.badge-approved { background: var(--primary); color: #fff; }
.badge-completed { background: var(--success); color: #fff; }
.badge-cancelled, .badge-rejected { background: var(--danger); color: #fff; }
.badge-paid { background: var(--success); color: #fff; }

/* ========================
   FOOTER
======================== */
footer {
    background: var(--text);
    color: var(--white);
    text-align: center;
    padding: 20px;
    margin-top: auto;
    width: 100%;
}

/* ========================
   TICKET PRINT
======================== */
.ticket-box {
    border: 2px dashed var(--primary);
    padding: 30px;
    border-radius: 10px;
    background: #fff;
    max-width: 600px;
    margin: 20px auto;
    width: 100%;
}
@media print {
    body * { visibility: hidden; }
    .ticket-box, .ticket-box * { visibility: visible; }
    .ticket-box { position: absolute; left: 0; top: 0; width: 100%; border: none; }
}

/* ========================
   TABLET (max 992px)
======================== */
@media (max-width: 992px) {
    .boats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================
   MOBILE (max 768px)
======================== */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .nav-container {
        padding: 14px 16px;
    }
    .hero {
        min-height: 50vh;
        padding: 50px 16px;
    }
    .booking-form-container {
        padding: 20px 16px;
        margin: 20px auto;
    }
    .boats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .boat-img {
        height: 160px;
    }
    .boat-title {
        font-size: 1.1rem;
    }
    .ticket-box {
        padding: 20px 15px;
    }
}

/* ========================
   MOBILE SMALL (max 540px)
======================== */
@media (max-width: 540px) {
    .boats-grid {
        grid-template-columns: 1fr;
    }
    .hero {
        padding: 40px 15px;
    }
    .btn {
        font-size: 0.9rem;
        padding: 10px 18px;
    }
    .section-title {
        margin: 30px 0 20px;
    }
    .slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .booking-form-container {
        margin: 10px;
        width: calc(100% - 20px);
    }
}

/* ========================
   MOBILE XS (max 375px)
======================== */
@media (max-width: 375px) {
    .logo {
        font-size: 1.1rem;
    }
    .boat-info {
        padding: 15px;
    }
}
