/* =============================
   Design Tokens
============================= */
:root{
  --page-pad: 16px;
  --container-max: 1100px;

  --brand: #D32F2F;
  --brand-hover: #FF5A5F;
  --ink: #1c1c1e;
  --ink-soft: #55555c;
  --line: #ececf0;
  --bg: #f6f6f8;
  --card-bg: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 30px rgba(0,0,0,.14);
}

/* =============================
   Base Reset & Body
============================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { -webkit-tap-highlight-color: transparent; }

.container{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

/* =============================
   Header (mobile-first)
============================= */
.main-header {
  background: #fff;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,.1);
  position: sticky;
  top: 0;
  z-index: 10;
}
.left-section { display: flex; align-items: center; margin-bottom: 6px; }
.logo { height: 40px; margin-right: 10px; }
.channel-name { font-size: 18px; font-weight: 700; color: #333; }

.right-section {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  justify-content: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  box-sizing: border-box;
}
.right-section::-webkit-scrollbar { display: none; }

.nav-link {
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.nav-link:hover { transform: translateY(-2px); filter: brightness(1.1); }
.amazon-link{ background:#FF9900; color:#fff; }
.airbnb-link{ background:#FF5A5F; color:#fff; }
.redbus-link{ background:#D32F2F; color:#fff; }
.food-link { background: #9C27B0 ; color: #fff; }
.contact-link{ background:#25D366; color:#fff; opacity:.9; }

/* =============================
   Hero (mobile-first)
============================= */
.movie-hero{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 16px;
  padding: 20px var(--page-pad) 8px;
  margin: 8px 0 4px;
}
.movie-hero-img{
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.movie-hero-copy{ max-width: 100%; padding: 0 8px;}
.movie-hero-title{
  font-size: clamp(24px, 7vw, 40px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 8px;
}
.movie-hero-title::after{
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-hover));
}
.movie-hero-sub{
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 640px;;
}

/* =============================
   Section header
============================= */
.section{ margin: 20px 0 40px; padding: 0 var(--page-pad); }
.section-header{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 16px;
}
.section-header h2{
  font-size: clamp(18px, 5vw, 24px);
  font-weight: 800;
  color: var(--ink);
}

/* =============================
   Location list (mobile-first)
============================= */
.loc-list{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.loc-card{
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.loc-card:active{ transform: scale(.995); }

/* Media with gradient + title overlay */
.loc-media{
  position: relative;
}
.loc-media img{
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.loc-media::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 45%);
}
.loc-name{
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

.loc-body{
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.loc-desc{
  font-size: 15px;
  color: var(--ink-soft);
}

/* Map button = full-width touch target on mobile */
.loc-map-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  background: var(--brand);
  border-radius: 12px;
  transition: background .2s ease, transform .12s ease;
}
.loc-map-btn:active{ transform: scale(.98); background: var(--brand-hover); }

/* =============================
   Footer
============================= */
.footer{
  text-align: center;
  padding: 28px var(--page-pad);
  background: #fff;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.footer-icons{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}
.footer-icons a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  transition: background .15s ease;
}
.footer-icons a:active{ background: var(--bg); }
.footer-icons img{ width: 24px; height: 24px; }
.copyright{ margin-top: 12px; font-size: 13px; color: var(--ink-soft); }

/* =============================
   Desktop / tablet enhancement
============================= */
@media (min-width: 720px){
  :root{ --page-pad: 24px; }

  .movie-hero{
    padding: 36px var(--page-pad) 16px;
    gap: 20px;
  }
  .movie-hero-img{ max-width: 640px; }
  .movie-hero-sub{ font-size: 16px; }

  /* Side-by-side location cards */
  .loc-card{
    flex-direction: row;
    align-items: stretch;
  }
  .loc-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lg); }

  .loc-media{ flex: 0 0 340px; position: relative; }
  .loc-media img{ height: 100%; aspect-ratio: auto; }
  /* Keep the name as an overlay on the image in both layouts */
  .loc-name{ font-size: 22px; }

  .loc-body{
    justify-content: center;
    padding: 22px 26px;
    gap: 14px;
  }
  .loc-desc{ font-size: 16px; }
  .loc-map-btn{
    width: fit-content;
    padding: 0 22px;
    min-height: 46px;
  }
}

@media (min-width: 1024px){
  .loc-media{ flex-basis: 400px; }
}

/* Navbar: original mobile sizing */
@media (max-width: 768px){
  .nav-link{
    font-size: clamp(12px, 3.6vw, 14px);
    font-weight: 600;
    padding: 6px 10px;
    line-height: 1;
    border-radius: 6px;
  }
}

/* =============================
   Accessibility
============================= */
:focus-visible{ outline: 3px solid var(--brand-hover); outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; }
}
