/* Reset and Base Styles */
:root {
  --background-color: #fff;
  --text-color: #1a1a1a;
  --link-color: #333;
  --link-hover-color: #000;
  --card-background: #fff;
  --card-border: #e2e2e2;
  --footer-text: #888;
  --hero-bg: #f4f4f4;
  --primary-color: #1a1a1a;
  --primary-rgb: 26, 26, 26;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Screen reader only - hidden visually but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- NEW HERO STYLES --- */
.hero {
  display: flex;
  flex-direction: column;

  width: 100%;
  background-color: var(--hero-bg);
  min-height: 150px;
  position: relative;
  /* add this */

}

.hero-image {
  flex: 1;
  background-image: url('https://images.unsplash.com/photo-1548013146-72479768bada?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=1176');
  background-size: cover;
  background-position: center;
  min-height: 250px;
}

.hero-image-city {
  flex: 2;
  /* background-image is set inline via style attribute */
  background-size: cover;
  background-position: 40% 60%;
  min-height: 250px;
}

.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
}

.hero-text h1 {
  font-size: clamp(2rem, 2vw, 4rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.hero-text p {
  font-size: clamp(1rem, 2vw, 1rem);
  color: #555;
  margin-bottom: 1rem;
}

.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: #666;
}

.hero-trust-badge .trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  background: #22c55e;
  color: white;
  border-radius: 50%;
  font-size: 0.5rem;
  font-weight: 700;
}

.hero-trust-badge .trust-text {
  color: #666;
}

.hero-trust-badge .trust-text strong {
  color: #444;
  font-weight: 600;
}

.socials {
  display: flex;
  gap: 1rem;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.socials a:hover {
  transform: scale(1.1);
}

.socials a:nth-child(1) {
  background-color: #25D366;
}

/* WhatsApp */
.socials a:nth-child(2) {
  background-color: #1DA1F2;
}

/* Twitter/X */
.socials a:nth-child(3) {
  background-color: #000;
}

/* X/Other */

.socials svg {
  width: 22px;
  height: 22px;
}

@media (min-width: 768px) {
  .hero {
    flex-direction: row;
  }

  .hero-text {
    padding: 4rem;
  }
}

/* --- UPDATED SEARCH STYLES --- */
.search-container {
  padding: 0.75rem 1rem 2rem;
  max-width: 768px;
  margin: 0 auto;
}

/* NEW: Wrapper for flex layout */
.search-wrapper {
  display: flex;
  flex-direction: column;
  /* Stack on mobile by default */
  gap: 0.75rem;
}

.search-bar {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0 1rem;
  /* Removed vertical padding to use height */
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  /* flex: 1; <-- REMOVED from base style */
  height: 50px;
  /* Give a fixed height */
}

.search-bar svg {
  width: 20px;
  height: 20px;
  color: #888;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.search-bar input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  font-size: 1.1rem;
  font-family: 'Inter', sans-serif;
}

.search-bar input::placeholder {
  color: #aaa;
}

/* NEW: "Feeling Lucky?" button styles */
.lucky-button {
  background-color: #f4f4f4;
  border: 1px solid #ddd;
  color: #333;
  padding: 0 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  /* Keep text on one line */
  height: 50px;
  /* Match search bar height */
  width: 100%;
  /* <-- ADDED: Make button full-width on mobile */
}

.lucky-button:hover {
  background-color: #eee;
  border-color: #ccc;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* On larger screens (tablets and up), put them side-by-side */
@media (min-width: 640px) {
  .search-wrapper {
    flex-direction: row;
    /* Side-by-side on desktop */
  }

  .search-bar-wrapper {
    flex: 1;
  }

  .lucky-button {
    width: auto;
    /* <-- ADDED: Button shrinks to fit content on desktop */
  }
}

/* Search Bar Wrapper for Autocomplete */
.search-bar-wrapper {
  position: relative;
  width: 100%;
}

/* Autocomplete Dropdown */
.search-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
}

.search-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.15s ease;
}

.search-result:last-child {
  border-bottom: none;
}

.search-result:hover {
  background-color: #f8f8f8;
}

.search-result-city {
  font-weight: 500;
  color: #1a1a1a;
}

.search-result-state {
  font-size: 0.8rem;
  color: #888;
}

/* Trust Badge */
.trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  color: #555;
  border-bottom: 1px solid #eee;
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #22c55e;
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.trust-text {
  color: #555;
}

.trust-text strong {
  color: #1a1a1a;
  font-weight: 700;
}

@media (max-width: 480px) {
  .trust-badge {
    font-size: 0.8rem;
    padding: 1rem;
  }

  .trust-icon {
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
  }
}

/* Main Content Area */
.main-content {
  padding: 1rem;
  max-width: 1300px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
}

/* --- NEW 4-COLUMN LIST STYLES --- */
.list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .list-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
}

.list-column {
  background-color: var(--card-background);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1.5rem;
}

.list-column h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.list-column ol {
  list-style: none;
  counter-reset: item;
  padding-left: 0;
}

.list-column li {
  counter-increment: item;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Style for the list number */
.list-column li::before {
  content: counter(item) ".";
  margin-right: 0.5rem;
  color: var(--footer-text);
  min-width: 1.5em;
}

.list-column a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  /* Make the link take up available space */
  flex: 1;
}

.list-column a:hover {
  color: var(--link-hover-color);
}

/* Arrow icon */
.list-column li svg {
  width: 16px;
  height: 16px;
  color: #aaa;
  transition: transform 0.3s ease;
}

.list-column a:hover+svg {
  transform: translateX(3px);
}


/* --- NEW MODAL (FLOATING WINDOW) STYLES --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.visible .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  font-size: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
  line-height: 1;
}

/* Re-using list styles for the modal */
.modal-content ol {
  list-style: none;
  counter-reset: item;
  padding-left: 0;
}

.modal-content li {
  counter-increment: item;
  margin-bottom: 0.75rem;
  display: flex;
}

.modal-content li::before {
  content: counter(item) ".";
  margin-right: 0.5rem;
  color: var(--footer-text);
  min-width: 1.5em;
}

.modal-content a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.modal-content a:hover {
  color: var(--link-hover-color);
}

.modal-content a::after {
  content: '↗';
  margin-left: 0.25rem;
  font-size: 0.8em;
}


/* --- STYLES for CITY PAGE (puducherry.astro) --- */
/* Renamed to avoid conflicts */
.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.recommendation-card {
  background-color: var(--card-background);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: cardFadeIn 0.5s forwards;
}

/* These .card styles are now .recommendation-card */
.recommendation-card h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.recommendation-card ol {
  list-style: none;
  counter-reset: item;
  padding-left: 0;
}

.recommendation-card li {
  counter-increment: item;
  margin-bottom: 0.75rem;
  display: flex;
}

.recommendation-card li::before {
  content: counter(item) ".";
  margin-right: 0.5rem;
  color: var(--footer-text);
  min-width: 1.5em;
}

.recommendation-card a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.recommendation-card a:hover {
  color: var(--link-hover-color);
}

.recommendation-card li a::after {
  content: '↗';
  margin-left: 0.25rem;
  font-size: 0.8em;
}

/* --- SITE HEADER STYLES --- */
.site-header {
  background-color: var(--background-color);
  border-bottom: 1px solid var(--card-border);
  padding: 0.75rem 1rem;
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  gap: 1rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-color);
  text-decoration: none;
  white-space: nowrap;
}

.header-logo-img {
  height: 20px;
  width: auto;
  transition: transform 0.2s ease;
}

.header-logo:hover .header-logo-img {
  transform: scale(1.1);
}

.header-submit {
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  background-color: #1a1a1a;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.header-submit:hover {
  background-color: #333;
}

/* Desktop header styles */
@media (min-width: 640px) {
  .site-header {
    padding: 1rem;
  }

  .header-logo {
    font-size: 1.25rem;
    gap: 0.5rem;
  }

  .header-logo-img {
    height: 24px;
  }

  .header-submit {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
}


/* --- SITE FOOTER STYLES --- */
.site-footer {
  background-color: #f9f9f9;
  border-top: 1px solid var(--card-border);
  padding: 2rem 1rem 0.2rem;
  color: var(--footer-text);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto 2rem auto;
}

.footer-column {
  font-size: 0.9rem;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.footer-text {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: #000;
  /* Original: black */
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover,
.footer-link:focus {
  color: #666;
  /* Hover: grey */
  text-decoration: none;
}

.footer-donate-button {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
  background-color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
}

.footer-donate-button:hover {
  background-color: #f4f4f4;
  border-color: #ccc;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--card-border);
  font-size: 0.9rem;
  color: #aaa;
  max-width: 1300px;
  margin: 0 auto;
}

/* Animations */
@keyframes cardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- "COMING SOON" PAGE STYLES --- */
.coming-soon-container {
  max-width: 700px;
  margin: 4rem auto;
  padding: 2rem;
  text-align: center;
  background-color: #f9f9f9;
  border-radius: 8px;
  border: 1px solid var(--card-border);
}

.coming-soon-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.coming-soon-text {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.coming-soon-button {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background-color: #1a1a1a;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
}

.coming-soon-button:hover {
  background-color: #333;
}

/* =================================
  NEW: FEEDBACK WIDGET STYLES
=================================
*/

.feedback-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  /* Take full width */
  margin: 0rem auto 3rem auto;
  padding-top: 2rem;
  /* Was a full box, now just padding */
  border-top: 0px solid var(--card-border);
  /* Just a simple top line */
  text-align: center;
}

.feedback-title {
  font-size: 1.25rem;
  /* Was 1.5rem */
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.button-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.feedback-button {
  font-size: 0.9rem;
  /* Was 1rem */
  font-weight: 600;
  padding: 0.5rem 1rem;
  /* Was 0.75rem 1.5rem */
  border-radius: 6px;
  /* Was 8px */
  border: 1px solid #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #fff;
}

.feedback-button.yes:hover {
  background-color: #e6f7ec;
  border-color: #a3d9b1;
}

.feedback-button.no:hover {
  background-color: #fdebee;
  border-color: #f7b5b5;
}

.feedback-button.submit {
  background-color: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
  width: 100%;
  max-width: 300px;
  /* Stop it from being full-width */
}

.feedback-button.submit:hover {
  background-color: #333;
  max-width: 300px;
}

.feedback-textarea {
  width: 100%;
  max-width: 500px;
  /* Constrain width */
  min-height: 100px;
  padding: 0.75rem;
  /* <-- Adds breathing room for text */
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  margin-bottom: 1rem;
  /* <-- Adds space below the box */
}

.feedback-skip {
  background: none;
  border: none;
  color: #888;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 1rem;
}

/* =================================
  FIXED: SUGGESTIONS STYLES
=================================
*/
.suggestions-container {
  /* max-width: 50%; */
  /* <-- This was part of the problem */
  max-width: 900px;
  /* <-- A stable max-width is better */
  margin: 4rem auto 2rem auto;
  padding-top: 2rem;
  border-top: 1px solid var(--card-border);
  text-align: center;
}

.suggestions-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--title-color);
  /* Use theme color */
}

.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 250px));
  gap: 1.5rem;
  /* More gap */
  justify-content: center;
}

.suggestion-card {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  /* This makes it a perfect square */
  border-radius: 12px;
  /* Match theme radius */
  overflow: hidden;
  color: white;
  text-decoration: none;
  background-size: cover;
  background-position: center center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  /* Add theme shadow */

  /* We add a max-width as a final safeguard */
  max-width: 250px;
}

.suggestion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  /* Darker hover shadow */
}

.suggestion-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0) 70%);
  /* Stronger gradient */
}

.suggestion-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  /* More padding */
  z-index: 1;
  text-align: center;
}

.suggestion-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  /* Add text shadow for readability */
}

/* --- 9. NEW MINIMAL HERO MAP ACTIONS --- */
.hero-actions-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  margin-top: 0.1rem;
}

.map-link-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
}

.map-link-wrapper svg {
  color: #666;
  width: 18px;
  height: 18px;
}

.link-hero-map {
  color: #666 !important;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.link-hero-map:hover {
  color: #000 !important;
}

.link-hero-map:visited,
.link-hero-map:active,
.link-hero-map:focus {
  color: #666 !important;
}

.btn-info-minimal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid #999;
  border-radius: 50%;
  background: none;
  color: #999;
  font-family: serif;
  font-style: italic;
  font-size: 0.8rem;
  cursor: pointer;
  margin-left: 0.5rem;
  transition: all 0.2s ease;
  padding: 0;
}

.btn-info-minimal:hover {
  border-color: #333;
  color: #333;
}

/* Tooltip */
.hero-tooltip {
  display: none;
  margin-top: 0.1rem;
  background-color: #fff;
  border: 1px solid #eee;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
  color: #555;
  line-height: 1;
  max-width: 280px;
  text-align: center;
  animation: fadeIn 0.2s ease-in-out;
  position: 90%;
  top: 0%;
  z-index: 20;
}

.hero-tooltip::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent #fff transparent;
}

.hero-tooltip.visible {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =================================
   SHOP PAGE STYLES
================================= */

/* Shop Controls */
.shop-controls {
  background: #fff;
  border-bottom: 1px solid var(--card-border);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

.shop-controls-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.shop-search {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0 1rem;
  background: #f9f9f9;
  height: 44px;
}

.shop-search svg {
  width: 18px;
  height: 18px;
  color: #888;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.shop-search input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
}

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.shop-select {
  height: 40px;
  padding: 0 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  min-width: 140px;
}

.shop-select:focus {
  outline: none;
  border-color: #999;
}

.favorites-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 40px;
  padding: 0 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.favorites-toggle-btn .heart-icon {
  width: 18px;
  height: 18px;
  color: #e74c3c;
}

.favorites-toggle-btn:hover {
  border-color: #e74c3c;
  background: #fff5f5;
}

.favorites-toggle-btn.active {
  border-color: #e74c3c;
  background: #e74c3c;
  color: #fff;
}

.favorites-toggle-btn.active .heart-icon {
  color: #fff;
  fill: #fff;
}

@media (min-width: 640px) {
  .shop-controls-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .shop-search {
    max-width: 300px;
  }
}

/* Shop Grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* Product Card */
.product-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.product-card.out-of-stock {
  opacity: 0.7;
}

.product-image-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f4f4f4;
  cursor: zoom-in;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.sold-out-badge,
.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.sold-out-badge {
  background: #1a1a1a;
  color: #fff;
}

.discount-badge {
  background: #e74c3c;
  color: #fff;
}

/* Favorite Button */
.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.favorite-btn:hover {
  transform: scale(1.1);
  background: #fff;
}

.favorite-btn svg {
  width: 20px;
  height: 20px;
}

.favorite-btn .heart-outline {
  color: #e74c3c;
  display: block;
}

.favorite-btn .heart-filled {
  color: #e74c3c;
  display: none;
}

.favorite-btn.is-favorite .heart-outline {
  display: none;
}

.favorite-btn.is-favorite .heart-filled {
  display: block;
}

/* Product Info */
.product-info {
  padding: 1rem;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.product-size {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.price-current {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
}

.price-original {
  font-size: 0.9rem;
  color: #999;
  text-decoration: line-through;
}

.buy-now-btn {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 6px;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s ease;
}

.buy-now-btn:hover:not(:disabled) {
  background: #333;
}

.buy-now-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Skeleton Loading */
.product-skeleton {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
}

.skeleton-image {
  aspect-ratio: 4 / 3;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-content {
  padding: 1rem;
}

.skeleton-line {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 0.75rem;
}

.skeleton-title {
  width: 80%;
  height: 16px;
}

.skeleton-price {
  width: 40%;
}

.skeleton-button {
  width: 100%;
  height: 42px;
  margin-top: 0.5rem;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* Empty State */
.empty-state {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  color: #888;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.clear-filters-btn {
  padding: 0.6rem 1.25rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clear-filters-btn:hover {
  border-color: #999;
  background: #f9f9f9;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 2rem;
}

.lightbox-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

#lightbox-image {
  max-width: 90vw;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  text-align: center;
  color: #fff;
  margin-top: 1.5rem;
}

.lightbox-caption h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.lightbox-caption p {
  font-size: 1rem;
}

.lightbox-caption .price-current {
  color: #fff;
}

.lightbox-caption .price-original {
  color: #999;
}

/* =================================
   IMAGE CAROUSEL STYLES
================================= */

/* Carousel Track */
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-track .product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: zoom-in;
}

.carousel-track .product-image.active {
  opacity: 1;
}

/* Disable hover zoom on carousel (interferes with navigation) */
.product-card:hover .carousel-track .product-image {
  transform: none;
}

/* Navigation Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-arrow svg {
  width: 16px;
  height: 16px;
  color: #1a1a1a;
}

.carousel-prev {
  left: 8px;
}

.carousel-next {
  right: 8px;
}

.product-image-wrapper:hover .carousel-arrow {
  opacity: 1;
}

.carousel-arrow:hover {
  transform: translateY(-50%) scale(1.1);
  background: #fff;
}

/* Dot Indicators */
.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.carousel-dot.active {
  background: #fff;
  transform: scale(1.2);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* =================================
   PLACE DETAIL PANEL
   Desktop: Side Panel (right)
   Mobile: Bottom Sheet
================================= */

/* --- Rich item button (looks like existing links) --- */
.place-item-rich {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  text-align: left;
  transition: color 0.3s ease;
}

.place-item-rich::after {
  content: 'ⓘ';
  margin-left: 0.35rem;
  font-size: 0.75em;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.place-item-rich:hover {
  color: var(--link-hover-color);
}

.place-item-rich:hover::after {
  opacity: 1;
}

/* --- Panel Overlay --- */
.place-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 899;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.place-panel-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* --- Panel Container (shared) --- */
.place-detail-panel {
  position: fixed;
  background: #fff;
  z-index: 900;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* --- MOBILE: Bottom Sheet --- */
@media (max-width: 767px) {
  .place-detail-panel {
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 55vh;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(100%);
    padding: 0 1.25rem 1.25rem;
  }

  .place-detail-panel.open {
    transform: translateY(0);
  }

  .panel-drag-handle {
    display: flex;
    justify-content: center;
    padding: 0.75rem 0 0.5rem;
    cursor: grab;
  }

  .panel-drag-handle span {
    width: 36px;
    height: 4px;
    background: #d0d0d0;
    border-radius: 2px;
  }
}

/* --- DESKTOP: Side Panel --- */
@media (min-width: 768px) {
  .place-detail-panel {
    top: 0;
    right: 0;
    width: 380px;
    height: 100vh;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
    padding: 1.5rem;
  }

  .place-detail-panel.open {
    transform: translateX(0);
  }

  .panel-drag-handle {
    display: none;
  }

  /* On desktop, overlay is lighter and optional — keep it for focus */
  .place-panel-overlay {
    background: rgba(0, 0, 0, 0.15);
  }
}

/* --- Panel Header --- */
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.panel-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.panel-emoji {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.panel-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
}

.panel-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #999;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.panel-close:hover {
  color: #333;
}

/* --- Panel Body --- */
.panel-body {
  flex: 1;
  overflow-y: auto;
}

.panel-section {
  margin-bottom: 1.25rem;
}

.panel-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.panel-section-icon {
  font-size: 0.85rem;
}

.panel-section-value {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.6;
  margin: 0;
}

.panel-description-text {
  font-size: 0.92rem;
  color: #333;
  line-height: 1.65;
  margin: 0;
}

/* --- Panel Footer --- */
.panel-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

.panel-maps-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.panel-maps-button:hover {
  background: #333;
  transform: translateY(-1px);
}

.panel-maps-button svg {
  flex-shrink: 0;
}