/* ========== BASE ========== */
.aes-sale { background:#fff; color:#222; }
.aes-container { max-width:1100px; margin:0 auto; padding:0 20px; }
.aes-container--wide{ max-width:1320px; }

/* ========== HERO ========== */
.aes-sale-hero { position:relative; margin-bottom:90px; }
.aes-sale-hero-bg img { width:100%; height:420px; object-fit:cover; display:block; }

.aes-sale-hero::after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to bottom,rgba(0,0,0,.25),rgba(0,0,0,.6));
  z-index:1;
}

.aes-sale-hero-inner {
  position:absolute;
  inset:0;
  display:flex;
  align-items:flex-end;
  z-index:2;
}

.aes-sale-hero-card {
  background:#fdebf2;
  border:1px solid #f1d6e2;
  border-radius:14px;
  box-shadow:0 14px 40px rgba(0,0,0,.2);
  padding:28px;
  max-width:900px;
  width:100%;
  margin:0 auto -70px;
}

/* ========== HERO TEXT ========== */
.aes-sale-pill {
  display:inline-block;
  background:#d63384;
  color:#fff;
  padding:6px 14px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  margin-bottom:10px;
}

.aes-sale-title { margin:0 0 10px; font-size:34px; }
.aes-sale-location { display:flex; gap:12px; flex-wrap:wrap; font-weight:600; }
.aes-sale-location a { color:#d63384; font-weight:800; text-decoration:none; }
.aes-sale-lead { margin-top:10px; color:#555; }

/* ========== STRIP ========== */
.aes-sale-strip { margin:40px 0; }
.aes-strip-layout{
  display:grid;
  /* Wireframe layout: left sidebar + centered strip + empty right column to keep strip centered */
  /* Keep the left info card stable, let the right side flex so the gallery can grow */
  grid-template-columns:400px minmax(0, 980px) 1fr;
  gap:34px;
  align-items:stretch;
}

/* Positioning inside the strip grid */
.aes-strip-aside{grid-column:1;justify-self:start;align-self:stretch;}
.aes-strip-carousel{
  grid-column:2;
  justify-self:center;
  /* Wider strip so thumbnails can be larger while staying in one line */
  max-width:980px;
  width:100%;
  position:relative;
  align-self:stretch;
}
.aes-strip-gallery{
  /* One-line horizontal strip */
  display:flex;
  flex-wrap:nowrap;
  gap:12px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x proximity;
  -webkit-overflow-scrolling:touch;
  padding:14px;
  border-radius:20px;
  background:linear-gradient(180deg, rgba(253,235,242,.45), rgba(255,255,255,.25));
  border:1px solid rgba(241,214,226,.7);
  box-shadow:0 18px 44px rgba(0,0,0,.06);
}

.aes-strip-gallery > *{
  min-width:0;
  flex:0 0 auto;
  scroll-snap-align:start;
}

/* Carousel track enhancements (kept for backward compatibility) */
.aes-strip-gallery--carousel{scrollbar-width:none;}
.aes-strip-gallery--carousel::-webkit-scrollbar{display:none;}

/* Carousel arrows */
.aes-strip-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:40px;
  height:40px;
  border-radius:999px;
  border:1px solid rgba(241,214,226,.9);
  background:rgba(255,255,255,.75);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  box-shadow:0 14px 34px rgba(0,0,0,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  color:#d63384;
  font-size:22px;
  line-height:1;
}
.aes-strip-arrow--prev{left:-18px;}
.aes-strip-arrow--next{right:-18px;}
.aes-strip-arrow:disabled{opacity:.35;cursor:default;box-shadow:none;}

.aes-sale-strip img {
  width:100%;
  /* Slightly larger thumbnails */
  height:180px;
  object-fit:cover;
  border-radius:14px;
  border:0;
  box-shadow:0 10px 22px rgba(0,0,0,.08);
}

/* Give each thumbnail a predictable width so the carousel scroll step is smooth */
.aes-strip-gallery a{
  display:block;
  /* 3-up on desktop (gaps: 12px * 2 = 24px) */
  width:auto;
  flex:0 0 calc((100% - 24px) / 3);
  max-width:320px;
}

@media (max-width: 1024px){
  /* 2-up on tablets */
  .aes-strip-gallery a{flex-basis:calc((100% - 12px) / 2);}
}

@media (max-width: 640px){
  /* 1-up on mobile */
  .aes-strip-gallery a{flex-basis:100%;max-width:none;}
}

/* ========== CONTENT ========== */
.aes-sale-body { padding:40px 0; }
.aes-sale-section { margin-bottom:46px; }
.aes-sale-section h2,
.aes-sale-section h3 {
  color:#d63384;
  margin-bottom:12px;
}

/* ========== SINGLE LAYOUT (TABS) ========== */
.aes-sale-layout{display:block}
.aes-sale-main{min-width:0;max-width:980px;margin:0 auto}

.aes-aside-card{
  background:#fdebf2;
  border:1px solid #f1d6e2;
  border-radius:18px;
  padding:18px 20px;
  box-shadow:0 12px 32px rgba(0,0,0,.08);
  width:100%;
}

/* Glass variant for the left strip box */
.aes-aside-card--glass{
  background:linear-gradient(180deg, rgba(255,255,255,.72), rgba(253,235,242,.48));
  border:1px solid rgba(241,214,226,.85);
  box-shadow:0 18px 44px rgba(0,0,0,.10);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.aes-aside-header{
  font-weight:900;
  color:#d63384;
  font-size:14px;
  letter-spacing:.6px;
  text-transform:uppercase;
  margin:0 0 12px;
}

.aes-aside-kv{display:grid;gap:10px;margin:0}
.aes-kv-row{display:grid;grid-template-columns:64px 1fr;gap:10px;align-items:start}
.aes-kv-label{font-weight:800;color:#555}
.aes-kv-value{color:#222;line-height:1.35}

.aes-kv-sub{
  margin-top:6px;
  color:#333;
  font-size:13px;
  line-height:1.4;
}
.aes-kv-sub p{margin:0 0 8px}
.aes-kv-sub p:last-child{margin-bottom:0}

.aes-gallery-subhead{
  margin:26px 0 12px;
  font-weight:900;
  color:#d63384;
  letter-spacing:.3px;
  text-transform:uppercase;
  font-size:13px;
}
.aes-kv-sub{margin-top:8px;color:#444;font-size:13px;line-height:1.4}
.aes-kv-sub p{margin:0 0 8px}
.aes-kv-sub p:last-child{margin-bottom:0}

.aes-aside-subheader{
  font-weight:900;
  color:#d63384;
  font-size:13px;
  letter-spacing:.4px;
  text-transform:uppercase;
  margin:0 0 10px;
}
.aes-aside-link{color:#d63384;font-weight:800;text-decoration:none}
.aes-aside-link:hover{text-decoration:underline}
.aes-aside-divider{height:1px;background:rgba(214,51,132,.18);margin:14px 0}
.aes-aside-rich p{margin:0 0 10px;color:#333;line-height:1.45}
.aes-aside-rich p:last-child{margin-bottom:0}

/* Tabs */
.aes-sale-tabs{display:flex;gap:10px;margin:0 0 18px;flex-wrap:wrap;justify-content:center}
.aes-sale-tab{
  appearance:none;
  border:1px solid #f1d6e2;
  background:#fff;
  color:#444;
  padding:12px 18px;
  border-radius:999px;
  font-weight:800;
  font-size:15px;
  cursor:pointer;
}
.aes-sale-tab.is-active{background:#d63384;color:#fff;border-color:#d63384}
.aes-sale-panel{display:none}
.aes-sale-panel.is-active{display:block}

/* ========== GALLERY ========== */
.aes-sale-gallery { background:#fafafa; padding:60px 0; }
.aes-gallery-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:18px;
}
.aes-gallery-grid img {
  width:100%;
  height:280px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid #f1d6e2;
}

/* ========== LIGHTBOX / CAROUSEL ========== */
.aes-lightbox{display:block}
.aes-lightbox img{cursor:pointer}
.aes-lb{position:fixed;inset:0;z-index:99999;display:none;align-items:center;justify-content:center;padding:24px}
.aes-lb.is-open{display:flex}
.aes-lb__bg{position:absolute;inset:0;background:rgba(0,0,0,.85)}
.aes-lb__stage{position:relative;max-width:min(1100px,92vw);max-height:86vh;overflow:hidden;border-radius:14px;box-shadow:0 20px 60px rgba(0,0,0,.55);z-index:1;touch-action:manipulation;}
.aes-lb__img{position:relative;max-width:100%;max-height:86vh;transform-origin:center center;will-change:transform;user-select:none;-webkit-user-drag:none;}
.aes-lb__stage{cursor:zoom-in;}
.aes-lb__stage.is-grabbing{cursor:grabbing;}
.aes-lb-open{overflow:hidden;}
.aes-lb__img{transform:translateZ(0);}
.aes-lb__toolbar{position:absolute;left:50%;bottom:20px;transform:translateX(-50%);display:flex;gap:10px;z-index:2;}
.aes-lb__close,.aes-lb__prev,.aes-lb__next{position:absolute;top:18px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.22);color:#fff;border-radius:999px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:24px;line-height:1}
.aes-lb__close{right:18px}
.aes-lb__prev{left:18px;top:50%;transform:translateY(-50%)}
.aes-lb__next{right:18px;top:50%;transform:translateY(-50%)}
.aes-lb__close:hover,.aes-lb__prev:hover,.aes-lb__next:hover{background:rgba(255,255,255,.26)}

.aes-lb__btn{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.22);color:#fff;border-radius:999px;padding:10px 14px;cursor:pointer;font-weight:800;letter-spacing:.2px;}
.aes-lb__btn:hover{background:rgba(255,255,255,.26)}

/* ========== RESPONSIVE ========== */
@media (max-width:768px){
  .aes-sale-hero-bg img { height:300px; }
  .aes-sale-title { font-size:26px; }
  .aes-strip-layout{grid-template-columns:1fr;gap:14px;align-items:stretch}
  .aes-strip-aside{grid-column:auto;justify-self:stretch}
  .aes-strip-carousel{grid-column:auto;justify-self:stretch;max-width:none}
  .aes-strip-arrow--prev{left:6px;}
  .aes-strip-arrow--next{right:6px;}
}

@media (max-width:480px){
  .aes-sale-hero-bg img { height:240px; }
  .aes-sale-title { font-size:22px; }
}
