@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ============================================================
   DESIGN TOKENS — Dark (default) & Light themes
   ============================================================ */
:root,
[data-ae-theme="dark"] {
  --ae-gold:    #C9A84C;
  --ae-gold-lt: #F0D080;
  --ae-dark:    #0D0D0D;
  --ae-dark2:   #161616;
  --ae-dark3:   #1E1E1E;
  --ae-dark4:   #252525;
  --ae-text:    #F5F5F0;
  --ae-text2:   #A8A8A0;
  --ae-text3:   #6B6B65;
  --ae-green:   #3DB87A;
  --ae-border:  rgba(255,255,255,0.08);
  --ae-card-bg: #161616;
  --ae-card-border: rgba(255,255,255,0.08);
  --ae-input-bg:    #1E1E1E;
  --ae-sidebar-bg:  #161616;
  --ae-hero-bg:     linear-gradient(135deg,#161616 0%,#0D0D0D 70%);
  --ae-filter-bg:   #161616;
  --ae-r:  10px;
  --ae-rl: 16px;
}

[data-ae-theme="light"] {
  --ae-gold:    #B8860B;
  --ae-gold-lt: #D4A017;
  --ae-dark:    #1a1a2e;
  --ae-dark2:   #f8f9fa;
  --ae-dark3:   #ffffff;
  --ae-dark4:   #f1f3f5;
  --ae-text:    #1a1a2e;
  --ae-text2:   #495057;
  --ae-text3:   #868e96;
  --ae-green:   #2d9e5f;
  --ae-border:  rgba(0,0,0,0.1);
  --ae-card-bg: #ffffff;
  --ae-card-border: #e9ecef;
  --ae-input-bg:    #f8f9fa;
  --ae-sidebar-bg:  #ffffff;
  --ae-hero-bg:     linear-gradient(135deg,#1a1a2e 0%,#2d3561 100%);
  --ae-filter-bg:   #f8f9fa;
}

/* ============================================================
   BASE
   ============================================================ */
.ae-wrap {
  font-family: 'DM Sans', sans-serif;
  color: var(--ae-text);
  background: var(--ae-dark) !important;
  min-height: 60vh;
  transition: background .3s, color .3s;
}
/* Ensure all direct children also inherit the dark background */
.ae-wrap * { box-sizing: border-box; }

/* ============================================================
   HERO
   ============================================================ */
.ae-hero {
  background: var(--ae-hero-bg);
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--ae-border);
  position: relative;
  overflow: hidden;
}
/* When ae-hero doubles as the carousel container, remove padding/border */
.ae-hero.ae-carousel-wrap {
  padding: 0 !important;
  border-bottom: none !important;
  text-align: left;
}
.ae-hero::before {
  content: '';
  position: absolute; top: -40%; left: 15%;
  width: 70%; height: 200%;
  background: radial-gradient(ellipse, rgba(201,168,76,.07) 0%, transparent 65%);
  pointer-events: none;
}
.ae-hero-inner { max-width: 700px; margin: 0 auto; padding: 0 1.5rem; position: relative; }
.ae-hero-tag {
  display: inline-block;
  background: rgba(201,168,76,.15); color: var(--ae-gold);
  border: 1px solid rgba(201,168,76,.3);
  padding: .3rem 1rem; border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.ae-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  font-weight: 700; line-height: 1.15; margin: 0 0 1rem; color: var(--ae-text);
}
.ae-hero-title em { color: var(--ae-gold); font-style: normal; }
.ae-hero-sub { color: var(--ae-text2); font-size: 1rem; margin: 0 0 2.5rem; line-height: 1.7; }
.ae-hero-stats { display: flex; gap: 3rem; justify-content: center; flex-wrap: wrap; }
.ae-hero-stat { text-align: center; }
.ae-hero-num  { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--ae-gold); font-weight: 700; line-height: 1; }
.ae-hero-label{ font-size: .75rem; color: var(--ae-text3); letter-spacing: .05em; text-transform: uppercase; margin-top: .25rem; }

/* ============================================================
   FILTERS BAR
   ============================================================ */
.ae-filters-bar {
  background: var(--ae-filter-bg) !important;
  border-bottom: 1px solid var(--ae-border);
  padding: .85rem 0;
}
.ae-filters-form {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-width: 100%;
  padding: .75rem 1.5rem;
  box-sizing: border-box;
}

/* ── Single unified filter row ── */
.ae-filter-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: .5rem !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  min-width: 0 !important;
}

/* Listing type chips inline in the row */
.ae-filter-chips-inline {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

/* Body type chips — second row */
.ae-filter-group { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.ae-body-type-chips { padding-top: .1rem; }
.ae-filter-label { font-size: .68rem; color: var(--ae-text3); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; flex-shrink: 0; }
.ae-chip {
  padding: .28rem .8rem; border-radius: 999px;
  border: 1px solid var(--ae-border); background: transparent;
  color: var(--ae-text2); font-size: .78rem; text-decoration: none; transition: all .2s; white-space: nowrap;
}
.ae-chip:hover, .ae-chip.active { border-color: var(--ae-gold); color: var(--ae-gold); background: rgba(201,168,76,.1); }

/* ── Search row: all on ONE line ── */
.ae-filter-search {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: .5rem !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  min-width: 0 !important;
}
.ae-search-input {
  flex: 1 1 auto !important;
  min-width: 120px !important;
  max-width: 100% !important;
  width: auto !important;
  background: var(--ae-input-bg) !important;
  border: 1px solid var(--ae-border) !important;
  border-radius: 7px !important;
  color: var(--ae-text) !important;
  padding: .45rem .85rem !important;
  font-size: .875rem !important;
  outline: none !important;
  font-family: inherit !important;
  box-shadow: none !important;
  transition: border-color .2s, background .3s;
  display: block !important;
  height: auto !important;
}
.ae-sort-select {
  flex: 0 0 130px !important;
  width: 130px !important;
  min-width: 100px !important;
  background: var(--ae-input-bg) !important;
  border: 1px solid var(--ae-border) !important;
  border-radius: 7px !important;
  color: var(--ae-text) !important;
  padding: .45rem .6rem !important;
  font-size: .875rem !important;
  outline: none !important;
  font-family: inherit !important;
  box-shadow: none !important;
  transition: border-color .2s, background .3s;
  height: auto !important;
}
.ae-search-input::placeholder { color: var(--ae-text3) !important; opacity: 1; }
.ae-search-input:focus, .ae-sort-select:focus { border-color: var(--ae-gold) !important; box-shadow: 0 0 0 2px rgba(201,168,76,.15) !important; }
.ae-sort-select option { background: var(--ae-input-bg); color: var(--ae-text); }
.ae-search-btn {
  flex: 0 0 auto !important;
  background: var(--ae-gold) !important;
  color: #1a1100 !important;
  border: none !important;
  border-radius: 7px !important;
  padding: .45rem 1.25rem !important;
  font-weight: 600 !important;
  font-size: .85rem !important;
  cursor: pointer !important;
  transition: background .2s;
  white-space: nowrap !important;
  box-shadow: none !important;
  height: auto !important;
  line-height: normal !important;
}
.ae-search-btn:hover { background: var(--ae-gold-lt) !important; }

/* ============================================================
   INVENTORY SECTION — FLUID ROW
   ============================================================ */
.ae-inventory { width: 100%; padding: 2.5rem 1.5rem; box-sizing: border-box; }
.ae-section-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem;
}
.ae-section-title { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; margin: 0; color: var(--ae-text); }
.ae-count {
  font-size: .78rem; color: var(--ae-text3);
  background: var(--ae-dark2); padding: .3rem .75rem; border-radius: 999px;
  border: 1px solid var(--ae-border);
}

/* FLUID GRID — fills full row width */
.ae-grid {
  display: grid;
  grid-template-columns: repeat(var(--ae-cols, 3), 1fr);
  gap: 1.5rem;
  width: 100%;
}
/* Responsive override */
@media (max-width: 1100px) { .ae-grid { --ae-cols: 2 !important; } }
@media (max-width: 640px)  { .ae-grid { --ae-cols: 1 !important; } }

/* ============================================================
   CAR CARD
   ============================================================ */
.ae-car-card {
  background: var(--ae-card-bg);
  border: 1px solid var(--ae-card-border);
  border-radius: var(--ae-rl); overflow: hidden;
  transition: all .25s; position: relative;
}
.ae-car-card:hover {
  border-color: rgba(201,168,76,.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.ae-card-link { text-decoration: none; color: inherit; display: block; }
.ae-card-img  {
  height: 200px; background: var(--ae-dark3);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.ae-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.ae-car-card:hover .ae-card-img img { transform: scale(1.04); }
.ae-card-img-ph { font-size: 3.5rem; opacity: .18; }

/* AVAILABILITY OVERLAY (Sold / Rented) */
.ae-avail-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 5;
}
.ae-avail-badge {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700; letter-spacing: .1em;
  padding: .5rem 1.5rem; border-radius: 8px;
  transform: rotate(-12deg);
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  text-transform: uppercase;
}
.ae-avail-sold   { background: rgba(220,38,38,.92); color: #fff; border: 2px solid #fca5a5; }
.ae-avail-rented { background: rgba(37,99,235,.92);  color: #fff; border: 2px solid #93c5fd; }
.ae-img-dim { filter: brightness(0.55) grayscale(0.3); }

.ae-badge {
  display: inline-block;
  padding: .22rem .6rem; border-radius: 999px;
  font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  z-index: 4;
}
/* Card grid badge still needs absolute positioning inside the card image */
.ae-card-img .ae-badge {
  position: absolute; top: 12px; left: 12px;
}
.ae-badge-sale   { background: rgba(201,168,76,.9);  color: #1a1100; }
.ae-badge-rental { background: rgba(61,184,122,.9);  color: #0a2e1c; }
.ae-badge-both   { background: rgba(74,158,255,.9);  color: #03224e; }
.ae-featured-star {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,.9); color: #1a1100;
  padding: .2rem .5rem; border-radius: 6px;
  font-size: .68rem; font-weight: 600; z-index: 4;
}

/* FRONT-END OWNER ACTIONS — edit/delete overlay */
.ae-card-owner-actions {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  display: flex; gap: .5rem; padding: .75rem;
  opacity: 0; transition: opacity .25s; z-index: 10;
}
.ae-car-card:hover .ae-card-owner-actions { opacity: 1; }
.ae-btn-mini {
  padding: .3rem .75rem; border-radius: 6px;
  font-size: .74rem; font-weight: 600; cursor: pointer;
  border: none; text-decoration: none;
  display: inline-flex; align-items: center; gap: .3rem;
  transition: all .2s;
}
.ae-btn-mini-edit   { background: var(--ae-gold);     color: #1a1100; }
.ae-btn-mini-toggle { background: #059669; color: #fff; }
.ae-btn-mini-del    { background: #dc2626; color: #fff; }

.ae-card-body { padding: 1.1rem; }
.ae-card-meta { display: flex; gap: .5rem; align-items: center; margin-bottom: .35rem; }
.ae-card-year { font-size: .75rem; color: var(--ae-gold); font-weight: 600; }
.ae-card-type { font-size: .7rem; color: var(--ae-text3); background: var(--ae-dark4); padding: .15rem .5rem; border-radius: 4px; }
.ae-card-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; margin: 0 0 .2rem; line-height: 1.25; color: var(--ae-text); }
.ae-card-sub  { font-size: .78rem; color: var(--ae-text2); margin: 0 0 .75rem; }
.ae-card-specs { display: flex; gap: .75rem; margin-bottom: .85rem; flex-wrap: wrap; }
.ae-card-specs span { font-size: .73rem; color: var(--ae-text3); }
.ae-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--ae-border); padding-top: .85rem;
}
.ae-card-price { font-family: 'Playfair Display', serif; font-size: 1.25rem; color: var(--ae-gold); font-weight: 700; line-height: 1; }
.ae-card-rent  { font-size: .82rem; color: var(--ae-green); font-weight: 500; }
.ae-card-cta   { background: var(--ae-gold); color: #1a1100; padding: .35rem .9rem; border-radius: 6px; font-size: .75rem; font-weight: 700; }

/* ADD CAR BUTTON (top of listing) */
.ae-add-bar {
  display: flex; justify-content: flex-end; align-items: center; gap: 1rem;
  padding: .75rem 1.5rem;
  background: var(--ae-dark2); border-bottom: 1px solid var(--ae-border);
}
.ae-add-car-btn {
  background: var(--ae-gold); color: #1a1100;
  padding: .5rem 1.25rem; border-radius: 8px;
  font-weight: 700; font-size: .875rem; text-decoration: none;
  display: inline-flex; align-items: center; gap: .4rem;
  transition: background .2s;
}
.ae-add-car-btn:hover { background: var(--ae-gold-lt); }
.ae-my-cars-btn {
  background: transparent; color: var(--ae-gold);
  border: 1px solid var(--ae-gold);
  padding: .45rem 1.1rem; border-radius: 8px;
  font-weight: 600; font-size: .85rem; text-decoration: none;
  display: inline-flex; align-items: center; gap: .4rem;
  transition: all .2s;
}
.ae-my-cars-btn:hover { background: rgba(201,168,76,.1); }

/* ============================================================
   PAGINATION
   ============================================================ */
/* ── Pagination ── */
.ae-pagination {
  margin-top: 2rem;
  padding-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}
.ae-page-list {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.ae-page-list li a,
.ae-page-list li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 .75rem;
  border-radius: 9px;
  border: 1px solid var(--ae-border);
  color: var(--ae-text2);
  background: var(--ae-card-bg);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: all .2s;
  cursor: pointer;
}
.ae-page-list li a:hover {
  border-color: var(--ae-gold);
  color: var(--ae-gold);
  background: rgba(201,168,76,.1);
}
.ae-page-list li.ae-page-active span {
  background: var(--ae-gold);
  border-color: var(--ae-gold);
  color: #1a1100;
  font-weight: 700;
}
.ae-page-list li.ae-page-disabled span {
  opacity: .25;
  cursor: default;
}
.ae-page-list li.ae-page-gap span {
  border-color: transparent;
  background: transparent;
  color: var(--ae-text3);
  min-width: 24px;
}
.ae-page-info {
  font-size: .78rem;
  color: var(--ae-text3);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.ae-empty { text-align: center; padding: 4rem 2rem; color: var(--ae-text3); }
.ae-empty-icon { font-size: 3rem; margin-bottom: .75rem; opacity: .4; }
.ae-empty a { color: var(--ae-gold); }

/* ============================================================
   FRONT-END EDIT FORM (Add / Edit car)
   ============================================================ */
.ae-fe-form-wrap {
  background: var(--ae-dark); min-height: 100vh;
  padding: 2rem 1.5rem; box-sizing: border-box;
  color: var(--ae-text);
}
.ae-fe-form-wrap .ae-fe-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem;
}
.ae-fe-form-wrap h1 { font-family: 'Playfair Display', serif; font-size: 1.75rem; margin: 0; color: var(--ae-text); }
.ae-fe-layout { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; }
@media (max-width: 768px) { .ae-fe-layout { grid-template-columns: 1fr; } }
.ae-fe-card {
  background: var(--ae-dark2); border: 1px solid var(--ae-border);
  border-radius: var(--ae-rl); overflow: hidden; margin-bottom: 1.25rem;
}
.ae-fe-card-h { padding: .85rem 1.25rem; border-bottom: 1px solid var(--ae-border); font-weight: 700; font-size: .95rem; color: var(--ae-text); }
.ae-fe-card-b { padding: 1.25rem; }
.ae-fe-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: .85rem; }
.ae-fe-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; margin-bottom: .85rem; }
@media (max-width: 520px) { .ae-fe-row2, .ae-fe-row3 { grid-template-columns: 1fr; } }
.ae-fe-fg { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .75rem; }
.ae-fe-fg:last-child { margin-bottom: 0; }
.ae-fe-lbl { font-size: .74rem; font-weight: 600; color: var(--ae-text2); text-transform: uppercase; letter-spacing: .04em; }
.ae-fe-input, .ae-fe-select, .ae-fe-textarea {
  background: var(--ae-dark3); border: 1px solid var(--ae-border);
  border-radius: 7px; color: var(--ae-text); padding: .55rem .85rem;
  font-family: inherit; font-size: .875rem; outline: none;
  transition: border-color .2s; width: 100%; box-sizing: border-box;
}
.ae-fe-input:focus, .ae-fe-select:focus, .ae-fe-textarea:focus { border-color: var(--ae-gold); box-shadow: 0 0 0 3px rgba(201,168,76,.12); }
.ae-fe-textarea { resize: vertical; min-height: 90px; }
.ae-fe-submit {
  background: var(--ae-gold); color: #1a1100;
  border: none; border-radius: 9px; padding: .75rem 2rem;
  font-weight: 700; font-size: 1rem; cursor: pointer; width: 100%;
  transition: background .2s;
}
.ae-fe-submit:hover { background: var(--ae-gold-lt); }
.ae-fe-cancel {
  display: block; text-align: center;
  color: var(--ae-text2); text-decoration: none;
  font-size: .85rem; margin-top: .75rem;
}
.ae-fe-cancel:hover { color: var(--ae-gold); }

/* ============================================================
   DELETE CONFIRM MODAL
   ============================================================ */
.ae-modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.65);
  z-index: 9000; display: none; align-items: center; justify-content: center;
}
.ae-modal-backdrop.open { display: flex; animation: aeFadeIn .22s ease; }
.ae-modal {
  background: var(--ae-dark2); border: 1px solid var(--ae-border);
  border-radius: 18px; padding: 2.5rem 2rem; max-width: 420px; width: 90%;
  text-align: center; box-shadow: 0 24px 64px rgba(0,0,0,.5);
  animation: aeSlideUp .25s cubic-bezier(.4,0,.2,1);
}
.ae-modal-icon  { font-size: 3rem; margin-bottom: .75rem; }
.ae-modal-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--ae-text); margin: 0 0 .6rem; }
.ae-modal-body  { color: var(--ae-text2); font-size: .9rem; line-height: 1.6; margin: 0 0 1.5rem; }
.ae-modal-btns  { display: flex; gap: .75rem; justify-content: center; }
.ae-modal-btn   { padding: .65rem 1.5rem; border-radius: 9px; font-weight: 700; font-size: .9rem; cursor: pointer; border: none; text-decoration: none; }
.ae-modal-cancel { background: var(--ae-dark3); color: var(--ae-text2); border: 1px solid var(--ae-border); }
.ae-modal-confirm{ background: #dc2626; color: #fff; }
.ae-modal-cancel:hover  { border-color: var(--ae-gold); color: var(--ae-gold); }
.ae-modal-confirm:hover { background: #b91c1c; }

@keyframes aeFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes aeSlideUp { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }

/* ============================================================
   DETAIL PAGE
   ============================================================ */
.ae-detail-wrap { padding: 0; }
.ae-breadcrumb {
  display: flex; gap: .5rem; align-items: center;
  padding: 1rem 1.5rem; font-size: .82rem; color: var(--ae-text2);
  background: var(--ae-dark2); border-bottom: 1px solid var(--ae-border);
}
.ae-breadcrumb a { color: var(--ae-gold); text-decoration: none; }
.ae-detail-layout {
  display: grid; grid-template-columns: 1fr 360px; gap: 2rem;
  padding: 2rem 1.5rem;
}
.ae-gallery-hero {
  height: 360px; border-radius: var(--ae-rl); overflow: hidden;
  background: var(--ae-dark3); display: flex; align-items: center; justify-content: center;
  margin-bottom: .75rem; position: relative;
}
.ae-gallery-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ae-gallery-ph { font-size: 5rem; opacity: .15; }
.ae-gallery-thumbs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; }
.ae-gthumb { width: 88px; height: 60px; object-fit: cover; border-radius: 7px; border: 2px solid transparent; cursor: pointer; flex-shrink: 0; transition: border-color .2s; }
.ae-gthumb.active, .ae-gthumb:hover { border-color: var(--ae-gold); }
.ae-detail-header { margin: 1.5rem 0 1.25rem; }
.ae-detail-meta   { display: flex; gap: .5rem; align-items: center; margin-bottom: .6rem; }
.ae-detail-title  { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; margin: 0 0 .35rem; color: var(--ae-text); }
.ae-detail-sub    { color: var(--ae-text2); font-size: .9rem; margin: 0; }
.ae-section-label { font-size: .72rem; color: var(--ae-text3); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .9rem; }
.ae-specs-section, .ae-desc-section, .ae-features-section { margin-bottom: 2rem; }
.ae-specs-grid    { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.ae-spec          { background: var(--ae-dark3); border-radius: 8px; padding: .75rem 1rem; }
.ae-spec-label    { font-size: .7rem; color: var(--ae-text3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .25rem; }
.ae-spec-val      { font-size: .9rem; font-weight: 500; color: var(--ae-text); }
.ae-desc          { color: var(--ae-text2); line-height: 1.8; font-size: .9rem; }
.ae-features-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.ae-feature-tag   { padding: .3rem .75rem; border-radius: 999px; border: 1px solid var(--ae-border); font-size: .78rem; color: var(--ae-text2); }
.ae-detail-sidebar { position: sticky; top: 80px; }
.ae-sidebar-card  { background: var(--ae-sidebar-bg); border: 1px solid var(--ae-border); border-radius: var(--ae-rl); padding: 1.5rem; }
.ae-sidebar-price { font-family: 'Playfair Display', serif; font-size: 2.25rem; color: var(--ae-gold); font-weight: 700; line-height: 1; }
.ae-sidebar-rent  { font-family: 'Playfair Display', serif; font-size: 1.75rem; color: var(--ae-green); font-weight: 700; margin-top: .35rem; }
.ae-sidebar-rent span { font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 400; }
.ae-sidebar-price-note { font-size: .75rem; color: var(--ae-text3); margin-top: .2rem; }
.ae-sidebar-divider { border: none; border-top: 1px solid var(--ae-border); margin: 1.25rem 0; }
.ae-enquiry-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; margin: 0 0 1rem; color: var(--ae-text); }
.ae-enq-type      { display: flex; gap: 1rem; margin-bottom: .75rem; }
.ae-enq-type label{ display: flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--ae-text2); cursor: pointer; }
.ae-enq-type input{ accent-color: var(--ae-gold); }
.ae-enquiry-form  { display: flex; flex-direction: column; gap: .6rem; }
.ae-enq-input, .ae-enq-textarea {
  background: var(--ae-dark3); border: 1px solid var(--ae-border);
  border-radius: 7px; color: var(--ae-text); padding: .55rem .85rem;
  font-family: inherit; font-size: .85rem; outline: none;
  transition: border-color .2s; width: 100%; box-sizing: border-box;
}
.ae-enq-input:focus, .ae-enq-textarea:focus { border-color: var(--ae-gold); }
.ae-enq-textarea  { resize: vertical; min-height: 70px; }
.ae-enq-submit    { background: var(--ae-gold); color: #1a1100; border: none; border-radius: 8px; padding: .7rem; font-weight: 700; font-size: .9rem; cursor: pointer; width: 100%; transition: background .2s; }
.ae-enq-submit:hover { background: var(--ae-gold-lt); }
.ae-sidebar-contact { margin-top: 1.25rem; border-top: 1px solid var(--ae-border); padding-top: 1rem; }
.ae-contact-row   { font-size: .82rem; color: var(--ae-text2); margin-bottom: .45rem; }
.ae-contact-row a { color: var(--ae-text2); text-decoration: none; }
.ae-contact-row a:hover { color: var(--ae-gold); }
.ae-sidebar-logo  { text-align: center; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--ae-border); }
.ae-sidebar-logo img { max-width: 160px; max-height: 70px; object-fit: contain; }
.ae-social-row    { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.ae-social-btn    { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; font-size: .85rem; font-weight: 700; text-decoration: none; transition: opacity .2s; }
.ae-social-btn:hover { opacity: .8; }
.ae-social-fb { background: #1877f2; color: #fff; }
.ae-social-ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.ae-social-wa { background: #25d366; color: #fff; }

/* Owner actions bar on detail page */
.ae-detail-owner-bar {
  display: flex; gap: .75rem; align-items: center;
  justify-content: center;
  padding: .75rem 1.5rem; background: rgba(201,168,76,.06);
  border-bottom: 1px solid rgba(201,168,76,.2);
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}
.ae-detail-owner-bar span { font-size: .82rem; color: var(--ae-text3); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 800px) {
  .ae-detail-layout { grid-template-columns: 1fr; }
  .ae-detail-sidebar { position: static; }
}

/* Tablet: let the sort shrink a little */
@media (max-width: 720px) {
  .ae-sort-select { flex: 0 0 100px !important; width: 100px !important; }
  .ae-filter-chips-inline { gap: .25rem; }
}

/* Mobile: wrap into two lines */
@media (max-width: 540px) {
  .ae-filter-row {
    flex-wrap: wrap !important;
  }
  .ae-filter-chips-inline {
    flex: 0 0 100%;
    order: 1;
    flex-wrap: wrap;
  }
  .ae-search-input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    order: 2;
  }
  .ae-sort-select {
    flex: 0 0 100px !important;
    width: 100px !important;
    order: 3;
  }
  .ae-search-btn {
    order: 4;
    flex: 0 0 auto !important;
  }
  .ae-filters-form { padding: .6rem 1rem; }
}

@media (max-width: 640px) {
  .ae-hero { padding: 3rem 0 2.5rem; }
  .ae-inventory { padding: 1.5rem 1rem; }
  .ae-detail-layout { padding: 1.25rem 1rem; }
  .ae-breadcrumb { padding: .75rem 1rem; }
  .ae-filters-form { padding: 0 1rem; }
}

/* ============================================================
   JOOMSHAPER ULTIMATE TEMPLATE COMPATIBILITY
   sp-section, sp-col, .up-vc container resets
   ============================================================ */
.sp-section .ae-wrap,
.sp-col    .ae-wrap,
.up-vc     .ae-wrap  { background: var(--ae-dark) !important; }

/* Full-bleed hero when inside SP Page Builder column */
.sp-section .ae-hero,
.up-vc .ae-hero {
  margin-left:  calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
}

/* Override Joomla template container max-width for fluid grid */
.ae-inventory,
.ae-filters-bar,
.ae-add-bar { max-width: 100% !important; width: 100%; }

/* JoomShaper dark nav compatibility */
.ae-wrap a { color: inherit; }

/* ============================================================
   HARD TEMPLATE OVERRIDE BLOCK
   Prevent any Joomla/JoomShaper/Bootstrap template styles
   from bleeding into the AutoElite component
   ============================================================ */

/* Force filter bar dark regardless of template */
.ae-wrap .ae-filters-bar,
.ae-wrap .ae-filters-bar * {
  background-color: transparent;
}
.ae-wrap .ae-filters-bar {
  background-color: var(--ae-filter-bg) !important;
}

/* Force inputs/selects inside the component to use component theme */
.ae-wrap input.ae-search-input,
.ae-wrap input[class*="ae-"] {
  background-color: var(--ae-input-bg) !important;
  color: var(--ae-text) !important;
  border-color: var(--ae-border) !important;
  box-shadow: none !important;
  -webkit-appearance: none;
}
.ae-wrap select.ae-sort-select,
.ae-wrap select[class*="ae-"] {
  background-color: var(--ae-input-bg) !important;
  color: var(--ae-text) !important;
  border-color: var(--ae-border) !important;
  box-shadow: none !important;
}
.ae-wrap button.ae-search-btn {
  background-color: var(--ae-gold) !important;
  color: #1a1100 !important;
  border: none !important;
  box-shadow: none !important;
}
.ae-wrap button.ae-search-btn:hover {
  background-color: var(--ae-gold-lt) !important;
}

/* Prevent Joomla Bootstrap form-control styling from overriding inputs */
.ae-wrap .ae-search-input.form-control,
.ae-wrap .ae-sort-select.form-control {
  background-color: var(--ae-input-bg) !important;
  color: var(--ae-text) !important;
  border-color: var(--ae-border) !important;
}

/* Dark theme token resolved values — used when CSS vars aren't supported */
[data-ae-theme="dark"] .ae-filters-bar { background-color: #161616 !important; }
[data-ae-theme="dark"] .ae-search-input,
[data-ae-theme="dark"] .ae-sort-select  { background-color: #1E1E1E !important; color: #F5F5F0 !important; border-color: rgba(255,255,255,0.08) !important; }

[data-ae-theme="light"] .ae-filters-bar { background-color: #f8f9fa !important; }
[data-ae-theme="light"] .ae-search-input,
[data-ae-theme="light"] .ae-sort-select  { background-color: #ffffff !important; color: #1a1a2e !important; border-color: rgba(0,0,0,0.1) !important; }

/* ============================================================
   LAYOUT MODE — Boxed vs Fluid
   ============================================================ */

/* ── BOXED (default) ── */
.ae-wrap.ae-layout-boxed .ae-inventory,
.ae-wrap.ae-layout-boxed .ae-filters-bar,
.ae-wrap.ae-layout-boxed .ae-add-bar,
.ae-wrap.ae-layout-boxed .ae-hero-inner {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

/* ── FLUID / FULL WIDTH ──
   JS teleports .ae-wrap to <body> to escape template containers.
   These rules ensure everything inside fills 100% cleanly.
*/
.ae-wrap.ae-layout-fluid {
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  background: #0D0D0D !important;
}
[data-ae-theme="light"].ae-wrap.ae-layout-fluid {
  background: #f4f4f4 !important;
}
.ae-wrap.ae-layout-fluid .ae-hero,
.ae-wrap.ae-layout-fluid .ae-filters-bar,
.ae-wrap.ae-layout-fluid .ae-add-bar,
.ae-wrap.ae-layout-fluid .ae-inventory {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}
.ae-wrap.ae-layout-fluid .ae-inventory {
  padding: 20px !important;
}
.ae-wrap.ae-layout-fluid .ae-filters-form {
  padding-left: 20px !important;
  padding-right: 20px !important;
}
.ae-wrap.ae-layout-fluid .ae-add-bar {
  padding-left: 20px !important;
  padding-right: 20px !important;
}
.ae-wrap.ae-layout-fluid .ae-grid {
  width: 100%;
  box-sizing: border-box;
}

/* ============================================================
   TEMPLATE COMPATIBILITY — JoomShaper Ultimate / Helix
   ============================================================ */

/* ── GENERIC: nothing extra needed ── */

/* ── JOOMSHAPER ULTIMATE & HELIX ULTIMATE ──
   Neutralise template container constraints so AE can
   go edge-to-edge when fluid mode is active.
   Targets sp-col, sp-container, up-vc, helix wrappers.
*/
.ae-wrap.ae-tpl-joomshaper,
.ae-wrap.ae-tpl-helix {
  /* Allow component to escape template padding */
  width: 100%;
  box-sizing: border-box;
}

/* Fluid mode + JoomShaper: break out of sp-col/sp-container */
/* Fluid + JoomShaper/Helix: JS handles the escape;
   CSS just ensures clean 100% fill */
.ae-wrap.ae-layout-fluid.ae-tpl-joomshaper,
.ae-wrap.ae-layout-fluid.ae-tpl-helix {
  width: 100vw !important;
  max-width: 100vw !important;
}

/* Hero full-bleed for both template types */
.ae-wrap.ae-tpl-joomshaper .ae-hero,
.ae-wrap.ae-tpl-helix .ae-hero {
  position: relative;
  z-index: 1;
}

/* JoomShaper/Helix: override their container max-width that caps the grid */
.ae-wrap.ae-tpl-joomshaper .ae-inventory,
.ae-wrap.ae-tpl-helix .ae-inventory,
.ae-wrap.ae-tpl-joomshaper .ae-filters-bar,
.ae-wrap.ae-tpl-helix .ae-filters-bar {
  max-width: 100% !important;
  width: 100% !important;
}

/* JoomShaper sp-col padding reset for fluid */
.ae-wrap.ae-layout-fluid.ae-tpl-joomshaper .ae-filters-bar,
.ae-wrap.ae-layout-fluid.ae-tpl-joomshaper .ae-add-bar,
.ae-wrap.ae-layout-fluid.ae-tpl-helix .ae-filters-bar,
.ae-wrap.ae-layout-fluid.ae-tpl-helix .ae-add-bar {
  padding-left: 2rem;
  padding-right: 2rem;
}

/* JoomShaper: fix input styles overridden by UP framework */
.ae-wrap.ae-tpl-joomshaper .ae-search-input,
.ae-wrap.ae-tpl-joomshaper .ae-sort-select,
.ae-wrap.ae-tpl-helix .ae-search-input,
.ae-wrap.ae-tpl-helix .ae-sort-select {
  background-color: var(--ae-input-bg) !important;
  color: var(--ae-text) !important;
  border: 1px solid var(--ae-border) !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  border-radius: 7px !important;
}

/* JoomShaper: prevent their .btn styles bleeding into our buttons */
.ae-wrap.ae-tpl-joomshaper .ae-search-btn,
.ae-wrap.ae-tpl-helix .ae-search-btn {
  background-color: var(--ae-gold) !important;
  color: #1a1100 !important;
  border: none !important;
  border-radius: 7px !important;
  padding: .45rem 1.25rem !important;
  box-shadow: none !important;
  font-size: .85rem !important;
  font-weight: 600 !important;
  text-shadow: none !important;
  letter-spacing: normal !important;
}

/* JoomShaper: prevent their anchor styles affecting our card links */
.ae-wrap.ae-tpl-joomshaper .ae-card-link,
.ae-wrap.ae-tpl-helix .ae-card-link {
  color: inherit !important;
  text-decoration: none !important;
}
.ae-wrap.ae-tpl-joomshaper .ae-card-link:hover,
.ae-wrap.ae-tpl-helix .ae-card-link:hover {
  color: inherit !important;
  text-decoration: none !important;
}

/* JoomShaper: fix their heading styles overriding our card titles */
.ae-wrap.ae-tpl-joomshaper .ae-card-name,
.ae-wrap.ae-tpl-joomshaper .ae-detail-title,
.ae-wrap.ae-tpl-joomshaper .ae-section-title,
.ae-wrap.ae-tpl-helix .ae-card-name,
.ae-wrap.ae-tpl-helix .ae-detail-title,
.ae-wrap.ae-tpl-helix .ae-section-title {
  color: var(--ae-text) !important;
  font-family: 'Playfair Display', serif !important;
}

/* JoomShaper: neutralize any body/global background that leaks */
.ae-wrap.ae-tpl-joomshaper,
.ae-wrap.ae-tpl-helix {
  background: var(--ae-dark) !important;
}
[data-ae-theme="light"].ae-wrap.ae-tpl-joomshaper,
[data-ae-theme="light"].ae-wrap.ae-tpl-helix {
  background: #f8f9fa !important;
}

/* ── Boxed mode: restore inner padding for JoomShaper ── */
.ae-wrap.ae-layout-boxed.ae-tpl-joomshaper .ae-inventory,
.ae-wrap.ae-layout-boxed.ae-tpl-helix .ae-inventory {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ── Fluid + any template: grid always fills 100% ── */
[data-ae-layout="fluid"] .ae-grid {
  width: 100%;
  box-sizing: border-box;
}

/* ============================================================
   COMPONENT FOOTER — Copyright
   ============================================================ */
.ae-footer {
  text-align: center;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--ae-border);
  font-size: .78rem;
  color: var(--ae-text3);
  letter-spacing: .03em;
  background: var(--ae-dark2);
}
.ae-footer a {
  color: var(--ae-gold);
  text-decoration: none;
  font-weight: 600;
}
.ae-footer a:hover { text-decoration: underline; }

/* ============================================================
   HERO CAROUSEL
   ============================================================ */
.ae-carousel-wrap {
  position: relative;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 560px;
  overflow: hidden;
  background: #0D0D0D;
  /* Break out of any template container */
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  left: 0;
  box-sizing: border-box;
}
@media (max-width: 768px) { .ae-carousel-wrap { height: 420px; } }
@media (max-width: 480px) { .ae-carousel-wrap { height: 360px; } }

/* ── Carousel track & slides ── */
.ae-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.ae-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}
.ae-carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
/* Transitions only enabled by JS — prevents first-slide fade-in flash */
.ae-carousel-track.ae-transitions-on .ae-carousel-slide {
  transition: opacity .8s cubic-bezier(.4,0,.2,1) !important;
}
.ae-carousel-slide.prev {
  opacity: 0;
  z-index: 1;
}

/* Background image */
.ae-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.06);
  transition: transform 6s ease;
}
.ae-carousel-slide.active .ae-slide-bg {
  transform: scale(1);
}
.ae-slide-bg-fallback {
  background: linear-gradient(135deg, #161616 0%, #0D0D0D 100%);
}

/* Overlay */
.ae-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0,0,0,.78) 0%,
    rgba(0,0,0,.45) 55%,
    rgba(0,0,0,.15) 100%
  );
  z-index: 1;
}

/* Slide content */
.ae-slide-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}
.ae-slide-inner {
  max-width: 580px;
  padding: 2.5rem 3rem;
  transform: translateY(20px);
  opacity: 0;
  transition: transform .7s .2s cubic-bezier(.4,0,.2,1), opacity .7s .2s;
}
.ae-carousel-slide.active .ae-slide-inner {
  transform: translateY(0);
  opacity: 1;
}
.ae-slide-badges {
  display: flex;
  gap: .5rem;
  margin-bottom: .85rem;
  flex-wrap: wrap;
}
.ae-slide-type-badge {
  display: inline-block;
  padding: .25rem .8rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.ae-badge-sale   { background: rgba(201,168,76,.9);  color: #1a1100; }
.ae-badge-rental { background: rgba(61,184,122,.9);  color: #0a2e1c; }
.ae-badge-both   { background: rgba(99,102,241,.9);  color: #fff; }
.ae-slide-featured-badge {
  display: inline-block;
  padding: .25rem .8rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  background: rgba(255,255,255,.15);
  color: #fff;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.2);
}
.ae-slide-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 .75rem;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.ae-slide-specs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.ae-slide-specs span {
  font-size: .82rem;
  color: rgba(255,255,255,.75);
  display: flex;
  align-items: center;
  gap: .25rem;
}
.ae-slide-price {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ae-gold);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.ae-slide-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.ae-slide-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--ae-gold);
  color: #1a1100;
  padding: .7rem 1.75rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 4px 20px rgba(201,168,76,.35);
}
.ae-slide-cta-primary:hover {
  background: var(--ae-gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(201,168,76,.5);
}
.ae-slide-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.12);
  color: #fff;
  padding: .7rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
  transition: all .2s;
}
.ae-slide-cta-secondary:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.4);
}

/* Arrows */
.ae-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,.4);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  backdrop-filter: blur(6px);
}
.ae-carousel-arrow:hover { background: rgba(201,168,76,.7); border-color: var(--ae-gold); }
.ae-carousel-prev { left: 1.25rem; }
.ae-carousel-next { right: 1.25rem; }

/* Dots */
.ae-carousel-dots {
  position: absolute;
  bottom: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
  z-index: 10;
}
.ae-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  border: none;
  cursor: pointer;
  transition: all .3s;
  padding: 0;
}
.ae-carousel-dot.active {
  background: var(--ae-gold);
  width: 28px;
}

/* Progress bar */
.ae-carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,.1);
  z-index: 10;
}
.ae-carousel-progress-bar {
  height: 100%;
  background: var(--ae-gold);
  width: 0%;
  transition: width linear;
}

/* Stats overlay */
.ae-carousel-stats {
  position: absolute;
  bottom: 1.25rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  padding: .5rem 1.25rem;
}
.ae-cstat { text-align: center; }
.ae-cstat-n { display: block; font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; color: var(--ae-gold); line-height: 1; }
.ae-cstat-l { font-size: .62rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .05em; }
.ae-cstat-div { width: 1px; height: 28px; background: rgba(255,255,255,.15); }

/* Responsive */
@media (max-width: 600px) {
  .ae-slide-inner { padding: 1.75rem 1.5rem; }
  .ae-carousel-arrow { width: 38px; height: 38px; font-size: 1.4rem; }
  .ae-carousel-stats { display: none; }
  .ae-slide-cta-secondary { display: none; }
}

/* ============================================================
   LOAD MORE BUTTON
   ============================================================ */
.ae-load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem 1rem;
}
.ae-load-more-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  background: transparent;
  border: 2px solid var(--ae-gold);
  color: var(--ae-gold);
  border-radius: 999px;
  padding: .75rem 2.5rem;
  font-family: inherit;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.ae-load-more-btn:hover:not(:disabled) {
  background: var(--ae-gold);
  color: #1a1100;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201,168,76,.35);
}
.ae-load-more-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}
.ae-lm-text { font-size: .95rem; }
.ae-lm-count {
  font-size: .72rem;
  font-weight: 500;
  opacity: .75;
}
.ae-lm-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: ae-spin .7s linear infinite;
  margin-right: .4rem;
  vertical-align: middle;
}
@keyframes ae-spin { to { transform: rotate(360deg); } }

/* ============================================================
   BANNER SLIDES IN CAROUSEL
   ============================================================ */
.ae-banner-slide { overflow: hidden; }
.ae-ban-iframe,
.ae-ban-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none; object-fit: cover; z-index: 0;
  pointer-events: none;
}
.ae-ban-inner { max-width: 640px; }
.ae-ban-title { text-shadow: 0 2px 16px rgba(0,0,0,.4); }

/* Text animations — triggered when slide is .active */
@keyframes ae-ban-typewriter { from { width:0; overflow:hidden; white-space:nowrap } to { width:100% } }
@keyframes ae-ban-fadeup     { from { opacity:0; transform:translateY(28px) } to { opacity:1; transform:translateY(0) } }
@keyframes ae-ban-slideleft  { from { opacity:0; transform:translateX(60px) } to { opacity:1; transform:translateX(0) } }
@keyframes ae-ban-slideright { from { opacity:0; transform:translateX(-60px) } to { opacity:1; transform:translateX(0) } }
@keyframes ae-ban-zoom       { from { opacity:0; transform:scale(.8) } to { opacity:1; transform:scale(1) } }
@keyframes ae-ban-glow       { 0%,100%{ text-shadow:0 0 8px currentColor } 50%{ text-shadow:0 0 28px currentColor,0 0 56px currentColor } }

.ae-carousel-slide.active .ae-ban-anim-typewriter .ae-ban-title { animation: ae-ban-typewriter .9s steps(40,end) .2s both; }
.ae-carousel-slide.active .ae-ban-anim-typewriter .ae-slide-specs { animation: ae-ban-fadeup .6s ease .9s both; }
.ae-carousel-slide.active .ae-ban-anim-fade-up    .ae-ban-title { animation: ae-ban-fadeup .7s ease .1s both; }
.ae-carousel-slide.active .ae-ban-anim-fade-up    .ae-slide-specs { animation: ae-ban-fadeup .7s ease .35s both; }
.ae-carousel-slide.active .ae-ban-anim-slide-left  .ae-ban-title { animation: ae-ban-slideleft .65s ease .1s both; }
.ae-carousel-slide.active .ae-ban-anim-slide-left  .ae-slide-specs { animation: ae-ban-slideleft .65s ease .3s both; }
.ae-carousel-slide.active .ae-ban-anim-slide-right .ae-ban-title { animation: ae-ban-slideright .65s ease .1s both; }
.ae-carousel-slide.active .ae-ban-anim-slide-right .ae-slide-specs { animation: ae-ban-slideright .65s ease .3s both; }
.ae-carousel-slide.active .ae-ban-anim-zoom        .ae-ban-title { animation: ae-ban-zoom .6s ease .1s both; }
.ae-carousel-slide.active .ae-ban-anim-zoom        .ae-slide-specs { animation: ae-ban-zoom .6s ease .3s both; }
.ae-carousel-slide.active .ae-ban-anim-glow        .ae-ban-title { animation: ae-ban-glow 2.5s ease-in-out .2s infinite; }

/* ── Per-element banner animations (title & subtitle independently) ── */
/* Title */
.ae-carousel-slide.active .ae-ban-title-anim-typewriter  { animation: ae-ban-typewriter .9s steps(40,end) .2s both; }
.ae-carousel-slide.active .ae-ban-title-anim-fade-up     { animation: ae-ban-fadeup .7s ease .1s both; }
.ae-carousel-slide.active .ae-ban-title-anim-slide-left  { animation: ae-ban-slideleft .65s ease .1s both; }
.ae-carousel-slide.active .ae-ban-title-anim-slide-right { animation: ae-ban-slideright .65s ease .1s both; }
.ae-carousel-slide.active .ae-ban-title-anim-zoom        { animation: ae-ban-zoom .6s ease .1s both; }
.ae-carousel-slide.active .ae-ban-title-anim-glow        { animation: ae-ban-glow 2.5s ease-in-out .2s infinite; }
/* Subtitle */
.ae-carousel-slide.active .ae-ban-sub-anim-typewriter  { animation: ae-ban-typewriter .8s steps(30,end) .6s both; }
.ae-carousel-slide.active .ae-ban-sub-anim-fade-up     { animation: ae-ban-fadeup .7s ease .4s both; }
.ae-carousel-slide.active .ae-ban-sub-anim-slide-left  { animation: ae-ban-slideleft .65s ease .35s both; }
.ae-carousel-slide.active .ae-ban-sub-anim-slide-right { animation: ae-ban-slideright .65s ease .35s both; }
.ae-carousel-slide.active .ae-ban-sub-anim-zoom        { animation: ae-ban-zoom .6s ease .35s both; }
.ae-carousel-slide.active .ae-ban-sub-anim-glow        { animation: ae-ban-glow 2.5s ease-in-out .5s infinite; }
