/* TT 2027 Brochure Styles */
.tt-2027-main {
    width: 100%;
    min-height: calc(100vh - 160px);
    background: linear-gradient(135deg, #1f2226 0%, #121416 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    position: relative;
}

/* Site Footer Styles */
.site-footer {
    background: #121416;
    color: #F8F9FA;
    padding: 32px 0 24px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.footer-logo h2 {
    font-size: 18px;
    font-weight: 700;
}

.footer-info p {
    margin: 4px 0;
    font-size: 14px;
}

.footer-info a {
    color: #F8F9FA;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.footer-info a:hover {
    border-color: #F8F9FA;
}

.footer-copyright {
    text-align: center;
    font-size: 12px;
    color: #6B7280;
    border-top: 1px solid #2A2D33;
    padding-top: 20px;
    margin: 0;
}

/* Book Navigation Buttons */
.book-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: #000000;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 99999; /* Make sure it's above turn.js hit areas */
    pointer-events: auto;
}

.book-nav-btn:hover:not(:disabled) {
    background: #333333;
}

.book-nav-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.book-nav-btn--prev {
    left: -20px;
}

.book-nav-btn--next {
    right: -20px;
}

/* Book Container */
.book-container {
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 16/10;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#book {
    width: 100%;
    height: 100%;
    position: relative;
    transition: margin-left 0.4s ease-in-out;
}

/* Turn.js Page Styles */
.page {
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    /* Prevent text blurriness */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Turn.js specific styles */
.turn-page {
    background-color: #fff;
    transform-origin: left center;
}

.turn-page-wrapper {
    display: block;
    /* Prevent text blurriness */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure pages are clickable */
.turn-page, .turn-page-wrapper, .page {
    pointer-events: auto;
}

/* Realistic Book Spine Shadows & Divider */
.page::before {
    content: '';
    position: absolute;
    top: 0;
    width: 40px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.even .page::before {
    right: 0;
    background: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.02) 40%, rgba(0,0,0,0.15) 100%);
    border-right: 1px solid rgba(0,0,0,0.1);
}

.odd .page::before {
    left: 0;
    background: linear-gradient(to left, rgba(0,0,0,0) 0%, rgba(0,0,0,0.02) 40%, rgba(0,0,0,0.15) 100%);
    border-left: 1px solid rgba(255,255,255,0.8);
}

.page--dark {
    background: #1A1A1A;
}

.page--light {
    background: #F8F9FA;
}

.page__content {
    width: 100%;
    height: 100%;
    padding: 40px 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 2;
}

/* Cover Page Styles */
.cover {
    position: relative;
}

.cover-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.cover-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(18, 20, 22, 0.4) 0%, rgba(18, 20, 22, 0.8) 100%);
}

.cover-content {
    justify-content: flex-end;
    text-align: center;
    padding-bottom: 60px;
}

.page-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 8px;
}

/* Typography */
.book-title {
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #FFFFFF;
    margin: 0;
    text-align: center;
}

.book-subtitle {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #f7a400;
    margin: 0 0 12px;
    text-align: center;
}

.book-intro {
    font-size: 14px;
    line-height: 1.6;
    color: #E5E7EB;
    text-align: center;
    margin: 0;
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 16px;
    color: #111111;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(0,0,0,0.05);
}

.section-title--light {
    color: #F8F9FA;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.section-text {
    font-size: 13px;
    line-height: 1.5;
    color: #374151;
    margin: 0;
}

.section-text--light {
    color: #E5E7EB;
}

.contact-info {
    margin-top: 12px;
    text-align: center;
}

.contact-info p {
    margin: 4px 0;
}

.contact-info a {
    color: #f7a400;
    text-decoration: none;
    font-weight: 600;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.feature-card {
    padding: 14px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
}

.feature-card h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 4px;
    color: #111111;
}

.feature-card p {
    font-size: 11px;
    color: #6B7280;
    margin: 0;
    line-height: 1.4;
}

/* Price Badge */
.price-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #E02424;
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 8px;
    margin: 8px 0;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(224, 36, 36, 0.3);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.features-list li {
    font-size: 12px;
    line-height: 1.5;
    padding-left: 16px;
    position: relative;
    color: #374151;
}

.features-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 6px;
    background: #f7a400;
    border-radius: 2px;
}

.tour-meta {
    display: flex;
    gap: 16px;
    border-top: 1px solid #E5E7EB;
    padding-top: 12px;
    margin-top: auto;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6B7280;
}

.meta-value {
    font-size: 12px;
    color: #111111;
    font-weight: 600;
}

/* Booking Form */
.date-selection {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.date-btn {
    padding: 10px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #111111;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.date-btn:hover:not(:disabled) {
    border-color: #111111;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.date-btn:active:not(:disabled) {
    transform: scale(0.96) translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.date-btn.selected {
    background: #111111;
    border-color: #111111;
    color: #FFFFFF;
}

.time-selection {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.radio-block {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.radio-block:hover {
    border-color: #111111;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.radio-block:active {
    transform: scale(0.96) translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.radio-block input {
    display: none;
}

.radio-block:has(input:checked) {
    border-color: #111111;
    background: #111111;
    color: #FFFFFF;
}

.radio-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.paypal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: #00457c;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 8px;
    transition: background 0.2s ease;
}

.paypal-btn:hover {
    background: #003366;
}

.disclaimer {
    font-size: 11px;
    color: #6B7280;
    margin: 0;
}

/* Tour Dates */
.dates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.tour-date-btn {
    padding: 14px 10px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #111111;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tour-date-btn:hover {
    border-color: #111111;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.tour-date-btn:active {
    transform: scale(0.96) translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.tour-date-btn.selected {
    background: #111111;
    border-color: #111111;
    color: #FFFFFF;
}

/* Guests List */
.guests-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.guest-card {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    color: #111111;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.guest-card:hover {
    background: #111111;
    color: #FFFFFF;
    border-color: #111111;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Guest Photo Preview */
.guest-photo-container {
    width: 100%;
    flex-grow: 1;
    min-height: 180px;
    margin-top: 12px;
    position: relative;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.guest-photo-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.guest-photo-layer.active {
    opacity: 1;
}

.return-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 2px solid #f7a400;
    border-radius: 8px;
    background: transparent;
    color: #f7a400;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: auto;
    transition: all 0.2s ease;
}

.return-btn:hover {
    background: #f7a400;
    color: #111111;
}

/* Page Indicator */
.book-page-indicator {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: rgba(248, 249, 250, 0.6);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 968px) {
    .tt-2027-main {
        min-height: auto;
        padding: 16px 12px 60px;
    }

    .book-container {
        aspect-ratio: 4/5;
        max-width: 420px;
    }

    .book-nav-btn--prev {
        left: 8px;
    }

    .book-nav-btn--next {
        right: 8px;
    }

    .cover-image {
        height: 140px;
    }

    .page-image {
        height: 100px;
    }

    .book-title {
        font-size: 28px;
    }

    .book-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 16px;
    }

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

    .dates-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tour-meta {
        flex-direction: column;
        gap: 12px;
    }

    .page__content {
        padding: 20px 16px;
    }
}

@media (max-width: 568px) {
    .book-container {
        aspect-ratio: 3/4;
    }

    .book-title {
        font-size: 24px;
    }

    .price-badge {
        font-size: 20px;
    }
}