/* ═══════════════════════════════════════════════════════════
   D · GLASS — Isolated Standalone Styles
   Preset: D|pill|outline|soft|default|frame|custom:#2483c6:#a22020
           ribbon|full|text|default
   ═══════════════════════════════════════════════════════════

   HTML structure produced by cardD():

   <article class="card vd-card card--pub|card--priv [card--excl]">
     <span class="excl-fx"></span>                  ← only on exclusive
     <div class="vd-visual">
       <img src="..." alt="" loading="lazy">
       <div class="vd-glass">
         <span class="vd-price">5.8 M. THB</span>
         <span class="vd-loc">West Coast</span>
       </div>
     </div>
     <div class="card-body">
       <h4 class="card-title"><a href="...">Title</a></h4>
       <div class="vd-pills">
         <span class="ft-pill ft-pill--seaview">Sea View</span>
         ...
       </div>
       <div class="card-foot">
         <a class="card-btn card-btn--pub">See Details</a>
         OR
         <button class="card-btn card-btn--priv">Details on request</button>
       </div>
     </div>
   </article>

   Carousel wrapper:

   <section class="cr-section">
     <div class="cr-header">
       <h2 class="cr-heading"><a href="...">Title</a></h2>
       <a class="cr-viewall" href="...">View all →</a>
     </div>
     <div class="cr-stage">
       <button class="cr-arrow cr-arrow--prev">‹</button>
       <div class="cr-viewport">
         <div class="cr-track"> ...cards... </div>
       </div>
       <button class="cr-arrow cr-arrow--next">›</button>
     </div>
   </section>
   ═══════════════════════════════════════════════════════════ */

/* ─── Reset & Page Shell ─── */
.deeone-carousel2, .deeone-carousel2 *, .deeone-carousel2 *::before, .deeone-carousel2 *::after { box-sizing: border-box; margin: 0; padding: 0; }
.deeone-carousel2 { background: #fff; color: #1e1e1e; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.deeone-carousel2 img { display: block; max-width: 100%; }
.deeone-carousel2 a { text-decoration: none; color: inherit; }
.deeone-carousel2 button { cursor: pointer; border: none; background: none; }
.deeone-carousel2-wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* ─── Color Tokens (custom: #2483c6 / #a22020) ─── */
.deeone-carousel2 {
  --pub: #2483c6;
  --pub-dark: #166197;
  --pub-pale: #cad8e2;
  --pub-grad: linear-gradient(135deg, #135c90, #5fafe7);

  --priv: #a22020;
  --priv-dark: #721313;
  --priv-pale: #d4b0b0;
  --priv-grad: linear-gradient(135deg, #6b0f0f, #e03e3e);

  --ft-excl: #C4A265; --ft-excl-bg: #FAF6EE;
  --ft-sea: #5E9EAD;  --ft-sea-bg: #EEF5F7;
  --ft-beach: #C4A87C; --ft-beach-bg: #F8F4EE;
  --ft-chan: #8C8078;  --ft-chan-bg: #F3F1EE;
  --ft-river: #7BA37E; --ft-river-bg: #EFF5F0;

  --txt: #1e1e1e;
  --txt2: #777;
  --txt3: #aaa;
  --brd: #e8e8e8;
  --bg: #ffffff;
  --surf: #ffffff;
  --r: 10px;
  --r-lg: 16px;
  --t: .22s ease;
  --shadow: 0 1px 4px rgba(0,0,0,.06);
  --shadow-h: 0 8px 24px rgba(0,0,0,.1);
}


/* ─── Carousel Shell ─── */

.deeone-carousel2.cr-section { margin: 0 0 30px; }

.deeone-carousel2 .cr-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 2px solid var(--brd);
  position: relative;
}

/* D-specific header: gradient background, no border */
.deeone-carousel2 .cr-header {
  background: linear-gradient(135deg, rgba(36,131,198,.06), rgba(162,32,32,.04));
  border: none; border-radius: var(--r); padding: 14px 18px;
}
.deeone-carousel2 .cr-header::after { display: none; }

.deeone-carousel2 .cr-heading {
  font-size: 1.4rem; font-weight: 700;
  letter-spacing: -.02em;
}
.deeone-carousel2 .cr-heading a {
  background: linear-gradient(135deg, var(--txt), #444);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; transition: opacity var(--t);
}
.deeone-carousel2 .cr-heading a:hover { opacity: .7; }

.deeone-carousel2 .cr-viewall {
  font-size: .78rem; font-weight: 700; white-space: nowrap;
  color: var(--pub);
  padding: 5px 14px; border: 1.5px solid var(--pub); border-radius: 20px;
  transition: all var(--t); text-decoration: none;
}
.deeone-carousel2 .cr-viewall:hover { background: var(--pub); color: #fff; }


/* ─── Carousel Mechanics ─── */

.deeone-carousel2 .cr-stage { display: flex; align-items: center; gap: 8px; }

.deeone-carousel2 .cr-viewport {
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none;
  -ms-overflow-style: none;
  container-type: inline-size; flex: 1; min-width: 0;
}
.deeone-carousel2 .cr-viewport::-webkit-scrollbar { display: none; }

.deeone-carousel2 .cr-track { display: flex; gap: 16px; padding: 4px 2px 10px; }

.deeone-carousel2 { --card-4: calc(25cqi - 12px); }


/* ─── Arrows (D: frosted glass square) ─── */

.deeone-carousel2 .cr-arrow {
  flex: 0 0 auto;
  border-radius: var(--r);
  background: rgba(255,255,255,.2); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: none; color: var(--pub);
  width: 38px; height: 38px; font-size: 1.2rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t); cursor: pointer;
}
.deeone-carousel2 .cr-arrow:hover { background: rgba(255,255,255,.4); transform: scale(1.1); }
.deeone-carousel2 .cr-arrow:disabled { opacity: 0; pointer-events: none; }


/* ─── Card Base ─── */

.deeone-carousel2 .card {
  scroll-snap-align: start;
  background: var(--surf);
  display: flex; flex-direction: column;
  transition: box-shadow var(--t), transform var(--t);
}
.deeone-carousel2 .card:hover { box-shadow: var(--shadow-h); transform: translateY(-3px); }

.deeone-carousel2 .card-body { padding: 12px 14px 16px; flex: 1; display: flex; flex-direction: column; }

.deeone-carousel2 .card-title {
  font-size: .84rem; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: auto;
}
.deeone-carousel2 .card--priv .card-title { color: var(--txt2); }
.deeone-carousel2 .card-title a { transition: color var(--t); text-decoration: none; color: inherit; }
.deeone-carousel2 .card-title a:hover { color: var(--pub); }

.deeone-carousel2 .card-foot { margin-top: 12px; }


/* ─── CTA Button (pill shape) ─── */

.deeone-carousel2 .card-btn {
  display: block; width: 100%; text-align: center;
  padding: 9px 18px; border-radius: 50px;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  transition: all var(--t); cursor: pointer;
  text-decoration: none;
}
.deeone-carousel2 .card-btn--pub {
  background: var(--pub-grad); color: #fff; border: none;
}
.deeone-carousel2 .card-btn--pub:hover {
  filter: brightness(1.1);
  box-shadow: 0 3px 12px color-mix(in srgb, var(--pub) 30%, transparent);
}
.deeone-carousel2 .card-btn--priv {
  border: 2px solid var(--priv); color: var(--priv); background: transparent;
}
.deeone-carousel2 .card-btn--priv:hover {
  background: var(--priv-grad); color: #fff; border-color: transparent;
}

.deeone-carousel2 .deeone-carousel2__private-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.deeone-carousel2 .private-inquiry-added .deeone-carousel2__private-cta {
  display: inline-flex;
  width: 100%;
  min-height: 37px;
  margin: 0;
  padding: 9px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #2f9e5b;
  box-shadow: none;
  font-weight: 700;
  text-align: center;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: default;
}

.deeone-carousel2 .private-inquiry-added .deeone-carousel2__private-cta::before {
  content: '✓';
  font-size: .95em;
  font-weight: 900;
  line-height: 1;
  color: #2f9e5b;
}

.deeone-carousel2 .private-inquiry-added .deeone-carousel2__private-cta::after {
  content: none;
}

.deeone-carousel2 .private-inquiry-added .deeone-carousel2__private-cta:hover {
  background: transparent;
  border-color: transparent;
  color: #2f9e5b;
  transform: none;
}

.deeone-carousel2 .private-inquiry-added.private-inquiry-just-added .deeone-carousel2__private-cta {
  animation: deeone-carousel2-request-added 0.72s ease;
}

/* ─── Feature Pills (outline style, text mode — no emojis) ─── */

.deeone-carousel2 .ft-ico { display: none; }

.deeone-carousel2 .ft-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .6rem; font-weight: 600; letter-spacing: .02em;
  padding: 2px 8px; border-radius: 3px;
  white-space: nowrap;
  background: transparent;
  border: 1.5px solid currentColor;
}
.deeone-carousel2 .ft-pill--exclusive { color: var(--ft-excl); }
.deeone-carousel2 .ft-pill--seaview   { color: var(--ft-sea); }
.deeone-carousel2 .ft-pill--beach     { color: var(--ft-beach); }
.deeone-carousel2 .ft-pill--chanote   { color: var(--ft-chan); }
.deeone-carousel2 .ft-pill--river     { color: var(--ft-river); }
.deeone-carousel2 .ft-pill--seafront  { color: var(--ft-sea); }


/* ─── D · GLASS Card ─── */

.deeone-carousel2 .vd-card {
  flex: 0 0 var(--card-4); min-width: 220px;
  border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow);
}
.deeone-carousel2 .card--pub.vd-card {
  box-shadow: var(--shadow), inset 0 -3px 0 var(--pub);
}
.deeone-carousel2 .card--priv.vd-card {
  box-shadow: var(--shadow), inset 0 -3px 0 var(--priv);
}

.deeone-carousel2 .vd-visual {
  position: relative; aspect-ratio: 3/2;
  overflow: hidden; background: #ddd;
}
.deeone-carousel2 .vd-visual img { width: 100%; height: 100%; object-fit: cover; }

.deeone-carousel2 .vd-glass {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 10px;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(14px);
}
.deeone-carousel2 .vd-price { font-size: .82rem; font-weight: 700; color: #fff; }
.deeone-carousel2 .vd-loc { font-size: .62rem; color: rgba(255,255,255,.8); font-weight: 500; }

.deeone-carousel2 .vd-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }


/* ─── Color Mode: Frame ─── */

.deeone-carousel2 .card--pub.vd-card {
  border: 2px solid color-mix(in srgb, var(--pub) 40%, transparent);
  background: color-mix(in srgb, var(--pub) 4%, #fff);
}
.deeone-carousel2 .card--priv.vd-card {
  border: 2px solid color-mix(in srgb, var(--priv) 40%, transparent);
  background: color-mix(in srgb, var(--priv) 4%, #fff);
}


/* ─── Exclusive: Ribbon ─── */

.deeone-carousel2 .card--excl { position: relative; }
.deeone-carousel2 .excl-fx {
  position: absolute; z-index: 5;
  pointer-events: none; border-radius: inherit;
  overflow: hidden;
  top: 0; right: 0; width: 90px; height: 90px;
}
.deeone-carousel2 .excl-fx::after {
  content: 'EXCLUSIVE';
  position: absolute; top: 16px; right: -24px;
  width: 120px; text-align: center;
  padding: 4px 0;
  font-size: .48rem; font-weight: 800; letter-spacing: .12em;
  color: #fff;
  background: linear-gradient(135deg, #b8943f, #d4b87a);
  transform: rotate(45deg);
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}


/* ─── Soft Radius Overrides ─── */

.deeone-carousel2 .card { border-radius: 10px; }
.deeone-carousel2 .card .card-btn { border-radius: 50px; }  /* pill CTA already round */
.deeone-carousel2 .card .ft-pill { border-radius: 3px; }


@keyframes deeone-carousel2-request-added {
  0% { opacity: .5; transform: translateY(1px); }
  45% { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); }
}


/* ─── Mobile Swipe Hint ─── */

@keyframes deeone-carousel2-swipe-hint {
  0%, 100% { transform: translateX(0); opacity: .78; }
  45% { transform: translateX(4px); opacity: .96; }
  60% { transform: translateX(-1px); opacity: .88; }
}

@media (max-width: 767px) {
  .deeone-carousel2 .cr-header {
    margin-bottom: 12px;
    padding: 10px 14px;
    gap: 10px;
  }

  .deeone-carousel2 .cr-heading {
    font-size: 1.08rem;
    line-height: 1.2;
  }

  .deeone-carousel2 .cr-viewall {
    font-size: .66rem;
    padding: 4px 10px;
  }

  .deeone-carousel2 .cr-stage {
    position: relative;
    display: block;
  }

  .deeone-carousel2 .cr-arrow--prev {
    display: none;
  }

  .deeone-carousel2 .cr-arrow--next {
    position: absolute;
    top: 8px;
    right: 0;
    z-index: 4;
    width: 56px;
    height: 42px;
    padding-right: 11px;
    justify-content: flex-end;
    border-radius: 999px 0 0 999px;
    border: none;
    color: var(--pub);
    font-size: 1.95rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 1px 0 rgba(255,255,255,.35);
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.46) 42%, rgba(255,255,255,.88) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    animation: deeone-carousel2-swipe-hint 2.6s ease-in-out infinite;
  }

  .deeone-carousel2 .cr-arrow--next::before {
    content: '';
    position: absolute;
    top: -4px;
    right: 0;
    bottom: -4px;
    left: -34px;
    border-radius: 999px 0 0 999px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.08) 38%, rgba(255,255,255,.34) 100%);
    pointer-events: none;
    z-index: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .deeone-carousel2 .cr-arrow--next {
    animation: none;
  }
}
