/* =====================================================================
   ILÉ THEME — override layer for CheapShoping
   ---------------------------------------------------------------------
   Load AFTER css/style.css. Everything is scoped to `body.ile`, so:
     • remove the `ile` class from <body>  → the old look returns instantly
     • no markup, route, form field, or data binding is touched
   Sections:
     0. Tokens          5. Page header + hero       10. Footer + newsletter
     1. Base type       6. Search card (filter)     11. Pagination / lists
     2. Buttons         7. Cards + stats            12. Shop "show" page
     3. Forms           8. Category slider          13. Responsive / a11y
     4. Header / nav    9. Section headings
   ===================================================================== */


/* ---------- 0. TOKENS ------------------------------------------------ */
body.ile {
  --ink: #191816;
  --ink-soft: #4f4b44;
  --ink-faint: #8a8479;
  --paper: #fbf9f5;
  --paper-raised: #ffffff;
  --paper-sunken: #f2eee6;
  --line: #e6e0d4;
  --line-strong: #cfc6b5;

  --brand: #22382c;
  --brand-hover: #16261d;
  --brand-light: #e8eee9;
  --accent: #b87c38;
  --accent-light: #f7ede0;
  --sale: #9e3d34;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-subtle: 0 1px 3px rgba(25,24,22,.04), 0 4px 12px rgba(25,24,22,.04);
  --shadow-card: 0 4px 20px -4px rgba(25,24,22,.08), 0 1px 3px rgba(25,24,22,.05);
  --shadow-hover: 0 14px 32px -8px rgba(25,24,22,.14), 0 2px 6px rgba(25,24,22,.06);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Header / footer / dark sections.
     #0E2E38 = your current teal (safe if the logo PNG has its own background).
     Switch to #131210 for the exact reference look if the logo is transparent. */
  --ile-dark: #0E2E38;

  /* Re-point the template's own variables so style.css rules follow the theme */
  --primary: var(--brand);
  --light: var(--paper-sunken);
  --dark: var(--ile-dark);
}


/* ---------- 1. BASE TYPE -------------------------------------------- */
body.ile {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
:where(body.ile) a { color: var(--brand); text-decoration: none; }   /* zero-specificity: never beats class rules */

.ile .container-xxl.bg-white.p-0 { background: var(--paper) !important; }
.ile .bg-white { background-color: var(--paper-raised) !important; }
.ile .bg-light { background-color: var(--paper-sunken) !important; }
.ile .bg-dark  { background-color: var(--ile-dark) !important; }

.ile h1, .ile h2, .ile h3, .ile h4,
.ile .h1, .ile .h2, .ile .h3, .ile .h4, .ile .display-3 {
  font-family: var(--font-display) !important;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--ink);
}
.ile h5, .ile h6 { font-family: var(--font-body); font-weight: 600; color: var(--ink); }
.ile .display-3 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 400; line-height: 1.1; letter-spacing: -.03em; }

/* Brand-coloured words inside headlines: italic serif, sentence case */
.ile h1 .text-primary, .ile h2 .text-primary {
  font-style: italic; font-weight: 500;
  text-transform: none !important;
  color: var(--brand) !important;
}
.ile .bg-dark h1 .text-primary,
.ile [style*="seller-bg"] h1 .text-primary { color: var(--accent) !important; }

.ile .text-primary   { color: var(--brand) !important; }
.ile .bg-primary     { background-color: var(--brand) !important; }
.ile .border-primary { border-color: var(--brand) !important; }
.ile .text-warning   { color: var(--accent) !important; }       /* "Disclaimer:" label */
.ile .text-body      { color: var(--ink-soft) !important; }

.ile .rounded        { border-radius: var(--radius-m) !important; }
.ile .border.rounded { border-color: var(--line) !important; }
.ile .border.rounded.text-center.p-4 { background: var(--paper-raised); box-shadow: var(--shadow-subtle); }


/* ---------- 2. BUTTONS ---------------------------------------------- */
.ile .btn {
  border-radius: 999px;
  font-weight: 500; font-size: 14px; letter-spacing: -.01em;
  text-transform: none;
  transition: all .2s cubic-bezier(.16,1,.3,1);
}
.ile .btn:active { transform: scale(.97); }
.ile .btn-primary,
.ile .btn.btn-primary {
  background: var(--brand) !important; border-color: var(--brand) !important; color: #fbf9f5 !important;
}
.ile .btn-primary:hover, .ile .btn-primary:focus, .ile .btn-primary:active {
  background: var(--brand-hover) !important; border-color: var(--brand-hover) !important;
  box-shadow: 0 4px 14px rgba(22,38,29,.22);
}
.ile .btn-light {
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4);
  backdrop-filter: blur(6px);
}
.ile .btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.ile .btn-outline-light { border-color: rgba(255,255,255,.35); }
.ile .btn-success { background: #1f7a4d; border-color: #1f7a4d; }
.ile .btn-success:hover { background: #17613c; border-color: #17613c; }
.ile .btn-lg-square, .ile .back-to-top { border-radius: 50% !important; }


/* ---------- 3. FORMS (styling only — names, ids, actions untouched) -- */
.ile .form-control, .ile .form-select {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  padding: .65rem .9rem; font-size: 14px;
  background-color: var(--paper-raised); color: var(--ink);
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ile .form-control.rounded-1 { border-radius: var(--radius-s) !important; }
/* beats the inline <style> in layouts/app2 that forces #5e72e4 */
.ile .form-control:focus, .ile .form-select:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px var(--brand-light) !important;
  outline: 0;
}
.ile .booking label, .ile label.form-label {
  display: block; margin-bottom: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-soft);
}


/* ---------- 4. HEADER / NAV ----------------------------------------- */
/* requires class `ile-header` on the root <div> of header.blade.php */
.ile-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ile-dark) !important;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ile-header .navbar,
.ile-header .bg-dark { background: transparent !important; }

.ile-header .navbar .navbar-nav .nav-link {
  padding: 22px 14px;
  font-family: var(--font-body);
  font-size: 13.5px; font-weight: 500; letter-spacing: 0; text-transform: none;
  color: #c4beaf;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.ile-header .navbar .navbar-nav .nav-link:hover,
.ile-header .navbar .navbar-nav .nav-link.active,
.ile-header .navbar .navbar-nav .nav-link.show { color: #fff; border-bottom-color: var(--accent); }
.ile-header .navbar-toggler { border-color: rgba(255,255,255,.3); }

.ile-header .navbar .btn.rounded-0 {
  border-radius: 999px !important;
  padding: 10px 22px !important;
  margin: 0 0 0 8px;
  background: var(--accent) !important; border-color: var(--accent) !important; color: #1f1406 !important;
  font-weight: 600;
}
.ile-header .navbar .btn.rounded-0:hover { filter: brightness(1.06); box-shadow: none; }

.ile .dropdown-menu {
  border: 1px solid var(--line); border-radius: var(--radius-m) !important;
  box-shadow: var(--shadow-card); padding: 8px; background: var(--paper-raised);
}
.ile .dropdown-item { border-radius: var(--radius-s); font-size: 13.5px; color: var(--ink-soft); padding: 8px 12px; }
.ile .dropdown-item:hover, .ile .dropdown-item:focus { background: var(--brand-light); color: var(--brand); }

@media (max-width: 991.98px) {
  .ile-header .navbar .navbar-nav { background: transparent; border-top: 1px solid rgba(255,255,255,.1); }
  .ile-header .navbar .navbar-nav .nav-link { padding: 10px 0; border-bottom: 0; }
  .ile-header .navbar .dropdown-menu { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
  .ile-header .navbar .dropdown-item { color: #c4beaf; }
}


/* ---------- 5. PAGE HEADER + HOME HERO ------------------------------ */
.ile .page-header { background-size: cover; background-position: center; }
.ile .page-header .page-header-inner {
  background: linear-gradient(90deg, rgba(17,16,14,.92) 0%, rgba(17,16,14,.72) 48%, rgba(17,16,14,.4) 100%);
}
.ile .page-header h1 { font-weight: 400; color: #fff; }
.ile .breadcrumb { font-size: 12px; letter-spacing: .08em; }
.ile .breadcrumb-item a { color: var(--accent); }
.ile .breadcrumb-item + .breadcrumb-item::before { color: #8e887a; }

.ile #header-carousel .carousel-caption {
  background: linear-gradient(90deg, rgba(17,16,14,.92) 0%, rgba(17,16,14,.7) 48%, rgba(17,16,14,.3) 100%);
  text-align: left;
  align-items: flex-start !important;
  justify-content: center !important;
  padding-left: max(24px, calc((100vw - 1220px) / 2 + 24px));
  padding-right: 24px;
}
.ile #header-carousel .carousel-caption > div { margin: 0 !important; padding-left: 0 !important; }
.ile #header-carousel .display-3 { color: #fff; }
.ile #header-carousel img { filter: brightness(.92); }


/* ---------- 6. SEARCH / FILTER CARD (look only) --------------------- */
.ile .booking .bg-white.shadow {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card) !important;
}
.ile .booking h2 { font-size: 24px; margin-bottom: 4px; }
.ile .booking p { color: var(--ink-soft); font-size: 14px; margin-bottom: 18px; }


/* ---------- 7. CARDS, STATS, SERVICE ITEMS -------------------------- */
.ile .service-item {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-subtle);
  padding: 28px 20px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.ile .service-item:hover {
  background: var(--paper-raised) !important;
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
/* cancel the template's "turn everything white on hover" */
.ile .service-item:hover h5,
.ile .service-item:hover h7,
.ile .service-item:hover p { color: var(--ink) !important; }
.ile .service-item:hover .fa,
.ile .service-item:hover .fas { color: var(--brand) !important; }
.ile .service-item:hover .service-icon { background: transparent !important; }
.ile .service-item .service-icon { border-color: var(--line) !important; }
.ile .service-item h7 { display: block; font-size: 13px; font-weight: 500; color: var(--ink); margin-top: 6px; }

.ile .card { border-color: var(--line); border-radius: var(--radius-m); }
.ile .border.p-1.wow, .ile .border.p-4 { border-color: var(--line) !important; border-radius: var(--radius-m); }

/* PRODUCT CARD — components/shop-card.blade.php (.room-item)
   Compact card, used on home, "Keep Browsing" and the shop index. CSS only; markup untouched. */
.ile .room-item {
  container-type: inline-size;                 /* lets the card adapt to its own width */
  display: flex; flex-direction: column; height: 100%;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-m) !important;
  box-shadow: var(--shadow-subtle) !important;
  transition: transform .22s cubic-bezier(.16,1,.3,1), box-shadow .22s ease, border-color .22s ease;
}
.ile .room-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover) !important; border-color: var(--line-strong); }

/* IMAGE: 4:3 frame, cropped to fill — never stretched */
.ile .room-item > .position-relative { overflow: hidden; background: var(--paper-sunken); }
.ile .room-item .position-relative img {
  width: 100% !important;
  height: auto !important;                     /* beats the inline height:207px */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease;
}
.ile .room-item:hover .position-relative img { transform: scale(1.05); }

/* PRICE: solid brand pill, top-left of the image (readable on any photo) */
.ile .room-item small.position-absolute {
  top: 8px !important; left: 8px !important; right: auto !important;
  transform: none !important; margin: 0 !important;
  background: var(--brand) !important; color: #fff !important;
  border-radius: 999px !important; padding: 4px 10px !important;
  font-size: 12px; font-weight: 600; letter-spacing: -.01em;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

/* BODY */
.ile .room-item > .p-4 {
  display: flex; flex-direction: column; flex: 1;
  padding: 12px !important; margin-top: 0 !important; max-height: none !important;
}
.ile .room-item h5 {
  height: auto !important; min-height: 2.6em;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 600; line-height: 1.3;
  color: var(--ink) !important; margin-bottom: 4px !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ile .room-item p.text-capitalize {
  font-size: 10.5px; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase !important; color: var(--ink-faint);
  margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ile .room-item .fa-tag { color: var(--accent) !important; margin-right: 6px !important; }
.ile .room-item p.text-body {
  font-size: 12px; line-height: 1.45; margin-bottom: 8px !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ile .room-item .small-icons small { font-size: 11.5px; font-weight: 600; }
.ile .room-item .small-icons .fa { margin-right: 4px !important; }

/* BUTTONS: pinned to the bottom so every card lines up */
.ile .room-item .d-flex.justify-content-between.my-2 { margin: auto 0 0 !important; padding-top: 10px; gap: 6px; }
.ile .room-item .btn {
  flex: 1; padding: 7px 6px !important; font-size: 12px; font-weight: 600;
  border-radius: 999px !important; white-space: nowrap;
}
.ile .room-item .btn-dark {
  background: transparent !important; color: var(--ink) !important;
  border: 1px solid var(--line-strong) !important;
}
.ile .room-item .btn-dark:hover { background: var(--paper-sunken) !important; border-color: var(--ink) !important; }

/* very narrow cards (phones, 2-up): stack the buttons instead of squeezing them */
@container (max-width: 190px) {
  .room-item .d-flex.justify-content-between.my-2 { flex-direction: column; }
  .room-item p.text-body { display: none; }      /* keep phone cards short; full text is on the item page */
}

/* GRID DENSITY — affects only rows that contain product cards:
   2-up phones · 3-up tablets · 4-up laptops · 5-up wide screens */
.ile .row:has(> [class*="col-"] > .room-item) { --bs-gutter-x: 1rem; --bs-gutter-y: 1rem; }
.ile .row > [class*="col-"]:has(> .room-item) { flex: 0 0 auto; width: 50%; }
@media (min-width: 768px)  { .ile .row > [class*="col-"]:has(> .room-item) { width: 33.3333%; } }
@media (min-width: 992px)  { .ile .row > [class*="col-"]:has(> .room-item) { width: 25%; } }
@media (min-width: 1200px) { .ile .row > [class*="col-"]:has(> .room-item) { width: 20%; } }


/* ---------- 8. CATEGORY SLIDER (home) ------------------------------- */
.ile .category-slider-btn { border-color: var(--line); box-shadow: var(--shadow-subtle); color: var(--ink); }
.ile .category-slider-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.ile .category-slide .service-item { padding: 18px 12px; }


/* ---------- 9. SECTION HEADINGS ------------------------------------- */
.ile .section-title {
  font-family: var(--font-body) !important;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent) !important;
  padding: 0 !important; margin-bottom: 12px;
}
.ile .section-title::before {
  content: ""; display: inline-block; position: static; transform: none;
  width: 24px; height: 1px; margin: 0 10px 0 0; vertical-align: middle;
  background: var(--accent);
}
.ile .section-title::after { display: none !important; }


/* ---------- 10. FOOTER + NEWSLETTER --------------------------------- */
.ile .newsletter .col-lg-10.border,
.ile .newsletter .border.rounded { border-color: var(--line) !important; border-radius: var(--radius-l) !important; }
.ile .newsletter .bg-white { box-shadow: var(--shadow-card); }

.ile .footer { background: var(--ile-dark) !important; color: #c4beaf; border-top: 1px solid rgba(255,255,255,.06); }
.ile .footer .section-title { margin-bottom: 16px !important; }
.ile .footer p, .ile .footer .btn.btn-link { font-size: 13.5px; color: #c4beaf; }
.ile .footer .btn.btn-link:hover { color: #fff; letter-spacing: 0; }
.ile .footer a { color: #c4beaf; }
.ile .footer a:hover { color: #fff; }
.ile .footer .btn-social, .ile .footer .custom-svg {
  border-color: rgba(255,255,255,.3); color: #fff; border-radius: 50%;
}
.ile .footer .btn-social:hover, .ile .footer .custom-svg:hover {
  background: var(--accent); border-color: var(--accent); color: #1f1406;
}


/* ---------- 11. PAGINATION / LISTS ---------------------------------- */
.ile .pagination { gap: 6px; }
.ile .pagination .page-link {
  border: 1px solid var(--line); border-radius: 999px !important;
  min-width: 38px; text-align: center; color: var(--ink-soft); background: var(--paper-raised);
}
.ile .pagination .page-link:hover { border-color: var(--brand); color: var(--brand); background: var(--paper-raised); }
.ile .pagination .page-item.active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }
.ile .pagination .page-item.disabled .page-link { color: var(--ink-faint); background: var(--paper-sunken); }

.ile .list-group-item { border-color: var(--line); background: var(--paper-raised); padding: 12px 16px; }
.ile .badge.bg-info, .ile .badge.bg-primary { background-color: var(--brand) !important; }   /* unifies the odd "2" badge on About */


/* ---------- 12. SHOP "SHOW" PAGE ------------------------------------ */
.ile p.text-primary.fs-3 { color: var(--ink) !important; font-weight: 600; font-family: var(--font-body); }

.ile #room-carousel .carousel-inner {
  border-radius: var(--radius-l); border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.ile #room-carousel img { height: 420px; object-fit: cover; }
/* thumbnail strip: fixed height + crop instead of width:100% / height:auto stretching */
.ile .w-full img { height: 100px !important; max-height: none !important; object-fit: cover; border-radius: var(--radius-s); }

.ile .nav-pills { border-color: var(--line) !important; }
.ile .nav-pills .nav-item a { color: var(--ink-soft); background: transparent; border-bottom: 2px solid transparent; }
.ile .nav-pills .nav-item a.active { color: var(--ink); background: transparent; border-bottom-color: var(--brand); }
.ile .tab-content h6 {
  font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint);
}

.ile .col-lg-4 > .border { border-color: var(--line) !important; border-radius: var(--radius-m); overflow: hidden; }
.ile .col-lg-4 > .bg-light { border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.ile .col-lg-4 .border-bottom.bg-light { background: transparent !important; border-color: var(--line) !important; }

/* ---------- ITEM HEADER: title · price · description ---------- */
.ile .item-head h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.2; margin-bottom: 12px; }
.ile .item-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ile .item-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--paper-raised); color: var(--ink-soft); font-size: 12.5px; font-weight: 500;
}
.ile .item-chip.ok { color: #1f7a4d; border-color: #bfdcca; background: #eef7f1; }
.ile .item-chip.no { color: var(--sale); border-color: #e8c3bf; background: #fbefed; }

.ile .item-price-box {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px;
  padding: 16px 20px; background: var(--brand-light);
  border: 1px solid var(--line); border-radius: var(--radius-m);
}
.ile .item-price-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.ile .item-price { font-size: clamp(1.6rem, 4vw, 2rem); font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--brand); }

.ile .item-desc { padding: 20px; margin-bottom: 28px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-m); }
.ile .item-desc h5 { font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 10px; }
.ile .item-desc-body { color: var(--ink-soft); line-height: 1.7; overflow-wrap: anywhere; }
.ile .item-desc-body img { max-width: 100%; height: auto; }
/* ---------- 13. RESPONSIVE + ACCESSIBILITY -------------------------- */
@media (max-width: 767.98px) {
  .ile #header-carousel .carousel-caption { padding-left: 20px; }
  .ile .booking .bg-white.shadow { border-radius: var(--radius-m); }
}
.ile a:focus-visible, .ile button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .ile *, .ile *::before, .ile *::after { transition: none !important; scroll-behavior: auto !important; }
}
