*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    font-family: 'DM Sans',serif;
}
.navbar{
    background-color: transparent;
    height: 70px;
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: flex-start;
    align-items: center;
    padding: 15px 50px;
    font-family: 'Poppins',sans-serif;
    color: #00034c;
}
.nav-menu{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-items{
    list-style: none;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    font-size: 18px;
}
.nav-links a{
    text-decoration: none;
    padding: 10px;
    transition: all 0.4s ease-in-out;
    border-radius: 5px;
    cursor: pointer;
    color: #000371;
}
.nav-links:hover a{
    background-color: #000371;
    color: #fff;
}
.nav-links.active a{
    background-color: #000371;
    color: #fff;
}
.partner-button{
    font-weight: 600;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    background-color: #00579e;
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in;
}
.partner-button:hover{
    transform: scale(1.05);
}
.container{
    display: flex;
    flex-direction: row;
    height: 100vh;
    gap: 10px;
}
.left-panel{
    width: 40%;
    height: 100%;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.search-section{
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 20px;
}
.left-panel h1{
    font-weight: 900;
    font-size: 56px;
    color: #00034c;
    line-height: 1.02;
}
.left-panel p{
    margin-top: -10px;
    font-size: 16px;
    font-weight: 500;
    color: #8c8c8c;
    margin-bottom: 10px;
}
.search-bar{
    width: 100%;
    position: relative;
} 
.search-bar input{
    width: 100%;
    height: 40px;
    border-radius: 20px;
    border: 1px solid #c4c4c4d9;
    outline: none;
    transition: all 0.3s;
    padding-left: 40px;
    font-size: 16px;
    font-weight: 600;
}
.search-bar i{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    cursor: pointer;
    z-index: 3;
}
.fa-magnifying-glass{
    left: 15px;
    color: #8c8c8c;
}
.fa-xmark{
    font-size: 20px;
    right: 20px;
    color: #1512b9;
}
.search-section input:focus{
    border: 1px solid #00034c;
}
.nearby-search{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    flex-direction: row;
    padding: 8px 14px;
    border-radius: 20px;
    outline: none;
    border: 1px solid blue;
    color: blue;
    background: #fff;
    font-weight: 600;
    font-family: 'Poppins',sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}
.nearby-search:hover{
    background-color: #b3b3b377;
}
.result-grid{
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: scroll;
}
.loc-card{
    border: 1px solid rgba(83, 83, 247, 0.338);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    padding: 10px 20px;
    position: relative;
    gap: 10px;
    cursor: pointer;
}
.loc-title{
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: 'Playfair Display',serif;
}
.loc-card p{
    font-size: 13px;
    font-weight: 700; 
    color: #8c8c8c;
}
.loc-card img{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 15px;
    width: 100px;
}
.loc-button{
    display: inline-flex;
    gap: 12px;
}
.loc-button button{
    padding: 10px 14px;
    background-color: #fff;
    border: 1px solid rgb(30, 28, 139);
    color: rgb(30, 28, 139);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}
.round{
    border-radius: 50%;
}
.map{
    width: 60%;
    height: 100%;
}

/* ── Large mobile / small tablet: ≤ 768px ── */
@media (max-width: 768px) {
  /* Navbar collapses to hamburger */
  .navbar { padding: 15px 20px; height: auto; flex-wrap: wrap; }
  .nav-menu { flex-direction: column; align-items: flex-start; gap: 12px; display: none; width: 100%; padding-bottom: 12px; }
  .nav-menu.open { display: flex; }
  .nav-items { flex-direction: column; align-items: flex-start; width: 100%; gap: 4px; }
  .nav-links { width: 100%; display: block; }
  .hamburger { display: flex; margin-left: auto; }

  /* Stack the two panels vertically */
  .container { flex-direction: column; height: auto; }
  .left-panel { width: 100%; height: auto; padding: 24px 20px; }
  .left-panel h1 { font-size: 34px; }
  .map { width: 100%; height: 350px; border-radius: 12px; }

  /* Search row stacks */
  .search-section { flex-direction: column; gap: 10px; }
  .nearby-search { align-self: flex-start; }

  /* Hide card thumbnail image to prevent overflow */
  .loc-card img { display: none; }
  .result-grid { overflow-y: visible; flex-direction: row;}
}

/* ── Mobile: ≤ 480px ── */
@media (max-width: 480px) {
  .navbar { padding: 12px 16px; }
  .left-panel { padding: 20px 16px; }
  .left-panel h1 { font-size: 28px; }
  .left-panel p { font-size: 14px; }
  .map { height: 260px; }
  .partner-button { font-size: 14px; padding: 8px 14px; }
  .loc-button { flex-wrap: wrap; gap: 8px; }
  .loc-button button { font-size: 13px; padding: 8px 12px; }
  .loc-title { font-size: 14px; }
}
/* ── Hamburger button (hidden on desktop) ── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    border-radius: 6px;
    z-index: 1001;
    margin-left: auto;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #00034c;
    border-radius: 2px;
    transition: all 0.35s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile dropdown menu ── */
.mobile-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
    border-top: 1px solid rgba(0, 3, 76, 0.08);
    box-shadow: 0 8px 24px rgba(0, 3, 76, 0.1);
    z-index: 1000;
}

.mobile-menu.open {
    display: flex;
}

.mobile-nav-link {
    display: block;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #000371;
    transition: background 0.2s;
    font-family: 'Poppins', sans-serif;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: #000371;
    color: #fff;
}

.mobile-partner {
    width: 100%;
    margin-top: 12px;
    font-weight: 600;
    color: #fff;
    padding: 13px;
    border-radius: 25px;
    background: #00579e;
    font-size: 15px;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background 0.3s;
}

.mobile-partner:hover {
    background: #004b87;
}
