/* Base Styles - Mobile First */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f4f4;
  color: #333;
  padding: 10px; /* Default padding for mobile comfort */
}

/* City Page */
.city-page {
  padding: 10px;
  text-align: center;
}

.city-page h1 {
  color: #333;
  margin-bottom: 10px;
  font-size: 2rem;
}
.city-page p {
  color: #666;
  margin-bottom: 20px;
  font-size: 1rem;
}

/* Top Selection Menu (Tabs) */
.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  margin-top: -30px; /* ⬅️ was -60px, now a softer pull-up */
  position: relative;
  z-index: 2;
}


.menu-tab {
  flex: 1;
  padding: 8px 15px;
  background-color: #ff6b6b;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 0.9rem;
  margin: 5px 0;
}
.menu-tab:hover {
  background-color: #ff4c4c;
  transform: translateY(-2px);
}
.menu-tab.active {
  background-color: #f06595;
}

/* Content Container with Smooth Transitions */
.content-container {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  padding: 15px;
}

/* Section Content for Tabs */
.section-content {
  opacity: 0;
  transform: translateX(0);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  display: none;
}
.section-content.active {
  display: block;
  opacity: 1;
}
.section-content.exit-left {
  opacity: 0;
  transform: translateX(-100%);
}

/* Pub Cards Grid Layout */
#pubs-container {
  display: grid;
  grid-template-columns: 1fr;  /* Single column on mobile */
  gap: 20px;
  padding: 20px 0;
}

/* Pub Card Styling */
.pub-card {
  position: relative;
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}
.pub-card:hover {
  transform: translateY(-5px);
}
.pub-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 10px;
}
.pub-card .pub-name {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 15px;
}

/* Button Styling */
.view-more-btn {
  background-color: #ff6b6b;
  border: none;
  padding: 10px 20px;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.view-more-btn:hover {
  background-color: #ff4c4c;
}

/* Dynamic Section Card Images */
.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* Cards for Deals, Events, Beer Market */
.flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 15px;
  margin: 10px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex: 1 1 100%;
  max-width: 100%;
}
@media (min-width: 480px) {
  .card {
    flex: 1 1 300px;
    max-width: 400px;
  }
}

.card h2 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #333;
}
.card p {
  margin-bottom: 10px;
  color: #555;
}
.card button {
  background: #ff6b6b;
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.card button:hover {
  background: #f06595;
}

/* Deals Section */
.deal-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 15px 0;
  overflow: hidden;
}
.deal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}
.deal-link {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 20px;
}
.deal-info {
  text-align: left;
}
.deal-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #333;
}
.deal-description {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #555;
}
.deal-discount {
  font-size: 1.2rem;
  font-weight: bold;
  color: #f06595;
  margin-bottom: 5px;
}
.deal-pub {
  font-size: 0.9rem;
  color: #888;
}

/* Events Section */
.event-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 15px 0;
  overflow: hidden;
}
.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}
.event-link {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 20px;
}
.event-info {
  text-align: left;
}
.event-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #333;
}
.event-description {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #555;
}
.event-date {
  font-size: 1.2rem;
  font-weight: bold;
  color: #f06595;
  margin-bottom: 5px;
}
.event-pub {
  font-size: 0.9rem;
  color: #888;
}

/* Media Queries for Tablets and Desktops */
@media (min-width: 768px) {
  body {
    padding: 20px;
  }
  
  .city-page {
    padding: 20px;
  }
  
  .city-page h1 {
    font-size: 2.5rem;
  }
  .city-page p {
    font-size: 1.2rem;
  }
  
  .menu-tab {
    padding: 10px 20px;
    font-size: 1rem;
  }
  
  .content-container {
    padding: 20px;
    min-height: 400px;
  }
  
  #pubs-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .pub-card .pub-name {
    font-size: 1.2rem;
  }
  
  .card h2 {
    font-size: 1.2rem;
  }
  
  .card p {
    font-size: 1rem;
  }
}


/* —————————————————————————————————————————
   FREE Bar Tab Giveaway (Section 5)
   ————————————————————————————————————————— */

#section-giveaway {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  padding: 32px 24px;
  margin: 40px auto;
  max-width: 600px;
  text-align: center;
}

#section-giveaway > h2 {
  font-size: 2rem;
  color: #ff6b6b;
  margin-bottom: 16px;
}

#section-giveaway > p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 24px;
}

/* Container for button + message */
.giveaway-container {
  display: inline-block;
  text-align: center;
  position: relative;
}

/* ENTER DRAW BUTTON */
#enter-draw-btn {
  background: linear-gradient(135deg, #ff6b6b, #f06595);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

#enter-draw-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* TAP/CLICK FEEDBACK */
#enter-draw-btn:active {
  transform: scale(0.95);
}

/* DRAW MESSAGE (initially hidden) */
.giveaway-container #draw-message {
  font-size: 1rem;
  color: #333;
  margin-top: 16px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease;
}

/* WHEN ENTERED: hide button, reveal message */
.giveaway-container.entered #enter-draw-btn {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

.giveaway-container.entered #draw-message {
  opacity: 1;
  max-height: 200px; /* enough to show the text */
}

/* Past Winners Grid */
#section-giveaway ul {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 480px) {
  #section-giveaway ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  #section-giveaway ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

#section-giveaway ul li {
  background: #fafafa;
  border-radius: 6px;
  padding: 16px;
  font-size: 1rem;
  color: #333;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#section-giveaway ul li:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

  
  

/* —————————————————————————————————————————
 HOT TONIGHT — Mobile-First Refinement
 ————————————————————————————————————————— */
 .hot-section {
  margin: 30px 0;
  padding: 0;
}

.hot-wrapper {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
}

/* subtle fade at left/right edges */
.hot-wrapper::before,
.hot-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  pointer-events: none;
  z-index: 2;
}

.hot-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #fff, transparent);
}

.hot-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #fff, transparent);
}

/* Scrollable carousel */
.hot-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 40px;
  margin: 0 -40px;
}

.hot-container::-webkit-scrollbar {
  display: none;
}

/* Card style */
.hot-card {
  flex: 0 0 90%;
  max-width: 90%;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding: 18px;
  position: relative;
}

.hot-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.hot-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.hot-card .pub-name {
  font-size: 1.2rem;
  color: #222;
  margin-bottom: 8px;
}

/* “Swipe →” hint for touch devices */
.hot-wrapper .swipe-hint {
  position: absolute;
  bottom: 8px;
  right: 20px;
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.5);
  z-index: 3;
  pointer-events: none;
}

/* hide arrows on mobile */
.hot-arrow {
  display: none;
}

/* Tablet & up: two cards side by side + arrows */
@media (min-width: 600px) {
  .hot-wrapper {
    padding: 20px 0;
  }
  .hot-container {
    padding: 0 60px;
    margin: 0 -60px;
  }
  .hot-card {
    flex: 0 0 45%;
    max-width: 45%;
    padding: 20px;
  }
  .hot-wrapper .swipe-hint {
    display: none;
  }
  .hot-arrow {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s ease;
    opacity: 0;
    z-index: 3;
  }
  .hot-wrapper:hover .hot-arrow {
    opacity: 1;
  }
  #hot-prev { left: 12px; }
  #hot-next { right: 12px; }
}

/* Desktop: three cards, remove fades & arrows */
@media (min-width: 1024px) {
  .hot-wrapper::before,
  .hot-wrapper::after {
    display: none;
  }
  .hot-card {
    flex: 0 0 30%;
    max-width: 30%;
  }
  .hot-arrow {
    display: none;
  }
}




/* —————————————————————————————
   Desktop Enhancements — Smaller, Centered Cards
   ————————————————————————————— */
@media (min-width: 768px) {
  #section-memories {
    max-height: 70vh;
  }
  .memory-card {
    max-width: 400px;     /* limit card width */
    margin: 0 auto;       /* center it horizontally */
  }
  /* Keep square aspect on desktop too */
  .memory-img {
    aspect-ratio: 1 / 1;
  }
  .memory-desc {
    font-size: 1rem;
  }
  .memory-tag {
    font-size: 0.9rem;
  }
}

/* Slick Exclusive Badge */
.exclusive-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #fff;
  font-weight: bold;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 4px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  margin-left: 8px;
}

/* NightAdvisor Exclusives Filter Button */
#filter-exclusive-btn {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 16px;
  background: #333;
  color: #ffd700;
  border: 2px solid #ffd700;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
}
#filter-exclusive-btn.active {
  background: #ffd700;
  color: #333;
}

/* Featured card highlight */
.featured-card {
  border: 2px solid #ffd700;       /* gold border */
  position: relative;
  box-shadow:
    0 0 8px rgba(255,215,0,0.6),
    0 4px 6px rgba(0,0,0,0.1);
}

/* Badge in top-right */
.featured-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ffd700;
  color: #333;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  z-index: 2;
}

/* Ensure badge text wraps nicely */
.featured-badge {
  white-space: nowrap;
}

.featured-card .deal-info,
.featured-card .event-info {
  padding-top: 1.5rem; /* adjust as needed */
}

@media (max-width: 767px) {
  .featured-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
  }
}


.theme-highlights {
  margin-bottom: 20px;
}
.theme-highlights h2 {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #ff6b6b;
}
.theme-pubs-container {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding-bottom: 10px;
}
.theme-pub-card {
  flex: 0 0 200px;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}
.theme-pub-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 8px;
}
.theme-pub-card h3 {
  font-size: 1em;
  margin-bottom: 6px;
}


.search-wrapper {
  position: relative;
  margin: 20px auto 10px; /* ⬅️ tighter bottom margin */
  max-width: 400px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 5px;
}


#search-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  outline: none;
  background: transparent;
  color: #333;
}
.suggestions-list {
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.suggestions-list li {
  color: #333;
  background-color: #fff;
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.suggestions-list li:hover {
  background: #f0f0f0;
}

/* Logo at top of city pages */
.city-logo {
  display: block;
  margin: 20px auto;
  width: 120px;     /* adjust to taste */
  height: auto;
}

/* Active Discounts Badge */
.discounts-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #ff8c00, #ffd700);
  color: #333;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 2;
  white-space: nowrap;
  transition: transform 0.2s ease;
}

.pub-card:hover .discounts-badge {
  transform: translateY(-2px);
}

/* Desktop-only: Events laid out in a 3-column grid */
/* —————————————————————————————
 Desktop-only: Events laid out in a 3-column grid
 ————————————————————————————— */
 @media (min-width: 1024px) {
  /* Target only the Events container */
  #section-events #events-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 30px 0;
  }

  /* Reset margins so the grid controls spacing */
  #section-events .event-card {
    margin: 0;
    width: 100%;
    max-width: none;
  }

  /* Consistent 16:9 crop for desktop images */
  #section-events .event-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
  }
}

.city-hero {
  background: url('/images/back.webp') no-repeat center center;
  background-size: cover;
  position: relative;
  padding: 160px 20px 60px; /* 👈 was 100px 20px 160px */
  color: #fff;
  text-align: center;
  z-index: 1;
}



.city-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.45); /* dark overlay */
  backdrop-filter: blur(2px);     /* subtle blur */
  z-index: 0;
}

.city-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 180px; /* was 100px */
  background: linear-gradient(to bottom, rgba(0,0,0,0), #f4f4f4);
  z-index: 0;
}


.city-hero > * {
  position: relative;
  z-index: 1;
}

.back-wrapper {
  margin-bottom: 15px;
}

.back-button {
  display: inline-block;
  padding: 8px 16px;
  background-color: #ddd;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.back-button:hover {
  background-color: #bbb;
}

.auth-button,
.logout-button,
.back-button {
  background: linear-gradient(135deg, #ff6b6b, #f06595);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 25px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: background 0.3s ease, transform 0.2s ease;
}

.auth-button:hover,
.logout-button:hover,
.back-button:hover {
  background: linear-gradient(135deg, #e74c3c, #d1457b);
  transform: translateY(-2px);
}

 /* Updated Auth Section Styling (remove absolute positioning) */
 .auth-info {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.auth-info p {
  margin: 0 15px 0 0;
  color: #333;
  font-size: 1.1rem;
}
.auth-button,
.logout-button {
  margin-left: 10px;
  padding: 10px 20px;
  background-color: #ff6b6b;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.auth-button:hover,
.logout-button:hover {
  background-color: #ff4c4c;
}

.hero-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  z-index: 2;
  max-width: 100%;
}

.auth-info {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.auth-info p {
  color: #fff;
  margin: 0;
  font-weight: 500;
  font-size: 1rem;
  text-align: right;
}


@media (max-width: 600px) {
  .hero-controls {
    top: 10px;
    right: 10px;
    gap: 6px;
  }

  .auth-info {
    flex-direction: column;
    align-items: flex-end;
  }

  .auth-button,
  .logout-button,
  .back-button {
    padding: 8px 14px;
    font-size: 0.9rem;
  }
}

