/* Basic styling for CapeCodTheaters 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.theaters-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.theaters-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.theaters-list li a.name {
  font-weight: bold;
  color: #046a38;
  text-decoration: none;
}

ul.theaters-list li .address,
ul.theaters-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.theaters-list li a.address,
ul.theaters-list li a.phone {
  display: block;
  font-size: 0.85rem;
  margin-top: 0.2rem;
  color: #333;
  text-decoration: none;
}

ul.theaters-list li a.address:hover,
ul.theaters-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;
}
/* ============================
   THEATER RED & GOLD THEME OVERRIDES
   (Add this block at the END of style.css)
   ============================ */

/* Overall page */
body {
  background: #120207;        /* dark theater interior */
  color: #f8f3eb;             /* warm off-white text */
}

/* Header: rich red curtain look */
header {
  background: linear-gradient(
    to bottom,
    #7b0015 0%,   /* bright curtain red */
    #4e000f 60%,  /* deeper red */
    #240008 100%  /* almost black-red */
  );
  border-bottom: 3px solid #140005;
}

header h1,
header p {
  color: #ffecc2;
}

/* Header links in gold */
header a {
  color: #ffd86b;
  text-decoration: none;
  font-weight: 600;
}

header a:hover {
  text-decoration: underline;
}

/* Navigation bar */
nav {
  background-color: #4e000f;
  border-bottom: 2px solid #140005;
}

nav a {
  color: #ffd86b;
  font-weight: 600;
}

nav a:hover {
  text-decoration: underline;
}

/* Container stays the same layout-wise, just slightly lighter bg */
.container {
  background: transparent;
}

/* Letter section headings – marquee gold */
.letter-section h2 {
  border-bottom: 2px solid #ffd86b;
  color: #ffd86b;
}

/* Theater list cards */
ul.theaters-list li {
  background: #1d0b0b;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.45);
}

ul.theaters-list li a.name {
  color: #ffea9a;    /* warm marquee gold */
}

ul.theaters-list li .address,
ul.theaters-list li .phone,
ul.theaters-list li a.address,
ul.theaters-list li a.phone {
  color: #f3e1c2;
}

/* Category page heading */
.category-heading {
  color: #ffd86b;
}

/* Letters index: tickets/chip look */
.letters-index a {
  background: #3b0910;
  color: #ffea9a;
  border-radius: 4px;
}

.letters-index a:hover {
  background: #5b0f19;
}

/* Shop cards */
.product-card {
  background: #1d0b0b;
  box-shadow: 0 2px 4px rgba(0,0,0,0.45);
}

.product-card h3 {
  color: #ffea9a;
}

.product-card .price {
  color: #f2d7aa;
}

/* Buy buttons – glowing gold */
.product-card .buy-button {
  background: #c5932b;
  color: #1a0802;
}

.product-card .buy-button:hover {
  background: #e0aa37;
}

/* Ad & promo cards */
.ad-card,
.promo-card {
  background: #1a0508;
  border-color: #5e101a;
}

.ad-button,
.promo-button {
  background: #c2212a;   /* red button */
  color: #fff;
}

.ad-button:hover,
.promo-button:hover {
  opacity: 0.9;
}

/* Filter bar (town/specialty) */
.filter-bar {
  background-color: #2a0207;
  border-bottom: 2px solid #6b111d;
}

#town-search-container label,
#specialty-search-container label {
  color: #ffd86b;
}

#town-select,
#specialty-select {
  background: #1d0b0b;
  border: 1px solid #ffd86b;
  color: #ffea9a;
}

/* Share button */
#share-btn {
  background: #c2212a;
  color: #fff;
}

#share-btn:hover {
  background: #9c141e;
}

/* Footer: dark red with gold links */
.site-footer {
  background-color: #2a0207;
  color: #f8f3eb;
}

.site-footer a {
  color: #ffd86b;
}

.site-footer a:hover {
  text-decoration: underline;
}
/* ============================
   ABOUT PAGE LINK COLORS
   Make content links match the theater gold theme
   ============================ */

.about-page a,
.page-content a,
main a {
  color: #ffd86b;         /* Gold */
  text-decoration: none;
  font-weight: 600;
}

.about-page a:hover,
.page-content a:hover,
main a:hover {
  color: #ffea9a;         /* Brighter gold on hover */
  text-decoration: underline;
}
/* UNIVERSAL LINK COLOR FIX */
a {
  color: #ffd86b !important;       /* gold */
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  color: #ffea9a !important;       /* brighter gold */
  text-decoration: underline;
}