/**
 * Tour Categories Index Page Styles
 * Mirrors tour-types-index.css design with tci- prefix
 * Uses Elementor Global Colors and Fonts
 *
 * @package RoamEase_Pro
 * @version 2.6.0
 */

/* ==========================================================================
   Page Container
   ========================================================================== */
.roamease-tour-categories-index {
    background: var(--e-global-color-f5f5f5, #f5f5f5);
    min-height: 100vh;
}

/* ==========================================================================
   Hero Section - Full Viewport Height
   ========================================================================== */
.tci-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--e-global-color-primary, #083321);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

.tci-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.tci-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.tci-hero__title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 300;
    color: #ffffff;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
    font-family: var(--e-global-typography-primary-font-family, inherit);
}

/* Breadcrumb inside hero */
.tci-hero__breadcrumb {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 0 clamp(16px, 4vw, 60px);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--e-global-typography-text-font-family, inherit);
}

.tci-hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.tci-hero__breadcrumb a:hover {
    color: #ffffff;
}

.tci-hero__breadcrumb .separator {
    opacity: 0.6;
}

.tci-hero__breadcrumb .current {
    font-weight: 600;
    color: #ffffff;
}

/* ==========================================================================
   Description Section
   ========================================================================== */
.tci-description {
    background: var(--e-global-color-f5f5f5, #f5f5f5);
    padding: 60px 20px 50px;
    text-align: center;
}

.tci-description__container {
    max-width: 900px;
    margin: 0 auto;
}

.tci-description__title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--e-global-color-text, #1d2735);
    margin: 0 0 24px;
    line-height: 1.3;
    font-family: var(--e-global-typography-primary-font-family, inherit);
}

.tci-description__text {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: #4a5664;
    line-height: 1.7;
    margin: 0 0 20px;
    font-family: var(--e-global-typography-text-font-family, inherit);
}

.tci-description__text strong {
    color: var(--e-global-color-text, #1d2735);
    font-weight: 700;
}

.tci-description__readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8B0000;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
    font-family: var(--e-global-typography-secondary-font-family, inherit);
}

.tci-description__readmore:hover {
    color: #a50000;
}

.tci-description__readmore svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.tci-description__readmore.expanded svg {
    transform: rotate(180deg);
}

.tci-description__expanded {
    display: none;
    margin-top: 20px;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: #4a5664;
    line-height: 1.7;
    font-family: var(--e-global-typography-text-font-family, inherit);
}

.tci-description__expanded.show {
    display: block;
}

/* ==========================================================================
   Tour Categories Grid Section
   ========================================================================== */
.tci-grid-section {
    padding: 0 clamp(16px, 4vw, 60px) 80px;
}

.tci-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1600px;
    margin: 0 auto;
}

@media (max-width: 1400px) {
    .tci-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .tci-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .tci-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* ==========================================================================
   Tour Category Card - Image with Title Overlay Style
   ========================================================================== */
.tci-card {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: #1a1a1a;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tci-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* Card Image */
.tci-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.tci-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tci-card:hover .tci-card__image img {
    transform: scale(1.08);
}

.tci-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    opacity: 0.3;
    background: #222222;
}

/* Card Gradient Overlay */
.tci-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* Card Content */
.tci-card__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    z-index: 2;
}

/* Card Title - Top Left */
.tci-card__title {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    font-family: var(--e-global-typography-primary-font-family, inherit);
    max-width: 80%;
}

/* Card Bottom - Button */
.tci-card__bottom {
    display: flex;
    justify-content: flex-start;
}

.tci-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: var(--e-global-typography-secondary-font-family, inherit);
}

.tci-card:hover .tci-card__button {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */
.tci-how-it-works {
    background: var(--e-global-color-ffffff, #ffffff);
    padding: 80px clamp(16px, 4vw, 60px);
}

.tci-how-it-works__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 900px) {
    .tci-how-it-works__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Left Side - Steps */
.tci-how-it-works__left {
    padding-right: 40px;
    border-right: 1px solid #e5e7eb;
}

@media (max-width: 900px) {
    .tci-how-it-works__left {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 40px;
    }
}

.tci-how-it-works__title {
    font-size: 1.6rem;
    font-weight: 400;
    color: #4a5664;
    margin: 0 0 30px;
    font-family: var(--e-global-typography-primary-font-family, inherit);
}

.tci-how-it-works__steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tci-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.tci-step__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #4a5664;
}

.tci-step__icon svg {
    width: 28px;
    height: 28px;
}

.tci-step__number {
    width: 24px;
    height: 24px;
    background: var(--e-global-color-primary, #083321);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.tci-step__text {
    font-size: 1rem;
    color: var(--e-global-color-primary, #083321);
    font-weight: 500;
    line-height: 1.5;
    font-family: var(--e-global-typography-text-font-family, inherit);
}

/* Right Side - CTA */
.tci-how-it-works__right {
    text-align: center;
    padding: 40px;
}

.tci-how-it-works__avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid var(--e-global-color-primary, #083321);
}

.tci-how-it-works__cta-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--e-global-color-text, #1d2735);
    margin: 0 0 12px;
    font-family: var(--e-global-typography-primary-font-family, inherit);
}

.tci-how-it-works__cta-text {
    font-size: 1rem;
    color: #4a5664;
    margin: 0 0 24px;
    line-height: 1.6;
    font-family: var(--e-global-typography-text-font-family, inherit);
}

.tci-how-it-works__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background: var(--e-global-color-primary, #083321);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-family: var(--e-global-typography-secondary-font-family, inherit);
}

.tci-how-it-works__button:hover {
    background: var(--e-global-color-secondary, #FEBC11);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
    .tci-hero {
        min-height: 500px;
    }

    .tci-description {
        padding: 40px 20px 30px;
    }

    .tci-how-it-works {
        padding: 50px 20px;
    }

    .tci-how-it-works__right {
        padding: 20px;
    }
}
