/* =========================================
   Generic Directory Style (color via CSS variables)
   ========================================= */

:root {
  /* Page */
  --page-bg: #120207;
  --page-text: #f8f3eb;

  /* Header */
  --header-grad-start: #7b0015;
  --header-grad-mid:   #4e000f;
  --header-grad-end:   #240008;
  --header-border:     #140005;
  --header-title:      #ffecc2;
  --header-subtitle:   #ffecc2;
  --header-link:       #ffd86b;
  --header-link-hover: #ffea9a;

  /* Nav */
  --nav-bg:           #4e000f;
  --nav-border:       #140005;
  --nav-link:         #ffd86b;
  --nav-link-hover:   #ffea9a;

  /* Cards / list items */
  --card-bg:          #1d0b0b;
  --card-shadow:      rgba(0, 0, 0, 0.45);
  --card-heading:     #ffea9a;
  --card-text-muted:  #f3e1c2;

  /* Letter headings */
  --letter-heading-border: #ffd86b;
  --letter-heading-text:   #ffd86b;

  /* A–Z chips */
  --chip-bg:        #3b0910;
  --chip-bg-hover:  #5b0f19;
  --chip-text:      #ffea9a;

  /* Buttons (shop, ads, share, etc.) */
  --button-bg:        #c2212a;
  --button-bg-hover:  #9c141e;
  --button-text:      #ffffff;

  /* Secondary button / promo button */
  --button-alt-bg:       #c2212a;
  --button-alt-text:     #ffffff;
  --button-alt-hover-op: 0.9;

  /* Filter bar */
  --filter-bg:            #2a0207;
  --filter-border:        #6b111d;
  --filter-label:         #ffd86b;
  --filter-select-bg:     #1d0b0b;
  --filter-select-border: #ffd86b;
  --filter-select-text:   #ffea9a;

  /* Footer */
  --footer-bg:        #2a0207;
  --footer-text:      #f8f3eb;
  --footer-link:      #ffd86b;
  --footer-link-hover:#ffea9a;

  /* Global links in content */
  --link-text:        #ffd86b;
  --link-hover:       #ffea9a;
}

/* Basic page */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--page-bg);
  color: var(--page-text);
  line-height: 1.5;
}

/* Header */
header {
  background: linear-gradient(
    to bottom,
    var(--header-grad-start) 0%,
    var(--header-grad-mid)   60%,
    var(--header-grad-end)   100%
  );
  color: var(--header-title);
  text-align: center;
  padding: 18px 10px;
  border-bottom: 3px solid var(--header-border);
}

header h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 1px;
  color: var(--header-title);
}

header p {
  margin: 4px 0;
  font-size: 0.95rem;
  color: var(--header-subtitle);
}

/* Header / nav links */
header a {
  color: var(--header-link);
  text-decoration: none;
  font-weight: 600;
}
header a:hover {
  text-decoration: underline;
}

nav {
  background-color: var(--nav-bg);
  padding: 8px 0;
  text-align: center;
  border-bottom: 2px solid var(--nav-border);
}

nav a {
  color: var(--nav-link);
  font-weight: 600;
  text-decoration: none;
  padding: 0 14px;
  font-size: 1rem;
}

nav a:hover {
  color: var(--nav-link-hover);
  text-decoration: underline;
}

/* Main content container */
.container {
  padding: 1rem;
  max-width: 960px;
  margin: 0 auto;
  background: transparent;
}

/* Letter section headings */
.letter-section {
  margin-top: 2rem;
}

.letter-section h2 {
  margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--letter-heading-border);
  padding-bottom: 0.25rem;
  color: var(--letter-heading-text);
}

/* Directory list (generic) */
.directory-list,
ul.theaters-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.directory-item,
ul.theaters-list li {
  background: var(--card-bg);
  margin: 0.5rem 0;
  padding: 0.75rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px var(--card-shadow);
}

/* Name/title */
.directory-item h3,
ul.theaters-list li a.name {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.directory-item h3 a.name,
ul.theaters-list li a.name {
  font-weight: bold;
  color: var(--card-heading);
  text-decoration: none;
}
.directory-item h3 a.name:hover,
ul.theaters-list li a.name:hover {
  text-decoration: underline;
}

/* Address, town, phone, etc. */
.directory-item .address,
.directory-item .town,
.directory-item .phone,
ul.theaters-list li .address,
ul.theaters-list li .phone {
  display: block;
  font-size: 0.85rem;
  margin-top: 0.2rem;
  color: var(--card-text-muted);
}

.directory-item .address a,
.directory-item .phone a,
ul.theaters-list li a.address,
ul.theaters-list li a.phone {
  color: var(--card-text-muted);
  text-decoration: none;
}
.directory-item .address a:hover,
.directory-item .phone a:hover,
ul.theaters-list li a.address:hover,
ul.theaters-list li a.phone:hover {
  text-decoration: underline;
}

/* Meta line for categories/services */
.directory-item .meta {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--card-text-muted);
}

/* Letters index */
.letters-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.letters-index a {
  padding: 0.4rem 0.6rem;
  background: var(--chip-bg);
  color: var(--chip-text);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem;
}

.letters-index a:hover {
  background: var(--chip-bg-hover);
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background-color: var(--filter-bg);
  border-bottom: 2px solid var(--filter-border);
  border-radius: 0 0 8px 8px;
}

.filter-bar > div {
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-bar label {
  font-weight: 700;
  color: var(--filter-label);
}

.filter-bar select {
  padding: 4px 6px;
  border-radius: 5px;
  border: 1px solid var(--filter-select-border);
  background: var(--filter-select-bg);
  color: var(--filter-select-text);
  font-weight: 600;
}

/* Generic button styles (share, promos, etc.) */
.share-container {
  text-align: center;
  padding: 10px 0;
}

#share-btn {
  background: var(--button-bg);
  color: var(--button-text);
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}
#share-btn:hover {
  background: var(--button-bg-hover);
}

/* Shop cards (generic) */
.shop-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.product-card {
  background: var(--card-bg);
  border-radius: 6px;
  box-shadow: 0 2px 4px var(--card-shadow);
  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: var(--card-heading);
}

.product-card .price {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--card-text-muted);
}

.product-card .buy-button {
  margin-top: auto;
  background: var(--button-bg);
  color: var(--button-text);
  padding: 0.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
}
.product-card .buy-button:hover {
  background: var(--button-bg-hover);
}

/* Ad / promo cards */
.letter-ad-slot {
  margin: 16px 0 32px;
}

.ad-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.12);
}

.ad-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}

.ad-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--card-heading);
}
.ad-text {
  margin: 0 0 8px;
  color: var(--card-text-muted);
}

.ad-button {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--button-alt-bg);
  color: var(--button-alt-text);
  text-decoration: none;
}
.ad-button:hover {
  opacity: var(--button-alt-hover-op);
}

.letter-promo-slot {
  margin: 12px 0 20px;
}

.promo-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.12);
  max-width: 380px;
  box-sizing: border-box;
}

.promo-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.promo-content {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.promo-title {
  margin: 0 0 2px;
  font-size: 0.95rem;
  color: var(--card-heading);
}

.promo-text {
  margin: 0 0 4px;
  font-size: 0.85rem;
  color: var(--card-text-muted);
}

.promo-button {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 8px;
  font-size: 0.8rem;
  border-radius: 6px;
  background: var(--button-alt-bg);
  color: var(--button-alt-text);
  text-decoration: none;
}
.promo-button:hover {
  opacity: var(--button-alt-hover-op);
}

/* Footer */
.site-footer {
  margin-top: 24px;
  padding: 12px 8px 16px;
  background-color: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  font-size: 0.85rem;
}

.site-footer p {
  margin: 4px 0;
}

.site-footer a {
  color: var(--footer-link);
  text-decoration: none;
  font-weight: 600;
}
.site-footer a:hover {
  color: var(--footer-link-hover);
  text-decoration: underline;
}

/* Global content links (About page, etc.) */
a {
  color: var(--link-text);
  text-decoration: none;
  font-weight: 600;
}
a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.featured-listing {
  background: linear-gradient(135deg, #fff6e5, #ffffff);
  border-left: 5px solid #c79a45;
  padding: 0.75rem;
  border-radius: 8px;
  position: relative;
}

.featured-badge {
  position: absolute;
  top: -8px;
  right: 10px;
  background: #c79a45;
  color: #ffffff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.featured-badge:hover {
  background: #a97f3a;
  text-decoration: underline;
}

/* ============================
   Featured Listings Page
   ============================ */

.featured-page body {
  background: #f6f1e7;
  color: #3f2b1b;
}

/* Header */
.featured-header {
  background: linear-gradient(135deg, #7b5b3b, #b59163);
  color: #fff;
  text-align: center;
  padding: 1.5rem 1rem;
}

.featured-header h1 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
}

.featured-header p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* Main layout */
.featured-main {
  max-width: 960px;
  margin: 1.5rem auto 2.5rem;
  padding: 0 1rem 2rem;
}

/* Intro box */
.intro-box {
  background: #fffaf2;
  border-radius: 12px;
  padding: 1.2rem 1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
  border: 1px solid #e3d3bb;
  
}

.intro-box h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

/* Darker Featured intro box */
.featured-page .intro-box.featured-intro {
  background: linear-gradient(135deg, #8a6845, #6e5136);
  color: #fff;
  border: 1px solid #5a412a;
}

.featured-page .intro-box.featured-intro h2 {
  color: #fff;
}

.featured-page .intro-box.featured-intro p,
.featured-page .intro-box.featured-intro li {
  color: #f5efe6;
}

.featured-page .intro-box.featured-intro a.cta-button {
  background: #ffedc2;
  color: #5a3b1e;
}

/* Featured cards */
.featured-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.featured-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  border: 1px solid #e0d2c0;
}

.featured-image {
  flex: 0 0 38%;
  min-height: 150px;
  background-size: cover;
  background-position: center;
}

.featured-content {
  flex: 1;
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.featured-town {
  font-size: 0.85rem;
  color: #81624a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.featured-name {
  font-size: 1.25rem;
  margin: 0;
}

.featured-description {
  font-size: 0.95rem;
  line-height: 1.4;
}

.featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.featured-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #f0e0c9;
  color: #4a3321;
}

.featured-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.featured-links a {
  text-decoration: none;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #b8864b;
  color: #5e3b1f;
  background: #fff8ec;
}

.featured-links a:hover {
  background: #f2ddba;
}

.phone-link::before {
  content: "📞 ";
}

.featured-footer {
  font-size: 0.8rem;
  color: #8a6c4d;
}

/* CTA */
.cta-box {
  margin-top: 2.2rem;
  background: #7b5b3b;
  color: #fff;
  border-radius: 16px;
  padding: 1.4rem 1.2rem;
}

.cta-button {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: #ffedc2;
  color: #5a3b1e;
  font-weight: 600;
  text-decoration: none;
}

/* Back link */
.back-to-listings {
  margin-top: 2rem;
  text-align: center;
}

.back-to-listings a {
  font-weight: 600;
  text-decoration: none;
  color: #7b5b3b;
}

/* Mobile */
@media (max-width: 720px) {
  .featured-card {
    flex-direction: column;
  }
  .featured-image {
    width: 100%;
    min-height: 180px;
  }
}
/* Force Featured page colors to override the site theme */
html.featured-page body {
  background: #f6f1e7;
  color: #3f2b1b;
}

html.featured-page .featured-header,
html.featured-page .featured-header * {
  color: #fff;
}