/* =========================================================
   TOURISM MANAGER - CUSTOMER REVIEWS & USER MOMENTS CSS
   Bento Travel Journal & Editorial Review System
========================================================= */

/* ---------------------------------------------------------
   GLOBAL DESIGN TOKENS
--------------------------------------------------------- */
:root {
    --tm-blue: #0064c1;
    --tm-blue-deep: #003463;
    --tm-orange: #f8753a;
    --tm-white: #ffffff;
    --tm-sand: #f6f8fb;
    --tm-ink: #0e2136;
    --tm-ink-soft: #5b6b7c;
    --tm-line: #e4e9f0;
}

/* =========================================================
   1. USER MOMENTS SHOWCASE ([usermoments])
========================================================= */

.tm-user-moments {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 100vw;
    padding: 70px 0 60px;
    background: var(--tm-sand);
    color: var(--tm-ink);
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    overflow-x: clip;
}

.tm-user-moments *,
.tm-user-moments *::before,
.tm-user-moments *::after {
    box-sizing: border-box;
}

.tm-um-container {
    width: 100%;
    max-width: 100%;
    padding: 0 clamp(16px, 3.5vw, 40px);
    margin: 0 auto;
    box-sizing: border-box;
}

/* Header */
.tm-um-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 34px;
    padding: 0 4px;
}

.tm-um-head-main {
    max-width: 780px;
}

.tm-um-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    color: var(--tm-orange);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.tm-um-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--tm-orange);
}

.tm-um-title {
    margin: 0;
    color: var(--tm-blue-deep);
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(34px, 4.5vw, 56px);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -.035em;
}

.tm-um-title em {
    color: var(--tm-orange);
    font-style: italic;
}

.tm-um-intro {
    max-width: 650px;
    margin: 12px 0 0;
    color: var(--tm-ink-soft);
    font-size: 14px;
    line-height: 1.75;
}

/* Carousel Viewport & Track */
.tm-um-carousel {
    position: relative;
    width: 100%;
}

.tm-um-viewport {
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
}

.tm-um-track {
    display: flex;
    transition: transform .7s cubic-bezier(.77,0,.18,1);
    will-change: transform;
}

.tm-um-slide {
    min-width: 100%;
    flex: 0 0 100%;
}

/* Story Card */
.tm-um-story {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr);
    min-height: 540px;
    background: #fff;
    border: 1px solid var(--tm-line);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(14,33,54,.08);
    overflow: hidden;
}

/* In-Card Media Gallery / Carousel */
.tm-um-card-media {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 540px;
    background: #0b1a2c;
    overflow: hidden;
    cursor: pointer;
}

.tm-um-card-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.tm-um-card-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.tm-um-card-photo-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity .65s ease, transform .65s ease;
    pointer-events: none;
    z-index: 1;
}

.tm-um-card-photo-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

.tm-um-card-photo-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform .7s ease;
}

.tm-um-card-media:hover .tm-um-card-photo-slide.is-active img {
    transform: scale(1.03);
}

/* Location Badge */
.tm-um-location {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 5;
    padding: 7px 14px;
    background: rgba(0, 52, 99, 0.92);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

/* In-Card Photo Carousel Dots */
.tm-um-card-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    border-radius: 20px;
}

.tm-um-card-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: all .25s ease;
}

.tm-um-card-dot.is-active {
    background: var(--tm-orange);
    width: 22px;
    border-radius: 10px;
}

/* In-Card Photo Counter */
.tm-um-card-counter {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(6px);
    border-radius: 16px;
}

/* Video Trigger Button */
.tm-um-video {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 18px 0 10px;
    border: 1px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.95);
    color: var(--tm-blue-deep);
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    transition: transform .2s ease, background .2s ease;
}

.tm-um-video:hover {
    background: #ffffff;
    transform: translateY(-2px);
}

.tm-um-video-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--tm-orange);
    color: #fff;
    font-size: 11px;
}

.tm-um-video-text {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Review Content Panel */
.tm-um-review {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 48px 46px;
    background: var(--tm-blue-deep);
    color: #fff;
}

.tm-um-review::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: var(--tm-orange);
}

.tm-um-review::after {
    content: "“";
    position: absolute;
    right: 22px;
    top: 24px;
    color: rgba(255,255,255,.07);
    font-family: Georgia, serif;
    font-size: 145px;
    line-height: .7;
    pointer-events: none;
}

.tm-um-profile {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.tm-um-avatar {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--tm-orange);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.tm-um-user-name {
    display: block;
    margin-bottom: 4px;
    font-size: 16.5px;
    font-weight: 800;
    color: #fff;
}

.tm-um-user-meta {
    display: block;
    color: rgba(255,255,255,.72);
    font-size: 12.5px;
}

.tm-um-rating {
    position: relative;
    z-index: 2;
    margin-bottom: 18px;
    color: var(--tm-orange);
    font-size: 22px;
    letter-spacing: 5px;
    line-height: 1;
}

.tm-um-review-title {
    position: relative;
    z-index: 2;
    margin: 0 0 16px;
    color: #fff;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(26px, 2.8vw, 40px);
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -.02em;
}

.tm-um-review-text {
    position: relative;
    z-index: 2;
    margin: 0;
    color: rgba(255,255,255,.88);
    font-size: 16px;
    line-height: 1.85;
}

.tm-um-review-bottom {
    position: relative;
    z-index: 2;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.14);
}

.tm-um-review-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 22px;
    color: rgba(255,255,255,.72);
    font-size: 12.5px;
    font-weight: 700;
}

.tm-um-review-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tm-um-review-meta b {
    color: var(--tm-orange);
}

.tm-um-explore {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 30px;
    background: var(--tm-orange);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 6px;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.tm-um-explore:hover {
    background: #fff;
    color: var(--tm-blue-deep) !important;
    transform: translateY(-2px);
}

/* Carousel Navigation Bar */
.tm-um-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 26px;
}

.tm-um-progress-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tm-um-counter {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.tm-um-counter-current {
    color: var(--tm-blue-deep);
    font-family: "Fraunces", Georgia, serif;
    font-size: 28px;
    font-weight: 600;
}

.tm-um-counter-total {
    color: #98a5b1;
    font-size: 12px;
    font-weight: 700;
}

.tm-um-progress {
    width: 200px;
    height: 4px;
    background: #dce2e7;
    overflow: hidden;
    border-radius: 2px;
}

.tm-um-progress-bar {
    display: block;
    width: 25%;
    height: 100%;
    background: var(--tm-orange);
    transition: width .7s ease;
}

.tm-um-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tm-um-next-label {
    margin-right: 8px;
    color: var(--tm-blue-deep);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tm-um-next-label span {
    color: var(--tm-orange);
    margin-left: 4px;
}

.tm-um-arrow {
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid var(--tm-line);
    border-radius: 8px;
    background: #fff;
    color: var(--tm-blue-deep);
    cursor: pointer;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.tm-um-arrow:hover {
    background: var(--tm-blue-deep);
    color: #fff;
    transform: translateY(-1px);
}

/* Empty State for [usermoments] */
.tm-um-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid var(--tm-line);
    border-radius: 8px;
}

.tm-um-empty-title {
    font-family: "Fraunces", Georgia, serif;
    font-size: 26px;
    color: var(--tm-blue-deep);
    margin: 0 0 10px;
}

.tm-um-empty-text {
    font-size: 14px;
    color: var(--tm-ink-soft);
    margin: 0;
}

/* =========================================================
   2. LIGHTBOX MODAL (Gallery Viewer)
========================================================= */

.tm-um-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,30,55,.96);
}

.tm-um-lightbox.is-open {
    display: flex;
}

.tm-um-lightbox-stage {
    position: relative;
    width: min(1100px, 100%);
    height: min(88vh, 820px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-um-lightbox-image {
    max-width: calc(100% - 100px);
    max-height: calc(100% - 40px);
    object-fit: contain;
    border-radius: 4px;
}

.tm-um-lightbox-btn {
    position: absolute;
    z-index: 5;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}

.tm-um-lightbox-btn:hover {
    background: rgba(255,255,255,.2);
}

.tm-um-lightbox-close {
    top: 0;
    right: 0;
}

.tm-um-lightbox-prev {
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.tm-um-lightbox-next {
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.tm-um-lightbox-counter {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.8);
    font-size: 11px;
    letter-spacing: 0.08em;
}

/* =========================================================
   3. VIDEO MODAL (YouTube controlled player)
========================================================= */

.tm-um-video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,30,55,.96);
}

.tm-um-video-modal.is-open {
    display: flex;
}

.tm-um-video-box {
    position: relative;
    width: min(950px, 100%);
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,.5);
}

.tm-um-video-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.tm-um-video-close {
    position: absolute;
    right: 0;
    top: -50px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}

.tm-um-video-close:hover {
    background: rgba(255,255,255,.2);
}

/* =========================================================
   4. DESTINATION SINGLE PAGE - REVIEWS SECTION
========================================================= */

.tm-destination-reviews-wrap {
    padding: 70px 0;
    background: var(--tm-sand);
    border-top: 1px solid var(--tm-line);
    font-family: "Manrope", sans-serif;
    color: var(--tm-ink);
}

.tm-destination-reviews-wrap *,
.tm-destination-reviews-wrap *::before,
.tm-destination-reviews-wrap *::after {
    box-sizing: border-box;
}

/* Section Header */
.tm-reviews-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tm-reviews-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--tm-orange);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.tm-reviews-eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--tm-orange);
}

.tm-reviews-title {
    margin: 0;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(28px, 3.5vw, 44px);
    color: var(--tm-blue-deep);
    font-weight: 600;
    letter-spacing: -.02em;
}

.tm-reviews-summary-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    padding: 14px 22px;
    border: 1px solid var(--tm-line);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(14,33,54,.04);
}

.tm-reviews-score {
    font-family: "Fraunces", Georgia, serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--tm-blue-deep);
    line-height: 1;
}

.tm-reviews-summary-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tm-reviews-summary-stars {
    color: var(--tm-orange);
    font-size: 13px;
    letter-spacing: 2px;
}

.tm-reviews-summary-count {
    font-size: 11px;
    color: var(--tm-ink-soft);
    font-weight: 600;
}

/* Two-column layout for Form + Reviews List */
.tm-reviews-grid-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.95fr);
    gap: 36px;
    align-items: start;
}

/* Reviews List Column */
.tm-reviews-list-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tm-review-card {
    background: #fff;
    border: 1px solid var(--tm-line);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(14,33,54,.04);
    transition: transform .2s ease, box-shadow .2s ease;
}

.tm-review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(14,33,54,.08);
}

.tm-review-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 16px;
}

.tm-review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tm-review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--tm-orange);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tm-review-author-name {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--tm-blue-deep);
}

.tm-review-author-date {
    display: block;
    font-size: 11px;
    color: var(--tm-ink-soft);
}

.tm-review-stars {
    color: var(--tm-orange);
    font-size: 14px;
    letter-spacing: 2px;
}

.tm-review-card-title {
    margin: 0 0 10px;
    font-family: "Fraunces", Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--tm-blue-deep);
    line-height: 1.3;
}

.tm-review-card-body {
    font-size: 13.5px;
    line-height: 1.8;
    color: #334155;
    margin: 0 0 18px;
}

/* Photos Mini Grid in Review Card */
.tm-review-card-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.tm-review-card-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: #e2e8f0;
}

.tm-review-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.tm-review-card-thumb:hover img {
    transform: scale(1.08);
}

.tm-review-card-thumb-more {
    position: absolute;
    inset: 0;
    background: rgba(0,52,99,.75);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

/* Card YouTube Button */
.tm-review-card-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #b91c1c;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 0.05em;
    transition: background .2s ease;
}

.tm-review-card-video-btn:hover {
    background: #fee2e2;
}

.tm-review-card-video-icon {
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Empty State Card */
.tm-reviews-empty-box {
    background: #fff;
    border: 1px dashed var(--tm-line);
    border-radius: 8px;
    padding: 48px 30px;
    text-align: center;
}

.tm-reviews-empty-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0f2fe;
    color: var(--tm-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 16px;
}

.tm-reviews-empty-title {
    font-family: "Fraunces", Georgia, serif;
    font-size: 20px;
    color: var(--tm-blue-deep);
    margin: 0 0 6px;
}

.tm-reviews-empty-desc {
    color: var(--tm-ink-soft);
    font-size: 13px;
    margin: 0;
}

/* Form Sidebar Column */
.tm-reviews-form-col {
    position: sticky;
    top: 30px;
}

.tm-review-form-card {
    background: #fff;
    border: 1px solid var(--tm-line);
    border-radius: 8px;
    padding: 34px 28px;
    box-shadow: 0 10px 35px rgba(14,33,54,.06);
}

.tm-review-form-card-title {
    margin: 0 0 6px;
    font-family: "Fraunces", Georgia, serif;
    font-size: 22px;
    color: var(--tm-blue-deep);
    font-weight: 600;
}

.tm-review-form-card-desc {
    color: var(--tm-ink-soft);
    font-size: 12px;
    margin: 0 0 24px;
}

/* Interactive Star Rating Selector */
.tm-rating-selector-wrap {
    margin-bottom: 20px;
}

.tm-rating-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tm-ink);
    margin-bottom: 8px;
}

.tm-star-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.tm-star-item {
    font-size: 28px;
    color: #cbd5e1;
    transition: color .15s ease, transform .15s ease;
    cursor: pointer;
    line-height: 1;
    display: inline-block;
}

.tm-star-item.is-selected {
    color: var(--tm-orange);
}

.tm-star-item.is-empty {
    color: #cbd5e1 !important;
}

.tm-star-item:hover {
    transform: scale(1.18);
}

.tm-rating-score-label {
    margin-left: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--tm-ink-soft);
}

/* Form Controls */
.tm-rf-group {
    margin-bottom: 18px;
}

.tm-rf-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tm-ink);
    margin-bottom: 6px;
}

.tm-rf-input,
.tm-rf-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--tm-line);
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    color: var(--tm-ink);
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
    box-sizing: border-box;
}

.tm-rf-input:focus,
.tm-rf-textarea:focus {
    outline: none;
    border-color: var(--tm-blue);
    box-shadow: 0 0 0 3px rgba(0,100,193,.12);
}

/* Multi-Photo Drag-and-Drop Zone */
.tm-photo-upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 6px;
    padding: 20px 16px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.tm-photo-upload-zone:hover,
.tm-photo-upload-zone.is-dragover {
    border-color: var(--tm-blue);
    background: #f0f7ff;
}

.tm-photo-upload-icon {
    font-size: 26px;
    color: var(--tm-blue);
    margin-bottom: 6px;
}

.tm-photo-upload-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--tm-blue-deep);
    margin-bottom: 2px;
}

.tm-photo-upload-subtext {
    font-size: 10px;
    color: #94a3b8;
}

.tm-photo-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.tm-preview-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--tm-line);
    background: #000;
}

.tm-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tm-preview-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(14,33,54,.85);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}

.tm-preview-remove:hover {
    background: #ef4444;
}

/* Submit Button */
.tm-rf-submit {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 6px;
    background: var(--tm-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .2s ease, transform .2s ease;
}

.tm-rf-submit:hover {
    background: var(--tm-blue-deep);
    transform: translateY(-1px);
}

.tm-rf-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Alerts */
.tm-rf-alert {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 12.5px;
    line-height: 1.5;
    margin-bottom: 16px;
    display: none;
}

.tm-rf-alert.is-visible {
    display: block;
}

.tm-rf-alert--success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.tm-rf-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Logged-Out Login Prompt Card */
.tm-login-prompt-card {
    background: var(--tm-blue-deep);
    color: #fff;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tm-login-prompt-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--tm-orange);
}

.tm-lp-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: var(--tm-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 16px;
}

.tm-lp-title {
    font-family: "Fraunces", Georgia, serif;
    font-size: 22px;
    margin: 0 0 10px;
    color: #fff;
    font-weight: 500;
}

.tm-lp-text {
    font-size: 12.5px;
    line-height: 1.7;
    color: rgba(255,255,255,.75);
    margin: 0 0 22px;
}

.tm-lp-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--tm-orange);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background .2s ease, transform .2s ease;
}

.tm-lp-button:hover {
    background: #fff;
    color: var(--tm-blue-deep) !important;
    transform: translateY(-2px);
}

/* Already Reviewed Card */
.tm-already-reviewed-card {
    background: #fff;
    border: 1px solid var(--tm-line);
    border-radius: 8px;
    padding: 28px;
    text-align: center;
}

.tm-ar-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e0f2fe;
    color: var(--tm-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 12px;
}

.tm-ar-title {
    font-family: "Fraunces", Georgia, serif;
    font-size: 18px;
    color: var(--tm-blue-deep);
    margin: 0 0 6px;
}

.tm-ar-text {
    font-size: 12px;
    color: var(--tm-ink-soft);
    margin: 0;
}

/* =========================================================
   5. RESPONSIVE MEDIA QUERIES
========================================================= */

/* Tablet (max-width: 950px) */
@media (max-width: 950px) {
    .tm-user-moments {
        padding: 55px 0 45px;
    }

    .tm-um-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 24px;
    }

    .tm-um-story {
        grid-template-columns: 1fr;
    }

    .tm-um-card-media {
        min-height: 380px;
        height: 380px;
    }

    .tm-um-review {
        min-height: auto;
        padding: 34px 28px;
    }

    .tm-reviews-grid-layout {
        grid-template-columns: 1fr;
    }

    .tm-reviews-form-col {
        position: static;
        order: -1;
    }
}

/* Mobile (max-width: 640px) */
@media (max-width: 640px) {
    .tm-user-moments {
        padding: 40px 0 40px;
    }

    .tm-um-container {
        padding: 0 12px;
    }

    .tm-um-head {
        margin-bottom: 20px;
    }

    .tm-um-eyebrow {
        font-size: 8px;
        letter-spacing: .14em;
    }

    .tm-um-title {
        font-size: 30px;
    }

    .tm-um-intro {
        font-size: 12px;
        line-height: 1.6;
    }

    .tm-um-viewport {
        border-radius: 12px;
    }

    .tm-um-story {
        display: flex;
        flex-direction: column;
        border-radius: 12px;
        min-height: unset;
        max-height: unset;
    }

    /* Mobile In-Card Media */
    .tm-um-card-media {
        width: 100%;
        height: 280px;
        min-height: 280px;
        max-height: 320px;
        flex: 0 0 280px;
    }

    .tm-um-card-photo-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .tm-um-location {
        top: 12px;
        left: 12px;
        padding: 5px 10px;
        font-size: 8.5px;
    }

    .tm-um-card-dots {
        bottom: 12px;
        padding: 4px 8px;
        gap: 5px;
    }

    .tm-um-card-dot {
        width: 6px;
        height: 6px;
    }

    .tm-um-card-dot.is-active {
        width: 16px;
    }

    .tm-um-card-counter {
        bottom: 12px;
        left: 12px;
        padding: 4px 9px;
        font-size: 10px;
    }

    .tm-um-video {
        right: 12px;
        bottom: 12px;
        min-height: 32px;
        padding: 4px 10px 4px 6px;
    }

    .tm-um-video-icon {
        width: 22px;
        height: 22px;
        font-size: 8px;
    }

    .tm-um-video-text {
        font-size: 7.5px;
    }

    /* Mobile Review Panel */
    .tm-um-review {
        padding: 24px 18px 20px;
    }

    .tm-um-review::before {
        width: 3px;
    }

    .tm-um-review::after {
        font-size: 80px;
        right: 12px;
        top: 12px;
    }

    .tm-um-profile {
        margin-bottom: 12px;
    }

    .tm-um-avatar {
        width: 44px;
        height: 44px;
        font-size: 15px;
    }

    .tm-um-user-name {
        font-size: 15px;
        font-weight: 800;
    }

    .tm-um-user-meta {
        font-size: 11.5px;
    }

    .tm-um-rating {
        margin-bottom: 14px;
        font-size: 18px;
        letter-spacing: 3.5px;
        line-height: 1;
    }

    .tm-um-review-title {
        margin-bottom: 12px;
        font-size: 24px;
        line-height: 1.25;
    }

    .tm-um-review-text {
        font-size: 14.5px;
        line-height: 1.75;
    }

    .tm-um-review-bottom {
        margin-top: 20px;
        padding-top: 16px;
    }

    .tm-um-review-meta {
        justify-content: space-between;
        gap: 12px;
        font-size: 11px;
    }

    .tm-um-explore {
        width: 100%;
        min-height: 48px;
        padding: 12px 20px;
        justify-content: center;
        font-size: 12.5px;
        font-weight: 800;
        border-radius: 6px;
    }

    /* Mobile Nav */
    .tm-um-navigation {
        margin-top: 18px;
    }

    .tm-um-progress-area {
        gap: 10px;
    }

    .tm-um-counter-current {
        font-size: 22px;
    }

    .tm-um-arrow {
        width: 46px;
        height: 46px;
        font-size: 18px;
        border-radius: 6px;
    }

    .tm-um-progress {
        width: 70px;
    }

    .tm-um-next-label {
        display: none;
    }

    .tm-destination-reviews-wrap {
        padding: 44px 0;
    }

    .tm-reviews-header {
        margin-bottom: 24px;
    }

    .tm-reviews-summary-badge {
        width: 100%;
        justify-content: center;
    }

    .tm-review-card {
        padding: 20px;
    }

    .tm-review-form-card {
        padding: 24px 18px;
    }

    .tm-login-prompt-card {
        padding: 30px 18px;
    }
}

/* Small Mobile (max-width: 390px) */
@media (max-width: 390px) {
    .tm-um-title {
        font-size: 28px;
    }

    .tm-um-review-title {
        font-size: 20px;
    }

    .tm-um-review-text {
        font-size: 10.5px;
    }

    .tm-um-progress {
        width: 50px;
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    .tm-um-track,
    .tm-um-card-photo-slide,
    .tm-um-card-photo-slide img,
    .tm-um-explore,
    .tm-um-arrow,
    .tm-review-card {
        transition: none !important;
    }
}
