/**
 * Tour Types Index Page Styles
 * Matches the reference design with full-height hero, description section, and card grid
 * Uses Elementor Global Colors and Fonts
 * 
 * @package RoamEase Pro
 * @version 2.6.0
 */

/* ==========================================================================
   CSS Custom Properties - Background Colors (Elementor Overridable)
   ========================================================================== */
:root {
    --e-global-color-f9fafb: #f9fafb;
    --e-global-color-f5f5f5: #f5f5f5;
    --e-global-color-ffffff: #ffffff;
}

/* ==========================================================================
   Page Container - Uses Elementor Globals Directly
   ========================================================================== */
.roamease-tour-types-index {
    background: var(--e-global-color-f5f5f5, #f5f5f5);
    min-height: 100vh;
}

/* ==========================================================================
   Hero Section - Full Viewport Height
   ========================================================================== */
.tti-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;
}

.tti-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.tti-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.tti-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 */
.tti-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);
}

.tti-hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.tti-hero__breadcrumb a:hover {
    color: #ffffff;
}

.tti-hero__breadcrumb .separator {
    opacity: 0.6;
}

.tti-hero__breadcrumb .current {
    font-weight: 600;
    color: #ffffff;
}

/* ==========================================================================
   Description Section
   ========================================================================== */
.tti-description {
    background: var(--e-global-color-f5f5f5, #f5f5f5);
    padding: 60px 20px 50px;
    text-align: center;
}

.tti-description__container {
    max-width: 900px;
    margin: 0 auto;
}

.tti-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);
}

.tti-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);
}

.tti-description__text strong {
    color: var(--e-global-color-text, #1d2735);
    font-weight: 700;
}

.tti-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);
}

.tti-description__readmore:hover {
    color: #a50000;
}

.tti-description__readmore svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.tti-description__readmore.expanded svg {
    transform: rotate(180deg);
}

.tti-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);
}

.tti-description__expanded.show {
    display: block;
}

/* ==========================================================================
   Tour Types Grid Section
   ========================================================================== */
.tti-grid-section {
    padding: 0 clamp(16px, 4vw, 60px) 80px;
}

.tti-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1600px;
    margin: 0 auto;
}

@media (max-width: 1400px) {
    .tti-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .tti-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .tti-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* ==========================================================================
   Tour Type Card - Image with Title Overlay Style
   ========================================================================== */
.tti-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;
}

.tti-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* Card Image */
.tti-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.tti-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tti-card:hover .tti-card__image img {
    transform: scale(1.08);
}

.tti-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 */
.tti-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* Card Content */
.tti-card__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    z-index: 2;
    text-align: center;
}

/* Card text: ensure white overrides any inherited <a> color */
.tti-card,
.tti-card:visited {
    color: #ffffff;
}

/* Card Title (centered) */
.tti-card__title {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    font-family: var(--e-global-typography-primary-font-family, inherit);
}

/* Card Bottom - Button (centered) */
.tti-card__bottom {
    display: flex;
    justify-content: center;
}

.tti-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);
}

.tti-card:hover .tti-card__button {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */
.tti-how-it-works {
    background: var(--e-global-color-ffffff, #ffffff);
    padding: 80px clamp(16px, 4vw, 60px);
}

.tti-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) {
    .tti-how-it-works__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Left Side - Steps */
.tti-how-it-works__left {
    padding-right: 40px;
    border-right: 1px solid #e5e7eb;
}

@media (max-width: 900px) {
    .tti-how-it-works__left {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 40px;
    }
}

.tti-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);
}

.tti-how-it-works__steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tti-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.tti-step__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #4a5664;
}

.tti-step__icon svg {
    width: 28px;
    height: 28px;
}

.tti-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;
}

.tti-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 */
.tti-how-it-works__right {
    text-align: center;
    padding: 40px;
}

.tti-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);
}

.tti-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);
}

.tti-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);
}

.tti-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);
}

.tti-how-it-works__button:hover {
    background: var(--e-global-color-secondary, #FEBC11);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
    .tti-hero {
        min-height: 500px;
    }
    
    .tti-description {
        padding: 40px 20px 30px;
    }
    
    .tti-how-it-works {
        padding: 50px 20px;
    }
    
    .tti-how-it-works__right {
        padding: 20px;
    }
}

/* ==========================================================================
   Legacy .roamease-tour-types-page Styles (from template)
   ========================================================================== */
.roamease-tour-types-page {
    padding: clamp(1.8rem, 4vw, 3.2rem) 0 3.2rem;
}

.roamease-tour-types-page .tt-container {
    max-width: 1900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(18px, 4vw, 70px);
    box-sizing: border-box;
}

.roamease-tour-types-page .archive-header {
    margin: 0 0 clamp(1.6rem, 2.6vw, 2.4rem);
}

.roamease-tour-types-page .archive-title {
    margin: 0 0 0.65rem;
    font-size: clamp(2.2rem, 3.4vw, 3.1rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--e-global-color-primary, #083321);
    font-family: var(--e-global-typography-primary-font-family, 'Playfair Display', Georgia, serif);
}

.roamease-tour-types-page .archive-description {
    max-width: 820px;
    font-size: clamp(0.95rem, 1.05vw, 1.05rem);
    color: #4a5664;
    margin: 0;
    font-family: var(--e-global-typography-text-font-family, inherit);
}

.tour-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 2vw, 38px);
    margin: 0 0 clamp(2.4rem, 4vw, 3.6rem);
}

@media (max-width: 1024px) {
    .tour-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .tour-types-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

.no-tour-types {
    background: var(--e-global-color-ffffff, #ffffff);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.06);
}

.no-tour-types p {
    margin: 0;
    font-size: 1.1rem;
    font-family: var(--e-global-typography-text-font-family, inherit);
}

/* Tour Type Cards in Grid */
.tour-types-grid .tour-type-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tour-types-grid .tour-type-card .tour-type-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Tour Type Card 3 – Split card (250px image + white body) */
.tour-types-grid .tour-type-card.tour-type-style-card3 {
    background: var(--e-global-color-ffffff, #ffffff);
    border-radius: 18px;
    box-shadow: 0 18px 42px -20px rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    height: 450px;
}

.tour-types-grid .tour-type-card.tour-type-style-card3 .tour-type-media {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}

.tour-types-grid .tour-type-card.tour-type-style-card3 .tour-type-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Base pill-outline */
.tour-types-grid .pill-outline {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #ffffff;
    backdrop-filter: blur(6px);
    font-family: var(--e-global-typography-secondary-font-family, inherit);
}

.tour-types-grid .tour-type-card.tour-type-style-card3 .pill-outline.tour-count-pill {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--e-global-color-primary, #1d2735);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Card Body */
.tour-types-grid .tour-type-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.tour-types-grid .tour-type-body .tour-type-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--e-global-color-primary, #1d2735);
    font-family: var(--e-global-typography-primary-font-family, 'Playfair Display', Georgia, serif);
}

.tour-types-grid .tour-type-body .tour-type-title a {
    text-decoration: none;
    color: inherit;
}

.tour-types-grid .tour-type-body .tour-type-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #4a5664;
    flex: 1;
    font-family: var(--e-global-typography-text-font-family, inherit);
}

.tour-types-grid .tour-type-actions {
    margin-top: auto;
}

.tour-types-grid .tour-type-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--e-global-color-primary, #083321);
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
    font-family: var(--e-global-typography-secondary-font-family, inherit);
}

.tour-types-grid .tour-type-btn:hover {
    background: var(--e-global-color-secondary, #FEBC11);
    color: var(--e-global-color-primary, #083321);
}
