/* Cape Choice Lodging - Unified theme + directory card styling
   Drop-in replacement for: /assets/css/style.css
   Goal: consistent brown/cream palette across ALL pages + restore card formatting.
*/

:root{
  /* Base Lodging palette (warm browns + cream + gold) */
  --site-light:  #f6f1e7;
  --site-white:  #ffffff;
  --site-ink:    #2b1c12;

  --site-main:   #6e5136; /* warm brown */
  --site-deep:   #4a3321; /* deep brown */
  --site-forest: #3a2719; /* darkest */
  --site-gold:   #c79a45; /* accent */

  /* Derived tokens used by the layout */
  --page-bg: var(--site-light);
  --page-text: var(--site-ink);

  --header-grad-start: #8a6845;
  --header-grad-mid:   var(--site-main);
  --header-grad-end:   var(--site-deep);
  --header-title:      #fffaf2;
  --header-subtitle:   #f2ddba;

  --nav-bg:        var(--site-deep);
  --nav-border:    rgba(0,0,0,.18);
  --nav-link:      #fff6e5;
  --nav-link-hover:#ffedc2;

  --card-bg:       var(--site-white);
  --card-border:   rgba(0,0,0,.08);
  --card-shadow:   rgba(0,0,0,.12);
  --card-title:    var(--site-deep);
  --muted:         #6e5136;

  --chip-bg:       #e3d3bb;
  --chip-bg-hover: #dccbb1;
  --chip-text:     var(--site-deep);

  --btn-bg:        var(--site-main);
  --btn-bg-hover:  var(--site-deep);
  --btn-text:      #fffaf2;

  --footer-bg:     var(--site-forest);
  --footer-text:   #f8f3eb;
  --footer-link:   #f2ddba;
  --footer-link-hover:#ffffff;

  --radius: 16px;
}

/* ---------- Base ---------- */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--page-bg);
  color: var(--page-text);
  line-height: 1.35;
}
a{ color: var(--site-main); text-decoration: none; }
a:hover{ color: var(--site-deep); text-decoration: underline; }

.container{
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 14px 32px;
}

/* ---------- Header / Nav ---------- */
.site-header{
  background: linear-gradient(135deg, var(--header-grad-start), var(--header-grad-mid), var(--header-grad-end));
  color: var(--header-title);
  border-bottom: 1px solid var(--nav-border);
}
.site-header .container{ padding-top: 18px; padding-bottom: 12px; }
.site-title{
  margin:0;
  font-size: 1.5rem;
  letter-spacing: .2px;
}
.site-subtitle{
  margin: 6px 0 0;
  color: var(--header-subtitle);
  font-size: .98rem;
}

.site-nav{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px 14px;
  background: var(--nav-bg);
  border-top: 1px solid rgba(255,255,255,.08);
}
.site-nav a{
  color: var(--nav-link);
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}
.site-nav a:hover{
  color: var(--nav-link-hover);
  background: rgba(255,255,255,.12);
  text-decoration:none;
}

/* ---------- Filters ---------- */
.filter-bar{
  background: #fffaf2;
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  border-radius: var(--radius);
  padding: 12px;
  margin: 14px 0;
}
.filter-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 560px){
  .filter-grid{ grid-template-columns: 1fr; }
}
.filter-bar label{
  display:block;
  font-size: .86rem;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 6px;
}
.filter-bar select,
.filter-bar input{
  width:100%;
  border:1px solid #cdb38d;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 1rem;
  background: #fff;
  color: var(--page-text);
  outline:none;
}
.filter-bar select:focus,
.filter-bar input:focus{
  border-color: var(--site-gold);
  box-shadow: 0 0 0 3px rgba(199,154,69,.18);
}

/* ---------- A–Z index chips ---------- */
.letters-index{
  display:flex;
  flex-wrap:wrap;
  gap: 6px;
  margin: 10px 0 18px;
}
.letters-index a{
  background: var(--chip-bg);
  color: var(--chip-text);
  font-weight: 900;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: .85rem;
}
.letters-index a:hover{
  background: var(--chip-bg-hover);
  text-decoration:none;
}

/* ---------- Letter sections ---------- */
.letter-section{
  margin: 18px 0 26px;
}
.letter-heading{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  border-left: 6px solid var(--site-gold);
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.65);
  box-shadow: 0 6px 14px rgba(0,0,0,.05);
}
.letter-heading h2{
  margin:0;
  color: var(--site-deep);
  font-size: 1.25rem;
}

/* ---------- Listing cards ---------- */
.listing-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}
.listing-card{
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
  padding: 12px;
}
.listing-title{
  margin:0;
  font-size: 1.08rem;
  font-weight: 950;
  color: var(--card-title);
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap: 8px;
}
.listing-title a.name-link{
  color: var(--card-title);
  text-decoration:none;
}
.listing-title a.name-link:hover{
  text-decoration: underline;
}
.listing-meta{
  margin-top: 8px;
  color: var(--muted);
  font-weight: 650;
  font-size: .95rem;
}
.listing-meta a{ color: var(--site-main); font-weight: 900; }
.tags{
  display:flex;
  flex-wrap:wrap;
  gap: 6px;
  margin-top: 10px;
}
.tag{
  background: rgba(227,211,187,.7);
  border: 1px solid rgba(0,0,0,.06);
  color: var(--site-deep);
  font-weight: 900;
  font-size: .78rem;
  padding: 5px 8px;
  border-radius: 999px;
}

.actions{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin-top: 12px;
}
.action-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 950;
  border: 1px solid rgba(0,0,0,.10);
  text-decoration:none;
}
.action-btn:visited{
  color: var(--btn-text);
}

.action-btn:hover,
.action-btn:focus,
.action-btn:active{
  background: var(--btn-bg-hover);
  color: var(--site-gold);
  text-decoration:none;
}


/* ---------- Featured pill badge (index listings) ---------- */
.featured-pill{
  display:inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: var(--site-deep);
  color: var(--header-subtitle);
  border: 1px solid var(--site-gold);
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.1;
  text-decoration:none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  white-space: nowrap;
}
.featured-pill:hover{
  background: var(--site-forest);
  color: var(--header-title);
  text-decoration:none;
}

/* ---------- Promo card (if promos.js is used) ---------- */
.promo-card{
  background: #fffaf2;
  border: 1px dashed rgba(0,0,0,.18);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: 0 10px 18px rgba(0,0,0,.06);
}
.promo-image{
  width: 110px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
}
.promo-content{ margin-top: 8px; }
.promo-title{ font-weight: 950; color: var(--site-deep); margin: 0 0 6px; }
.promo-text{ color: var(--muted); margin: 0 0 10px; }
.promo-button{
  display:inline-block;
  background: var(--site-gold);
  color: var(--site-ink);
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 950;
  text-decoration:none;
}
.promo-button:hover{ opacity:.92; text-decoration:none; }

/* ---------- Tier highlight glow (Featured page) ---------- */
.tier-highlight{
  box-shadow: 0 0 0 4px rgba(199,154,69,.35), 0 16px 32px rgba(0,0,0,.12) !important;
  transition: box-shadow .25s ease;
}

/* ---------- Footer ---------- */
.site-footer{
  margin-top: 26px;
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 18px 0;
}
.footer-inner{
  max-width: 980px;
  margin: 0 auto;
  padding: 0 14px;
}
.site-footer a{ color: var(--footer-link); font-weight: 900; }
.site-footer a:hover{ color: var(--footer-link-hover); text-decoration: underline; }

.share-container{
  background: rgba(255,255,255,.65);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: 0 10px 20px rgba(0,0,0,.06);
  padding: 12px;
  margin: 18px 0 0;
}


/* ---------- Featured page ---------- */
.featured-main{
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 14px 32px;
}

.intro-box{
  background: rgba(255, 250, 242, .96);
  border: 1px solid rgba(0,0,0,.10);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 10px 18px rgba(0,0,0,.06);
  margin-bottom: 14px;
}

.featured-intro .cta-button{
  margin-top: 10px;
}

.cta-button{
  display:inline-block;
  background: var(--site-gold);
  color: var(--site-ink);
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 950;
  text-decoration:none;
  border: 1px solid rgba(0,0,0,.08);
}
.cta-button:hover{ opacity:.92; text-decoration:none; }

.tier-badge{
  display:inline-block;
  margin-left: 8px;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--site-deep);
  color: var(--header-subtitle);
  border: 1px solid var(--site-gold);
  font-size: 0.78rem;
  font-weight: 950;
  vertical-align: middle;
}

.featured-list{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

.featured-card{
  overflow:hidden;
  border-radius: var(--radius);
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 10px 18px rgba(0,0,0,.06);
}

.featured-image{
  height: 160px;
  background-size: cover;
  background-position: center;
}

.featured-content{
  padding: 12px;
}

.featured-town{
  font-weight: 900;
  color: var(--site-deep);
  letter-spacing: .2px;
  margin-bottom: 6px;
}

.featured-name{
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: var(--site-ink);
}

.featured-description{
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.35;
}

.featured-tags{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.featured-tag{
  display:inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.08);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--site-ink);
}

.featured-links{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
}

/* Wider layout on larger screens */
@media (min-width: 720px){
  .featured-card{
    display:grid;
    grid-template-columns: 260px 1fr;
  }
  .featured-image{
    height: 100%;
    min-height: 180px;
  }
}

.back-to-listings{
  margin: 18px 0 10px;
  font-weight: 850;
}
.back-to-listings a{ color: var(--site-deep); }

