/* ============================================================
   Summit Routes – Review Slider  |  slider.css
   Elegant, mountain-inspired design.
   Brand palette: cream #f5f0e8, dark teal #1b4b5a,
   gold #c9a84c, TA green #34e0a1
   ============================================================ */

/* ── Reset / base ──────────────────────────────────────────── */
.srr-wrapper *,
.srr-wrapper *::before,
.srr-wrapper *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Wrapper ────────────────────────────────────────────────── */
.srr-wrapper {
    --srr-bg:         #f7f3ec;
    --srr-card-bg:    #ffffff;
    --srr-dark:       #1b4b5a;
    --srr-mid:        #3d6b7a;
    --srr-muted:      #8a9ea6;
    --srr-gold:       #c9a84c;
    --srr-green:      #34e0a1;
    --srr-radius:     14px;
    --srr-shadow:     0 2px 16px rgba(27,75,90,.08), 0 1px 4px rgba(27,75,90,.05);
    --srr-shadow-hov: 0 8px 32px rgba(27,75,90,.14), 0 2px 8px rgba(27,75,90,.08);
    --srr-font:       'Georgia', 'Times New Roman', serif;
    --srr-font-ui:    system-ui, -apple-system, 'Segoe UI', sans-serif;
    --srr-transition: 0.9s ease-in-out;

    font-family:  var(--srr-font-ui);
    background:   var(--srr-bg);
    border-radius: 20px;
    padding:      48px 40px 36px;
    position:     relative;
    overflow:     hidden;
}

/* subtle mountain silhouette watermark */
.srr-wrapper::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120 L0 80 L120 30 L240 70 L360 20 L480 60 L600 10 L720 50 L840 15 L960 55 L1080 25 L1200 65 L1320 35 L1440 75 L1440 120Z' fill='%231b4b5a' opacity='0.04'/%3E%3C/svg%3E") no-repeat bottom/100%;
    pointer-events: none;
}

/* ── Header ────────────────────────────────────────────────── */
.srr-header { text-align: center; margin-bottom: 36px; }

.srr-badge {
    display:        inline-flex;
    align-items:    center;
    gap:            6px;
    background:     rgba(52,224,161,.12);
    color:          #0d8a5a;
    border:         1px solid rgba(52,224,161,.35);
    border-radius:  999px;
    font-size:      12px;
    font-weight:    600;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding:        5px 14px;
    margin-bottom:  14px;
}

.srr-heading {
    font-family:  var(--srr-font);
    font-size:    clamp(1.3rem, 3vw, 2rem);
    color:        var(--srr-dark);
    font-weight:  700;
    line-height:  1.2;
    margin-bottom: 10px;
    letter-spacing: -.01em;
}

.srr-subheading {
    color:      var(--srr-mid);
    font-size:  .9rem;
    max-width:  520px;
    margin:     0 auto 16px;
    line-height: 1.5;
}

.srr-overall {
    display:     flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.srr-overall-label {
    color:      var(--srr-muted);
    font-size:  .85rem;
}

.srr-overall-label a {
    color:           var(--srr-dark);
    text-decoration: underline;
    text-decoration-color: var(--srr-gold);
    text-underline-offset: 3px;
    font-weight: 600;
}

.srr-overall-label a:hover { color: var(--srr-gold); }

/* ── Stars ──────────────────────────────────────────────────── */
.srr-stars {
    font-size:    1rem;
    color:        #ccc;
    letter-spacing: 1px;
    line-height:  1;
}

.srr-stars--gold,
.srr-card .srr-stars { color: var(--srr-gold); }

/* ── Track / slider container ───────────────────────────────── */
.srr-track-wrapper {
    position: relative;
    display:  flex;
    align-items: center;
    gap: 0;
}

.srr-track-clip {
    overflow: hidden;
    flex:     1;
    min-width: 0;
}

.srr-track {
    display:    flex;
    gap:        18px;
    transition: transform var(--srr-transition);
    will-change: transform;
    align-items: stretch;
}

/* ── Card ───────────────────────────────────────────────────── */
.srr-card {
    background:    var(--srr-card-bg);
    border-radius: var(--srr-radius);
    box-shadow:    var(--srr-shadow);
    padding:       26px 24px 20px;
    display:       flex;
    flex-direction: column;
    gap:           14px;
    transition:    box-shadow .25s ease, transform .25s ease;
    flex-shrink:   0;
    /* width is set by JS based on columns attr */
}

.srr-card:hover {
    box-shadow: var(--srr-shadow-hov);
    transform:  translateY(-3px);
}

/* ── Card top row ────────────────────────────────────────────── */
.srr-card-top {
    display:     flex;
    align-items: center;
    justify-content: space-between;
}

/* ── Source badge (TA / Google) ─────────────────────────────── */
.srr-source-badge {
    width:  32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.srr-source-badge--tripadvisor { background: #e8faf5; }
.srr-source-badge--google       { background: #f0f4ff; }

/* ── Review text ────────────────────────────────────────────── */
.srr-text {
    font-family:  var(--srr-font);
    font-size:    .93rem;
    line-height:  1.65;
    color:        #444;
    font-style:   italic;
    flex:         1;
    border:       none;
    quotes:       '\201C' '\201D';
}

.srr-text-inner {
    display:            -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow:           hidden;
}

.srr-text p::before,
.srr-text-inner::before { content: open-quote;  color: var(--srr-gold); font-size: 1.4em; line-height: 0; vertical-align: -.25em; margin-right: 2px; }
.srr-text p::after,
.srr-text-inner::after  { content: close-quote; color: var(--srr-gold); font-size: 1.4em; line-height: 0; vertical-align: -.25em; margin-left:  2px; }

.srr-read-more {
    display:         inline-block;
    margin-top:      8px;
    font-size:       .75rem;
    font-weight:     600;
    color:           var(--srr-mid);
    background:      none;
    border:          none;
    padding:         0;
    cursor:          pointer;
    font-family:     var(--srr-font-ui);
    font-style:      normal;
    letter-spacing:  .02em;
    transition:      color .2s;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
}

.srr-read-more:hover {
    color:                   var(--srr-dark);
    text-decoration-color:   var(--srr-gold);
}

/* ── Card footer (author + route) ───────────────────────────── */
.srr-card-footer {
    display:         flex;
    justify-content: space-between;
    align-items:     flex-end;
    gap:             8px;
    flex-wrap:       wrap;
    border-top:      1px solid #f0ede7;
    padding-top:     14px;
    margin-top:      auto;
}

.srr-author-block {
    display:     flex;
    align-items: center;
    gap:         9px;
}

.srr-flag  { font-size: 1.35rem; line-height: 1; }

.srr-author-name {
    display:     block;
    font-weight: 700;
    font-size:   .88rem;
    color:       var(--srr-dark);
}

.srr-author-meta {
    display:   block;
    font-size: .75rem;
    color:     var(--srr-muted);
    margin-top: 1px;
}

.srr-route-block {
    text-align: right;
    flex-shrink: 0;
}

.srr-route-label {
    display:      block;
    font-size:    .78rem;
    font-weight:  600;
    color:        var(--srr-mid);
}

.srr-season {
    display:   block;
    font-size: .72rem;
    color:     var(--srr-muted);
    margin-top: 2px;
}

/* ── Verify link ────────────────────────────────────────────── */
.srr-verify-link {
    display:         inline-flex;
    align-items:     center;
    gap:             5px;
    font-size:       .72rem;
    color:           var(--srr-muted);
    text-decoration: none;
    transition:      color .2s;
    letter-spacing:  .02em;
    margin-top:      4px;
}

.srr-verify-link:hover { color: var(--srr-green); }
.srr-verify-link svg   { flex-shrink: 0; }

/* ── Arrow buttons ──────────────────────────────────────────── */
.srr-arrow {
    background:    var(--srr-card-bg);
    border:        1px solid #e0dbd0;
    border-radius: 50%;
    width:         44px;
    height:        44px;
    display:       flex;
    align-items:   center;
    justify-content: center;
    cursor:        pointer;
    color:         var(--srr-dark);
    flex-shrink:   0;
    transition:    background .2s, border-color .2s, transform .15s;
    z-index:       2;
    position:      relative;
}

.srr-arrow:hover {
    background:   var(--srr-dark);
    border-color: var(--srr-dark);
    color:        #fff;
    transform:    scale(1.08);
}

.srr-arrow--prev { margin-right: 12px; }
.srr-arrow--next { margin-left:  12px; }

.srr-arrow:disabled {
    opacity: .35;
    cursor:  not-allowed;
}

/* ── Dots ───────────────────────────────────────────────────── */
.srr-dots {
    display:         flex;
    justify-content: center;
    gap:             8px;
    margin-top:      22px;
}

.srr-dot {
    width:         9px;
    height:        9px;
    border-radius: 50%;
    background:    #d4cfc5;
    border:        none;
    cursor:        pointer;
    padding:       0;
    transition:    background .2s, transform .2s, width .2s;
}

.srr-dot--active {
    background: var(--srr-dark);
    width:      26px;
    border-radius: 999px;
}

/* ── Footer link ────────────────────────────────────────────── */
.srr-footer-link {
    text-align:  center;
    margin-top:  20px;
}

.srr-footer-link a {
    color:           var(--srr-dark);
    font-size:       .85rem;
    font-weight:     600;
    text-decoration: underline;
    text-decoration-color: var(--srr-gold);
    text-underline-offset: 3px;
    transition:      color .2s;
}

.srr-footer-link a:hover { color: var(--srr-gold); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .srr-wrapper { padding: 36px 20px 28px; }
}

@media (max-width: 600px) {
    .srr-wrapper { padding: 28px 12px 22px; border-radius: 12px; }
    .srr-heading { font-size: 1.25rem; }
    .srr-arrow { width: 36px; height: 36px; }
    .srr-arrow--prev { margin-right: 6px; }
    .srr-arrow--next { margin-left:  6px; }
    .srr-card { padding: 20px 16px 16px; }
    .srr-card-footer { flex-direction: column; align-items: flex-start; }
    .srr-route-block { text-align: left; }
}

/* ── Instant-move helper (toggled by JS for reflow trick) ────── */
.srr-no-transition { transition: none !important; }

/* ── Reduced-motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .srr-track { transition: none; }
    .srr-card  { transition: none; }
}
