@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f7f8f5;
    color: #222;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================
   NAVBAR
========================= */

.navbar {
    width: 100%;
    background: white;
    padding: 18px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 23px;
    font-weight: 800;
    color: #168aad;
}

.logo span {
    color: #f4a261;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #168aad;
}

/* =========================
   HERO SLIDER
========================= */

.hero-slider {
    position: relative;
    width: 100%;
    height: 560px;
    overflow: hidden;
    background: #222;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;

    padding: 100px 7%;

    color: white;

    transform: translateX(100%);
    transition: transform 0.8s ease-in-out;
}

.hero-slide.active {
    transform: translateX(0);
}

.hero-slide img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: 0;
}

.hero-slide::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            rgba(0,0,0,0.35),
            rgba(0,0,0,0.35)
        );

    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 650px;
}

.hero-content h1 {
    font-size: 55px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 17px;
    margin-bottom: 30px;
}

/* HERO BUTTON */

.hero-content a {
    display: inline-block;

    padding: 12px 23px;

    border-radius: 30px;

    background: #168aad;
    color: white;

    font-weight: 600;

    transition: 0.3s;
}

.hero-content a:hover {
    background: #126782;
    transform: translateY(-3px);
}

/* HERO DOTS */

.hero-dots {
    position: absolute;

    bottom: 25px;
    left: 0;

    width: 100%;

    display: flex;
    justify-content: center;

    gap: 10px;

    z-index: 10;
}

.hero-dots .dot {
    width: 12px;
    height: 12px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,0.6);

    cursor: pointer;

    padding: 0;

    transition: 0.3s;
}

.hero-dots .dot:hover {
    background: white;
}

.hero-dots .dot.active {
    background: white;
    transform: scale(1.25);
}

/* =========================
   BUTTON
========================= */

.btn {
    display: inline-block;
    padding: 12px 23px;
    border-radius: 30px;
    background: #168aad;
    color: white;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: 0.3s;
}

.btn:hover {
    background: #126782;
    transform: translateY(-3px);
}

.btn-orange {
    background: #f4a261;
}

.btn-danger {
    background: #e63946;
}

.btn-secondary {
    background: #6c757d;
}

/* =========================
   CONTAINER
========================= */

.container {
    width: 86%;
    max-width: 1200px;
    margin: auto;
}

.section {
    padding: 70px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.section-title p {
    color: #777;
}

/* =========================
   SEARCH
========================= */

.search-area {
    margin-bottom: 40px;
}

.search-form {
    display: flex;
    max-width: 650px;
    margin: auto;
    gap: 10px;
}

.search-box {
    flex: 1;

    padding: 15px 20px;

    border: 1px solid #ddd;
    border-radius: 30px;

    outline: none;

    font-family: inherit;

    transition: 0.3s;
}

.search-box:focus {
    border-color: #168aad;

    box-shadow:
        0 0 0 4px rgba(22,138,173,0.1);

    transform: scale(1.02);
}

/* =========================
   CATEGORY
========================= */

.category-list {
    display: flex;
    justify-content: center;

    gap: 12px;

    flex-wrap: wrap;

    margin-bottom: 35px;
}

.category-btn {
    padding: 9px 18px;

    border-radius: 20px;

    background: white;

    border: 1px solid #ddd;

    font-size: 13px;

    transition: 0.3s;
}

.category-btn:hover {
    background: #168aad;

    color: white;

    border-color: #168aad;
}

/* =========================
   DESTINATION GRID
========================= */

.destination-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

.destination-card {
    background: white;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 8px 25px rgba(0,0,0,0.07);

    transition: 0.3s ease;
}

.destination-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 15px 35px rgba(0,0,0,0.12);
}

.destination-card img {
    width: 100%;

    height: 230px;

    object-fit: cover;

    display: block;

    transition: 0.4s ease;
}

.destination-card:hover img {
    transform: scale(1.05);
}

.card-image {
    overflow: hidden;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-bottom: 7px;
}

.location {
    color: #168aad;

    font-size: 13px;

    margin-bottom: 12px;
}

.card-content p {
    color: #777;

    font-size: 13px;

    line-height: 1.7;
}

.card-buttons {
    margin-top: 18px;

    display: flex;

    gap: 8px;
}

/* =========================
   FORM
========================= */

.form-container {
    max-width: 650px;

    margin: 50px auto;

    background: white;

    padding: 35px;

    border-radius: 18px;

    box-shadow:
        0 8px 30px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;

    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;

    padding: 13px 15px;

    border: 1px solid #ddd;

    border-radius: 10px;

    outline: none;

    font-family: inherit;
}

.form-group textarea {
    height: 130px;

    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #168aad;
}

/* =========================
   VIEW
========================= */

.destination-view {
    max-width: 900px;

    margin: 60px auto;

    background: white;

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 10px 35px rgba(0,0,0,0.08);
}

.destination-view img {
    width: 100%;

    max-height: 500px;

    object-fit: cover;
}

.view-content {
    padding: 35px;
}

.view-content h1 {
    margin-bottom: 10px;
}

.view-content p {
    line-height: 1.8;

    color: #666;
}

/* =========================
   TABLE
========================= */

.table-container {
    background: white;

    padding: 25px;

    border-radius: 15px;

    overflow-x: auto;
}

table {
    width: 100%;

    border-collapse: collapse;
}

th,
td {
    padding: 14px;

    text-align: left;

    border-bottom: 1px solid #eee;
}

th {
    background: #f4f7f8;
}

/* =========================
   FOOTER
========================= */

footer {
    background: #132a36;

    color: white;

    text-align: center;

    padding: 30px;

    margin-top: 50px;
}

footer p {
    font-size: 13px;

    color: #ddd;
}

/* =========================
   ANIMATION
========================= */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 800px) {

    .destination-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .hero-slider {
        height: 500px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 550px) {

    .navbar {
        flex-direction: column;

        gap: 15px;
    }

    .nav-links {
        gap: 12px;
    }

    .destination-grid {
        grid-template-columns: 1fr;
    }

    .search-form {
        flex-direction: column;
    }

    .hero-slider {
        height: 500px;
    }

    .hero-slide {
        padding: 70px 7%;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-content p {
        font-size: 15px;
    }

}

/* =========================================
   LOGIN & REGISTER PAGE
========================================= */

.auth-page {
    background: #f5f7f8;

    min-height: 100vh;
}

/* LOGIN NAV */

.login-nav {
    background: #1e88a8;

    color: white !important;

    padding: 10px 20px;

    border-radius: 25px;

    transition: 0.3s;
}

.login-nav:hover {
    background: #156b85;

    transform: translateY(-2px);
}

/* MAIN AUTH CONTAINER */

.auth-container {
    width: 90%;

    max-width: 1200px;

    min-height: 650px;

    margin: 50px auto;

    background: white;

    border-radius: 30px;

    overflow: hidden;

    display: grid;

    grid-template-columns: 1fr 1fr;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.10);
}

/* IMAGE SIDE */

.auth-image {
    position: relative;

    min-height: 650px;

    background-image:
        linear-gradient(
            rgba(0, 80, 110, 0.20),
            rgba(0, 40, 60, 0.60)
        ),
        url("uploads/hero.jpg");

    background-size: cover;

    background-position: center;

    display: flex;

    align-items: flex-end;

    padding: 50px;
}

/* IMAGE TEXT */

.auth-overlay {
    color: white;

    max-width: 450px;

    animation: fadeUp 0.8s ease;
}

.auth-overlay h1 {
    font-size: 45px;

    margin-bottom: 15px;
}

.auth-overlay p {
    font-size: 17px;

    line-height: 1.7;
}

/* FORM SIDE */

.auth-form {
    display: flex;

    align-items: center;

    justify-content: center;

    padding: 50px;
}

/* CARD */

.auth-card {
    width: 100%;

    max-width: 430px;
}

/* SMALL TEXT */

.auth-small {
    color: #1e88a8;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2px;
}

/* TITLE */

.auth-card h2 {
    font-size: 38px;

    margin: 8px 0;

    color: #182c35;
}

/* DESCRIPTION */

.auth-description {
    color: #777;

    line-height: 1.6;

    margin-bottom: 30px;
}

/* LABEL */

.auth-card form > label {
    display: block;

    font-size: 14px;

    font-weight: 600;

    color: #344b54;

    margin-bottom: 8px;
}

/* INPUT */

.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
    width: 100%;

    padding: 15px 16px;

    margin-bottom: 20px;

    border: 1px solid #dce4e7;

    border-radius: 12px;

    font-size: 14px;

    outline: none;

    box-sizing: border-box;

    transition: 0.3s;

    background: #fafcfc;
}

.auth-card input:focus {
    border-color: #1e88a8;

    background: white;

    box-shadow:
        0 0 0 4px rgba(30, 136, 168, 0.10);
}

/* LOGIN OPTIONS */

.login-options {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin: -5px 0 25px;

    font-size: 13px;
}

.login-options a {
    color: #1e88a8;

    text-decoration: none;

    font-weight: 600;
}

.remember {
    display: flex;

    align-items: center;

    gap: 7px;

    color: #777;
}

.remember input {
    accent-color: #1e88a8;
}

/* LOGIN BUTTON */

.auth-button {
    width: 100%;

    padding: 15px;

    border: none;

    border-radius: 12px;

    background: #1e88a8;

    color: white;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.3s;
}

.auth-button:hover {
    background: #156b85;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(30, 136, 168, 0.25);
}

/* DIVIDER */

.auth-divider {
    display: flex;

    align-items: center;

    gap: 15px;

    margin: 25px 0;

    color: #aaa;

    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background: #e5e5e5;
}

/* GOOGLE BUTTON */

.google-button {
    width: 100%;

    padding: 14px;

    border: 1px solid #ddd;

    background: white;

    border-radius: 12px;

    cursor: pointer;

    font-size: 14px;

    font-weight: 600;

    color: #444;

    transition: 0.3s;
}

.google-button:hover {
    background: #f7f7f7;

    transform: translateY(-2px);
}

.google-button span {
    margin-right: 10px;

    font-weight: bold;

    color: #4285f4;
}

/* REGISTER TEXT */

.register-text {
    text-align: center;

    color: #777;

    font-size: 14px;

    margin-top: 25px;
}

.register-text a,
.register-link {
    color: #1e88a8;

    font-weight: 600;

    text-decoration: none;
}

.register-text a:hover,
.register-link:hover {
    text-decoration: underline;
}

/* ERROR */

.error-message {
    background: #fff1f1;

    color: #d93025;

    padding: 12px 15px;

    border-radius: 10px;

    font-size: 13px;

    margin-bottom: 20px;

    border-left: 4px solid #d93025;
}

/* SUCCESS */

.success-message {
    background: #effaf3;

    color: #198754;

    padding: 12px 15px;

    border-radius: 10px;

    font-size: 13px;

    margin-bottom: 20px;

    border-left: 4px solid #198754;
}

/* =========================
   AUTH RESPONSIVE
========================= */

@media (max-width: 850px) {

    .auth-container {
        grid-template-columns: 1fr;

        margin: 30px auto;
    }

    .auth-image {
        min-height: 350px;
    }

    .auth-form {
        padding: 40px 25px;
    }

}

@media (max-width: 600px) {

    .auth-container {
        width: 94%;

        border-radius: 20px;
    }

    .auth-image {
        min-height: 280px;

        padding: 30px;
    }

    .auth-overlay h1 {
        font-size: 32px;
    }

    .auth-form {
        padding: 30px 20px;
    }


    /* Stail untuk Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
    border-radius: 8px;
}

/* Butang Tutup (X) */
.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}


/* FULLSCREEN IMAGE VIEWER */
.image-viewer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.image-viewer.show {
    display: flex;
}

.image-viewer img {
    max-width: 85%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.viewer-arrow,
.close-viewer {
    position: absolute;
    border: none;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
}

.viewer-arrow {
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    font-size: 25px;
}

.viewer-arrow:hover,
.close-viewer:hover {
    background: rgba(255, 255, 255, 0.35);
}

.left-arrow {
    left: 25px;
}

.right-arrow {
    right: 25px;
}

.close-viewer {
    top: 20px;
    right: 25px;
    width: 45px;
    height: 45px;
    font-size: 30px;
}

.image-counter {
    position: absolute;
    bottom: 15px;
    color: white;
    font-size: 14px;
}

@media (max-width: 600px) {
    .image-viewer img {
        max-width: 95%;
        max-height: 75vh;
    }

    .viewer-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .left-arrow {
        left: 8px;
    }

    .right-arrow {
        right: 8px;
    }
}
}