/* Basic styling for CapeChoiceRestaurants mobile web site */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #fdfdfd;
  color: #333;
  line-height: 1.5;
}

/* Header styling */
header {
  background: linear-gradient(
      to bottom,
      #4c8fe8 0%,
      #1a6bcf 60%,
      #004d91 100%
  );
  color: white;
  text-align: center;
  padding: 18px 10px;
  border-bottom: 3px solid #003d73;
}

header h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 1px;
}

header p {
  margin: 4px 0;
  font-size: 0.95rem;
}
/* Make header links gold for visibility */
header a {
  color: #ffeb80;
  text-decoration: none;
  font-weight: 600;
}

header a:hover {
  text-decoration: underline;
}


/* Navigation bar */
nav {
  background-color: #1a6bcf; /* medium ocean blue */
  padding: 8px 0;
  text-align: center;
  border-bottom: 2px solid #004d91;
}

nav a {
  color: #ffeb80; /* gold highlight */
  font-weight: 600;
  text-decoration: none;
  padding: 0 14px;
  font-size: 1rem;
}

nav a:hover {
  text-decoration: underline;
}

/* Container for content */
.container {
  padding: 1rem;
  max-width: 960px;
  margin: 0 auto;
}

/* Alphabetical section headings */
.letter-section {
  margin-top: 2rem;
}

.letter-section h2 {
  margin-bottom: 0.5rem;
  border-bottom: 2px solid #0b8457;
  padding-bottom: 0.25rem;
  color: #0b8457;
}

/* Restaurant list styling */
ul.restaurant-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.restaurant-list li {
  background: #fff;
  margin: 0.5rem 0;
  padding: 0.75rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

ul.restaurant-list li a.name {
  font-weight: bold;
  color: #046a38;
  text-decoration: none;
}

ul.restaurant-list li .address,
ul.restaurant-list li .phone {
  display: block;
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

/* Category heading on category pages */
.category-heading {
  margin-top: 1.5rem;
  font-size: 1.5rem;
  color: #046a38;
  text-align: center;
}

/* Letters index on home page */
.letters-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.letters-index a {
  padding: 0.4rem 0.6rem;
  background: #e6f4ea;
  color: #046a38;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem;
}

.letters-index a:hover {
  background: #d5ecd9;
}

/* Additional styles for clickable address and phone links */
ul.restaurant-list li a.address,
ul.restaurant-list li a.phone {
  display: block;
  font-size: 0.85rem;
  margin-top: 0.2rem;
  color: #333;
  text-decoration: none;
}

ul.restaurant-list li a.address:hover,
ul.restaurant-list li a.phone:hover {
  text-decoration: underline;
}

/* Shop page styles */
.shop-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.product-card {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

.product-card h3 {
  font-size: 1rem;
  margin: 0.5rem 0 0.25rem;
  color: #046a38;
}

.product-card .price {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: #555;
}

.product-card .buy-button {
  margin-top: auto;
  background: #0b8457;
  color: #fff;
  padding: 0.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
}

.product-card .buy-button:hover {
  background: #0c975f;
}

.letter-ad-slot { margin: 16px 0 32px; }
.ad-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fafafa;
}
.ad-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}
.ad-title { margin: 0 0 4px; font-size: 1.05rem; }
.ad-text { margin: 0 0 8px; color: #444; }
.ad-button {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  background: #0a64ff;
  color: #fff;
  text-decoration: none;
}
.ad-button:hover { opacity: 0.9; }

/* Compact promo cards under each letter section */
.letter-promo-slot {
  margin: 12px 0 20px;
}

.promo-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fafafa;
  max-width: 380px;   /* keep it small and neat */
  box-sizing: border-box;
}

.promo-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Text column */
.promo-content {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

/* Remove big default heading/p margins */
.promo-title {
  margin: 0 0 2px;
  font-size: 0.95rem;
}

.promo-text {
  margin: 0 0 4px;
  font-size: 0.85rem;
}

/* Small button */
.promo-button {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 8px;
  font-size: 0.8rem;
  border-radius: 6px;
  background: #0a64ff;
  color: #fff;
  text-decoration: none;
}

.promo-button:hover {
  opacity: 0.9;
}

#town-search-container {
  padding: 10px;
  text-align: center;
}
#town-search-container label {
  font-weight: 600;
  margin-right: 6px;
}
#town-search-container select {
  padding: 4px 6px;
  border-radius: 4px;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;   /* <-- THIS FIXES THE MISALIGNMENT */
  gap: 12px;
  padding: 10px;
}

#town-search-container,
#specialty-search-container {
  display: flex;
  align-items: center;   /* ensures label + select align */
  gap: 4px;
}

#town-search-container select,
#specialty-search-container select {
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 0.9rem;
}
.share-container {
  text-align: center;
  padding: 10px 0;
}

#share-btn {
  background: #0078ff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

#share-btn:hover {
  background: #005fcc;
}
.site-footer {
  margin-top: 24px;
  padding: 12px 8px 16px;
  background-color: #004d91; /* same deep blue as header/nav */
  color: #ffffff;
  text-align: center;
  font-size: 0.85rem;
}

.site-footer p {
  margin: 4px 0;
}

.site-footer a {
  color: #ffeb80;          /* soft gold highlight */
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  text-decoration: underline;
}

.filter-bar {
  background-color: #eaf3ff; /* gentle sky tint */
  border-bottom: 2px solid #c0d8ff;
  padding: 10px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  border-radius: 0 0 8px 8px;
}

#town-search-container label,
#specialty-search-container label {
  font-weight: 700;
  color: #003d73;
}

#town-select,
#specialty-select {
  background: white;
  border: 1px solid #004d91;
  border-radius: 5px;
  padding: 4px 6px;
  color: #004d91;
  font-weight: 600;
}
