/**
 * Experience Management System — dedicated stylesheet, new file so
 * main.css stays untouched (same approach as assets/css/about.css/
 * footer.css/rooms.css). Reuses existing design tokens only — no new
 * colors are introduced.
 *
 * Loaded after main.css via an explicit enqueue dependency (inc/enqueue.php).
 */

/* ---- Grid spacing (homepage subsection + archive) ----
   32-40px between rows, 24-28px between columns. Bootstrap's `.row` is
   flex/wrap, so `row-gap` works directly; `--bs-gutter-x` controls the
   column gutter the same way main.css's other grids already rely on
   it. Cancels .amm-div's mobile-only margin-bottom (main.css) inside
   this grid specifically, so row-gap is the single source of vertical
   spacing at every breakpoint instead of the two stacking. */
.tm-experience-grid {
    --bs-gutter-x: 26px;
    row-gap: 36px;
}

.tm-experience-grid .amm-div {
    margin-bottom: 0;
}

/* ---- Homepage/archive card: "Explore Experience →" ----
   Hidden by default, revealed on hover/focus — collapsed via
   max-height rather than display:none so it can animate, and so it
   never reserves space in the card's fixed-height overlay
   (.amm-div is 280px, main.css) while hidden. Small, quiet text link
   rather than a full filled button — a .btn-whtapp would overwhelm
   this compact overlay. Color is set explicitly rather than relying on
   inheriting .amm-cont's white text: main.css's `p, a { color: var(--black); }`
   is a type-selector rule, which always beats an inherited color
   regardless of source order — the exact issue already fixed once on
   the About page. */
.tm-experience-card-explore {
    display: block;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(8px);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--pwhite);
    text-decoration: underline;
    transition: max-height 0.35s ease, margin-top 0.35s ease, opacity 0.3s ease, transform 0.3s ease;
}

.amm-div:hover .tm-experience-card-explore,
.amm-div:focus-within .tm-experience-card-explore {
    max-height: 40px;
    margin-top: 8px;
    opacity: 1;
    transform: translateY(0);
}

.tm-experience-card-explore:hover {
    color: var(--lgreen);
}

/* ---- Single experience: hero ---- */
.tm-experience-hero {
    position: relative;
    height: 60vh;
    min-height: 420px;
    background-size: cover;
    background-position: center;
}

.tm-experience-hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 40px;
}

.tm-experience-hero-content h1 {
    margin: 0 0 12px;
}

.tm-experience-hero-content p.t-24 {
    max-width: 640px;
}

/* ---- Single experience: introduction ---- */
.tm-experience-intro p {
    line-height: 1.6;
}

/* ---- Single experience: feature list ---- */
.tm-experience-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.tm-experience-feature-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
}

.tm-experience-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-bottom: 12px;
    color: var(--green);
}

.tm-experience-feature-icon img,
.tm-experience-feature-icon svg {
    max-width: 100%;
    max-height: 100%;
}

.tm-experience-feature-card h5 {
    color: var(--green);
    margin-bottom: 6px;
}

/* Subtle outlined capsule — supporting metadata, not a primary visual
   element. Sits in normal flow between the title and description
   (moved out of the card's top-right corner, no longer absolutely
   positioned) so the three read as one cohesive block. */
.tm-experience-feature-badge {
    display: inline-block;
    margin: 0 0 10px;
    padding: 4px 14px;
    background-color: transparent;
    border: 1px solid var(--green);
    border-radius: var(--radius-full);
    color: var(--green);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tm-experience-feature-card p {
    font-size: 15px;
    margin: 0;
    opacity: 0.85;
}

/* ---- Experiences archive: "Why Choose Tanmatrra Eco Luxe Resort?" ---- */
.tm-why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.tm-why-choose-card {
    text-align: center;
}

.tm-why-choose-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    color: var(--green);
}

.tm-why-choose-icon svg {
    width: 100%;
    height: 100%;
}

.tm-why-choose-card h5 {
    color: var(--green);
    margin-bottom: 8px;
}

.tm-why-choose-card p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    opacity: 0.85;
}

@media screen and (max-width: 991px) {
    .tm-experience-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tm-why-choose-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 767px) {
    .tm-experience-hero {
        height: 50vh;
    }

    .tm-why-choose-grid {
        grid-template-columns: 1fr;
    }

    .tm-experience-features {
        grid-template-columns: 1fr;
    }
}
