:root {
  --primary: #c8102e;
  --accent: #ff6600;
  --gold: #f2c94c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(135deg, #e0f7fa 0%, #f8f1e3 100%);
  overflow-x: hidden;
}

/* Header & Hero (giữ nguyên hoặc rút gọn) */
header { position: fixed; top: 0; width: 100%; z-index: 999; background: rgba(255,255,255,0.97); backdrop-filter: blur(15px); }
.nav { max-width: 1300px; margin: auto; padding: 0 20px; height: 85px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 800; color: var(--primary); }
.logo img { width: 58px; height: 58px; border-radius: 50%; object-fit: contain; }
.overlay.active{
    opacity:1;
    visibility:visible;
}

/* Menu */
.nav-links {
    display:flex;
    align-items:center;
    gap:32px;
}

.nav-links a{
    position:relative;
    color:#243b55;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.nav-links a.active{
    color:#c8102e;
}

.nav-links a.active::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-10px;
    width:100%;
    height:3px;
    background:#c8102e;
}

.nav-links a:hover{
    color:var(--primary);
}

.hamburger{
    display:none;
    font-size:28px;
    cursor:pointer;
    color:var(--primary);
}

/* Hero */
.hero { min-height: 70vh; padding-top: 85px; background: linear-gradient(135deg, #f8fbff, #b8dcff); display: flex; align-items: center; }
.hero-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.5rem);
  line-height: 1.1;
  font-weight: 900;
  color: #173B6C;
  margin-bottom: 20px;
}

.hero-text h1 span {
  color: #D62828;
  position: relative;
}

.hero-text h1 span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 16px;
  background: #FFD54F;
  opacity: 0.45;
  z-index: -1;
  border-radius: 20px;
}

.hero-text p {
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  line-height: 1.7;
  color: #425466;
  margin-bottom: 35px;
}

.hero-image img { width: 100%; max-width: 420px; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }

/* Content */
.content { padding: 100px 20px; }
.container { max-width: 1250px; margin: 0 auto; }
.main-title { text-align: center; font-size: clamp(2.3rem, 5vw, 3.2rem); color: var(--primary); margin-bottom: 15px; }
.subtitle { text-align: center; font-size: 1.35rem; color: #2c3e50; margin-bottom: 30px; }

.search-box{
    position:relative;
    width:100%;
    max-width:500px;
    margin:25px auto;
}

.search-box i{
    position:absolute;
    left:18px;
    top:50%;
    transform:translateY(-50%);
    color:#888;
    font-size:18px;
    z-index:2;
}

.search-box input{
    width:100%;
    height:52px;
    border:none;
    outline:none;
    border-radius:40px;
    padding:0 20px 0 48px;
    font-size:16px;
    color: #000 !important;
    caret-color: #000; /* Màu con trỏ nhập */
    background:#fff;
    box-shadow:0 5px 20px rgba(0,0,0,.15);
    transition:.25s;
}
.search-box input:focus{
    box-shadow:0 8px 25px rgba(0,0,0,.25);
}

.search-box input::placeholder{
    color:#000;
    opacity:1; /* Hiển thị rõ trên mọi trình duyệt */
}
.map-wrapper {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 680px;
    margin: 30px auto;
    background: #e0f0ff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    touch-action: none;           /* Ngăn zoom toàn trang */
    user-select: none;
}

#map {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.1s ease;
}

.info-panel {
     position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(calc(-50% - 20px));
    display: none;
    background: white;
    padding: 25px 30px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    max-width: 420px;
    z-index: 1000;
    width: 90%;
}

.info-panel.active{
    display:block;
}
.suggestions-container {
    scrollbar-width: thin;
    scrollbar-color: #ccc #f9f9f9;
}

.suggestion-item:hover {
    background-color: #f0f8ff !important;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #888;
}

.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 28px;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
}
footer {
  background: linear-gradient(135deg, #f8fbff 0%, #dceeff 40%, #b8dcff 100%);
  color: black;
  text-align: center;
  padding: 50px 20px 30px;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 767px) {
     .hamburger{
        display:block;
        font-size:30px;
        cursor:pointer;
        z-index:1002;
    }

    .nav-links{
        position:fixed;
        top:85px;                 /* bằng chiều cao header */
        left:0;
        width:100%;
        background:#fff;

        display:flex;
        flex-direction:column;
        align-items:center;
        gap:20px;

        padding:25px 0;

        box-shadow:0 10px 25px rgba(0,0,0,.12);

        transform:translateY(-120%);
        opacity:0;
        visibility:hidden;

        transition:.35s ease;

        z-index:1001;
    }

    .nav-links.active{
        transform:translateY(0);
        opacity:1;
        visibility:visible;
    }

    .nav-links a{
        width:100%;
        text-align:center;
        padding:12px 20px;
        font-size:18px;
    }

    .nav-links a.active::after{
        display:none;
    }


    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
/* ================= MAP ================= */

#mapWrapper,
.map-wrapper{
    position: relative;
    overflow: hidden;

    width:100%;

    /* Responsive chiều cao */
    height: clamp(460px, 72vh, 900px);

    border-radius:18px;
}

/* ================= SVG ================= */

#map{

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    border:none;

}

/* ================= INFO PANEL ================= */

#infoPanel,
.info-panel {
    position: absolute;
    display: none;
    z-index: 9999;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
    transition: all .3s ease;
    box-sizing: border-box;
}

.info-panel.active {
    display: block;
}

.info-panel h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.info-panel p {
    line-height: 1.6;
    margin-bottom: 16px;
}

#closePanel {
    cursor: pointer;
    font-size: 22px;
    background: none;
    border: none;
}

/* ================= MOBILE ================= */
.map-wrapper.large-mobile{
    position: relative;
}
.info-panel.mobile {
 position: relative;
    left: 50%;
    bottom: -950px;
    transform: translateX(-50%);

    width: 72%;
    max-width: 280px;
    min-width: 220px;

    max-height: 180px;
    padding: 12px 14px;
    border-radius: 14px;
    overflow-y: auto;
}

.info-panel.mobile h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.info-panel.mobile p {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.info-panel.mobile .btn {
    padding: 8px 16px;
    font-size: 13px;
}

/* ================= LARGE MOBILE ================= */
.map-wrapper.large-mobile{
    position: relative;
}

.info-panel.large-mobile{
    position: relative;
    left: 50%;
    bottom: -850px;          
    transform: translateX(-50%);

    width: 92%;
    max-width: 260px;
 max-height: 350px !important;
    padding: 10px;
    z-index: 10000;
}

.info-panel.large-mobile h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.info-panel.large-mobile p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.info-panel.large-mobile .btn {
    padding: 8px 18px;
    font-size: 14px;
}

/* ================= TABLET ================= */
.map-wrapper.tablet{
    position: relative;
    overflow: hidden;
}

.map-wrapper.tablet #map{
    position: absolute;
    top: 90%;
    left: 50%;
    width: 105%;
    height: 105%;
    transform: translate(-50%, -45%);
}
.info-panel.tablet {
     position: relative;
    left: 50%;
    bottom: -800px;
    transform: translateX(-50%);

    width: min(380px, 60%);
    min-width: 300px;

    max-height: 230px;
    padding: 18px;
    border-radius: 16px;
    overflow-y: auto;
}

.info-panel.tablet h3 {
    font-size: 21px;
    margin-bottom: 10px;
}

.info-panel.tablet p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.info-panel.tablet .btn {
    padding: 10px 20px;
    font-size: 14px;
}

/* ================= DESKTOP ================= */
.map-wrapper.tablet{
    position: relative;
    overflow: hidden;
}

.map-wrapper.tablet #map{
    position: absolute;
    top: 90%;
    left: 50%;
    width: 105%;
    height: 105%;
    transform: translate(-50%, -45%);
}
.info-panel.desktop {
    position:  absolute;
    left: 24px;
   margin-bottom:-521px;
    transform: translateY(-50%);

    width: 320px;
    min-width: 300px;
    max-width: 360px;

    max-height: 200px;
    padding: 10px;
    border-radius: 18px;
    overflow-y: auto;
}

.info-panel.desktop h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.info-panel.desktop p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.info-panel.desktop .btn {
    padding: 10px 22px;
    font-size: 15px;
}