/* =========================
   ModernCuts – FLUID UI.CSS
   Theme: Green • Gold • Black
   Goal: Fluid layout + transparent UI to show background image
   Background: assets/img/bar.jpg
   ========================= */

:root{
  --green:#24d18f;
  --gold:#d6b85a;

  --text:#f3f7f5;
  --muted: rgba(243,247,245,.72);

  /* Transparent surfaces (no “frames”) */
  --surface: rgba(0,0,0,.30);
  --surface2: rgba(0,0,0,.22);

  --shadow: 0 18px 55px rgba(0,0,0,.45);
  --radius: 18px;
}

/* ===== Reset ===== */
*{ box-sizing:border-box; margin:0; padding:0; }
html{ overflow-x:hidden; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  min-height:100vh;
  color: var(--text);
}
a{ color:inherit; text-decoration:none; }

/* ===== TRUE background image (no blue overlay) ===== */
html::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("../img/bar.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: none;
  transform: scale(1.06);
  transform-origin: center;
  will-change: transform;
  animation: bgPan 28s ease-in-out infinite alternate;
}
html::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(0,0,0,0.00); /* 0 = raw image */
}
@keyframes bgPan{
  from { transform: scale(1.06) translate(0,0); }
  to   { transform: scale(1.14) translate(-34px,-20px); }
}

/* ===== FLUID container ===== */
.container{
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: clamp(14px, 2vw, 28px);
}

/* ================================
   HEADER (Transparent + Modern)
================================ */
.topbar{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,0,0,.30);
  backdrop-filter: blur(12px);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 0;
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: .4px;
}
.logo{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green), var(--gold));
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
}
.brandName{ font-size: 1.05rem; font-weight: 950; }
.brandSub{
  color: rgba(255,255,255,.78);
  font-size: .86rem;
  margin-top: 2px;
  font-weight: 750;
}

/* Links */
.navlinks{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap:wrap;
}
.navlinks a{
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255,255,255,.80);
  font-weight: 850;
  background: rgba(0,0,0,.18);
  transition: .15s ease;
}
.navlinks a:hover{
  background: rgba(0,0,0,.28);
  color: #fff;
}
.navlinks a.active{
  background: rgba(214,184,90,.18);
  color:#fff;
}

/* Actions */
.navActions{
  display:flex;
  gap: 10px;
  align-items:center;
}

@media (max-width: 560px){
  .navlinks{ display:none; }
}

/* ================================
   Buttons (Gold/Green accents)
================================ */
.btn{
  border: none;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
  transition: .2s ease;
}
.btn:hover{ background: rgba(0,0,0,.35); transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }

.btn.primary{
  background: linear-gradient(135deg, var(--green), rgba(36,209,143,.55));
  color: #061b14;
  font-weight: 950;
}

.btn.gold, .btn.good{
  background: linear-gradient(135deg, var(--gold), rgba(185,151,47,.65));
  color: #120e05;
  font-weight: 950;
}

.btn.outlineGold{
  background: rgba(0,0,0,.18);
  border: 2px solid rgba(214,184,90,.95);
}

/* ================================
   HERO (Fluid + Centered)
================================ */
.hero{
  padding: 22px 0 10px;
}

.heroCard{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(18px, 2vw, 34px);
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(12px);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.heroInner{
  text-align: center;
}

.kicker{
  display:inline-block;
  color: var(--gold);
  font-weight: 950;
  letter-spacing: .6px;
  margin-bottom: 12px;
}

h1{
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 12px;
}

.sub{
  color: rgba(255,255,255,.90);
  line-height: 1.65;
  max-width: 72ch;
  margin: 0 auto;
  font-weight: 700;
}

.heroActions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content:center;
  margin-top: 20px;
}

/* Bigger hero buttons */
.heroActions .btn{
  padding: 16px 26px;
  font-size: 1.05rem;
  font-weight: 950;
}

/* ================================
   Panels (transparent)
================================ */
.panel{
  margin-top: 14px;
  padding: clamp(14px, 1.6vw, 20px);
  background: rgba(0,0,0,.22);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
}

.panelHead{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap: 12px;
  margin-bottom: 12px;
}

.panelHead h2{
  font-size: 1.25rem;
  color: var(--green);
  font-weight: 950;
}

.panelHead p{
  color: rgba(36,209,143,.85);
  font-weight: 850;
}

/* ================================
   Inputs (green)
================================ */
.searchRow{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0 6px;
}

.input, select, textarea{
  flex: 1;
  min-width: 240px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 2px solid rgba(36,209,143,.95);
  background: rgba(0,0,0,.25);
  color: rgba(195,255,221,.95);
  font-weight: 850;
  outline:none;
}

.input::placeholder{
  color: rgba(36,209,143,.78);
  font-weight: 800;
}

.input:focus, select:focus, textarea:focus{
  box-shadow: 0 0 0 3px rgba(36,209,143,.25);
}

option{ background:#0a0a0a; color:#fff; }

/* ================================
   Cards Grid (fluid)
================================ */
.cards{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
  margin-top: 16px;
}

.card{
  overflow:hidden;
  display:flex;
  flex-direction:column;
  border-radius: 20px;
  background: rgba(0,0,0,.22);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 35px rgba(0,0,0,.28);
  transition: .2s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(0,0,0,.38);
}

/* Perfect image fit */
.thumb{
  height: clamp(220px, 26vw, 360px);
  background: rgba(0,0,0,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.thumb img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display:block;
}

.cardBody{
  padding: 14px 14px 12px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
}

.title{ font-weight: 950; letter-spacing:.2px; }
.price{ font-weight: 950; color: var(--gold); }

.meta{
  color: rgba(255,255,255,.80);
  line-height: 1.5;
  font-weight: 650;
}

.tag{
  display:inline-flex;
  gap: 8px;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.72);
  font-size: .85rem;
  width: fit-content;
}

.cardActions{
  padding: 14px;
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}

/* ================================
   Modal / Toast
================================ */
.overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.70);
  display:none;
  align-items:center;
  justify-content:center;
  padding: 18px;
  z-index:200;
}
.overlay.show{ display:flex; }

.modal{
  width: min(760px, 100%);
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(14px);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.modalHead, .modalFoot{ padding: 14px 16px; }
.modalBody{ padding: 16px; }

.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 14px 16px;
  display:none;
  z-index:500;
}
.toast.show{ display:block; }

/* ================================
   Booking modal: WHITE + BLACK
================================ */
#bookOverlay .modal{
  background: #ffffff;
  color: #070b08;
}
#bookOverlay .modalHead{
  border-bottom: 1px solid #e6e6e6;
  display:flex;
  justify-content: space-between;
  align-items:center;
}
#bookOverlay .modalBody{ text-align:center; }

#bookOverlay .twoCol{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  justify-items:center;
}

#bookOverlay .input,
#bookOverlay select,
#bookOverlay textarea{
  background:#fff;
  color:#070b08;
  border:1px solid #ccc;
  max-width: 420px;
  width:100%;
  text-align:center;
}
#bookOverlay .input:disabled{ background:#f5f5f5; color:#333; }

#bookOverlay .modalFoot{
  border-top: 1px solid #e6e6e6;
  display:flex;
  justify-content:center;
  gap: 10px;
  flex-wrap:wrap;
}

/* ================================
   Responsive
================================ */
@media (max-width: 1024px){
  #bookOverlay .twoCol{ grid-template-columns: 1fr; }
}
/* ===== CARDS: SHORTER + MORE HORIZONTAL ===== */
.cards{
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: clamp(12px, 1.4vw, 18px) !important;
}

/* Reduce image height so cards aren't vertical */
.thumb{
  height: clamp(150px, 14vw, 210px) !important;
}

/* Tighten card padding */
.cardBody{
  padding: 12px 12px 10px !important;
  gap: 8px !important;
}

/* Keep description from making card super tall */
.meta{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* show 2 lines max */
  overflow: hidden;
}
/* ===== MORE FLUID WIDTH ===== */
.container{
  width: min(1700px, 100%) !important;
}
/* ===== VISIBILITY / CONTRAST BOOST ===== */
.panel, .card, .heroCard{
  background: rgba(0,0,0,.38) !important; /* darker glass so text pops */
}

.title{
  color: rgba(255,255,255,.98) !important;
}

.meta, .tag{
  color: rgba(255,255,255,.82) !important;
}

.price{
  color: #ffd36b !important; /* brighter gold */
}

/* Inputs: brighter and readable */
.input, select, textarea{
  background: rgba(0,0,0,.35) !important;
  color: rgba(255,255,255,.92) !important;
  border-color: rgba(36,209,143,.95) !important;
}
.input::placeholder{
  color: rgba(255,255,255,.60) !important;
}

/* Buttons: clearer */
.btn{
  background: rgba(0,0,0,.35) !important;
  color: rgba(255,255,255,.95) !important;
}
.btn.primary{
  color:#04130d !important;
}
.btn.gold, .btn.good{
  color:#140f06 !important;
}
/* =========================
   JAMAICAN THEME OVERRIDES
   Green • Gold • Black • Red
   ========================= */

/* Core surfaces — remove gray */
.heroCard,
.panel,
.card,
.topbar{
  background: rgba(0,0,0,.55) !important;   /* true black glass */
  backdrop-filter: blur(10px);
}

/* Headings */
h1,
.title{
  color: #ffffff !important;
}

/* Green accents */
.kicker,
.panelHead h2{
  color: #1db954 !important; /* rich Jamaican green */
  font-weight: 900;
}

/* Gold highlights */
.price{
  color: #f7c948 !important; /* Jamaican gold */
  font-weight: 900;
}

.tag{
  background: rgba(247,201,72,.15) !important;
  color: #f7c948 !important;
  border: 1px solid rgba(247,201,72,.55);
}

/* Body text — clean white */
.meta,
.sub,
.panelHead p{
  color: rgba(255,255,255,.85) !important;
}

/* Inputs — black base + green focus */
.input,
select,
textarea{
  background: rgba(0,0,0,.65) !important;
  color: #ffffff !important;
  border: 2px solid #1db954 !important;
  font-weight: 700;
}

.input::placeholder{
  color: rgba(255,255,255,.65) !important;
}

.input:focus,
select:focus,
textarea:focus{
  box-shadow: 0 0 0 3px rgba(29,185,84,.35);
}

/* Buttons */
.btn{
  background: rgba(0,0,0,.6) !important;
  color: #ffffff !important;
}

/* Primary = GREEN */
.btn.primary{
  background: linear-gradient(135deg, #1db954, #128a3f) !important;
  color: #04130d !important;
  font-weight: 900;
}

/* Gold action buttons */
.btn.gold,
.btn.good{
  background: linear-gradient(135deg, #f7c948, #e0ad1f) !important;
  color: #1a1204 !important;
  font-weight: 900;
}

/* Optional red accent (use sparingly) */
.danger{
  background: linear-gradient(135deg, #e10600, #b00400) !important;
  color: #ffffff !important;
}

/* Cards: sharper, less muddy */
.card{
  box-shadow: 0 18px 40px rgba(0,0,0,.55) !important;
}

/* Navigation active link */
.navlinks a.active{
  background: rgba(29,185,84,.25) !important;
  color: #ffffff !important;
  border: 1px solid rgba(29,185,84,.55);
}

/* Remove any remaining gray tint */
*{
  --surface: transparent !important;
}
/* ===== Mobile: taller category field ===== */
@media (max-width: 600px){
  #styleCategory{
    min-height: 56px;
    padding: 16px 16px;
    font-size: 1.05rem;
    border-radius: 18px;
  }
}
@media (max-width: 600px){
  .searchRow{ flex-direction: column; }
  .searchRow .input, .searchRow select{ width: 100%; min-width: 100%; }
}
/* Space between "Choose a Style" heading and search */
.panelHead{
  margin-bottom: 22px; /* increases gap before search */
}
/* Make sure the overlay actually allows interaction when open */
#bookOverlay { 
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  pointer-events: none;
}

#bookOverlay.show {
  display: flex;
  pointer-events: auto;
}

/* Ensure the modal itself can be clicked/typed into */
#bookOverlay .modal {
  pointer-events: auto;
}
