/* =========================
   BASE
========================= */
body {
    font-family: 'Inter', sans-serif;
    background: #f4f6f9;
    color: #1f2937;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-tap-highlight-color: transparent;
}

/* =========================
   NAVBAR
========================= */
.navbar {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.navbar .navbar-brand {
    color: #fff !important;
    font-weight: 600;
}

.navbar .nav-link {
    color: rgba(255,255,255,0.85);
    border-radius: 8px;
    padding: 6px 10px;
    transition: 0.2s;
}

.navbar .nav-link:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.navbar-toggler {
    border: none;
    box-shadow: none !important;
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* =========================
   HERO SECTION
========================= */
.hero-section {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    padding: 100px 20px 80px;
    overflow: hidden;
}

/* GRID */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    pointer-events: none;
}

/* GLOW */
.hero-section::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    top: -150px;
    right: -150px;
    filter: blur(60px);
    pointer-events: none;
}

/* CONTENT LAYER */
.hero-section .container {
    position: relative;
    z-index: 2;
}

/* TEXT */
.hero-section h1 {
    font-size: 32px;
    font-weight: 600;
}

.hero-section p {
    color: rgba(255,255,255,0.85);
    max-width: 500px;
}

/* IMAGE */
.hero-img {
    max-width: 90%;
    animation: float 4s ease-in-out infinite;
}

/* FLOAT */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

/* =========================
   BUTTON
========================= */
.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border: none;
    border-radius: 10px;
    padding: 8px 18px;
    transition: 0.2s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
    box-shadow: 0 6px 16px rgba(37,99,235,0.3);
    transform: translateY(-1px);
}

.btn-light {
    border-radius: 10px;
    font-weight: 500;
}

/* =========================
   CARD
========================= */
.card-minimal {
    border: none;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    transition: 0.25s;
}

.card-minimal:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.card-minimal i {
    transition: 0.2s;
}

.card-minimal:hover i {
    transform: scale(1.2);
}

/* =========================
   STEP
========================= */
.step-circle {
    width: 50px;
    height: 50px;
    margin: auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* =========================
   MAP
========================= */
.map-container {
    background: #fff;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}

.map-wrapper {
    position: relative;
    height: 60vh;
    min-height: 400px;
    max-height: 700px;
    border-radius: 12px;
    overflow: hidden;
}

#map {
    height: 100%;
    width: 100%;
}

/* SEARCH */
.map-search-panel {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;

    width: 100%;
    max-width: 420px;

    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);

    border-radius: 12px;
    padding: 10px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 8px 10px;
}

.search-input-wrapper input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
}

.search-result {
    margin-top: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.search-result .list-group-item {
    border: none;
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 13px;
    padding: 8px 10px;
}

.search-result .list-group-item:hover {
    background: #f1f5f9;
}

/* =========================
   TOAST
========================= */
.toast-success {
    background: #16a34a;
    color: #fff;
}

.toast-error {
    background: #dc2626;
    color: #fff;
}

/* =========================
   FOOTER
========================= */
footer {
    margin-top: 60px;
    padding: 20px 0;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 80px 20px 60px;
    }

    .hero-section h1 {
        font-size: 24px;
    }

    .hero-img {
        margin-top: 20px;
    }

    .map-wrapper {
        height: 50vh;
    }
}

.map-container {
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    border: 1px solid #f1f1f1;
}

.map-wrapper {
    position: relative;
    height: 420px;
    border-radius: 12px;
    overflow: hidden;
}

#map {
    height: 100%;
}

.card {
    border-radius: 16px;
}

/* ==================================
   MOBILE OPTIMIZATION
================================== */

/* Tablet */
@media (max-width: 991px) {

    .navbar-collapse {
        margin-top: 15px;
        background: rgba(255,255,255,0.08);
        padding: 12px;
        border-radius: 12px;
    }

    .navbar-nav {
        align-items: flex-start !important;
    }

    .navbar-nav .nav-item {
        width: 100%;
    }

    .navbar-nav .nav-link {
        display: block;
        width: 100%;
        padding: 10px 15px;
    }
}

/* Mobile */
@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* HERO */
    .hero-section {
        padding: 70px 0 50px;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-section p {
        max-width: 100%;
        margin: 0 auto;
        font-size: 15px;
    }

    .hero-img {
        width: 100%;
        max-width: 320px;
        margin-top: 30px;
    }

    /* BUTTON */
    .hero-section .btn {
        width: 100%;
        max-width: 280px;
    }

    /* CARD */
    .card-minimal {
        padding: 25px 20px !important;
    }

    .card-minimal h6 {
        font-size: 16px;
    }

    .card-minimal small {
        font-size: 13px;
    }

    /* STEP */
    .step-circle {
        width: 55px;
        height: 55px;
        font-size: 18px;
    }

    /* WHY US */
    .why-image {
        max-width: 350px;
        margin: auto;
        display: block;
    }

    /* CTA */
    .cta-card {
        padding: 30px 20px !important;
    }

    .cta-card .btn {
        width: 100%;
    }

    footer {
        font-size: 14px;
        padding: 25px 15px;
    }
}

/* Extra Small Device */
@media (max-width: 480px) {

    .hero-section {
        padding: 60px 0 40px;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section p {
        font-size: 14px;
    }

    h4 {
        font-size: 1.35rem;
    }

    .card-minimal {
        border-radius: 18px;
    }

    .hero-img {
        max-width: 260px;
    }

    .step-circle {
        width: 50px;
        height: 50px;
    }

    .card-minimal i {
        font-size: 2rem !important;
    }
}

