/**
 * Palace Tours Testimonials Styles
 * Recreated from original ASPX testimonials.aspx styling
 * Version: 1.0.0
 */

/* ==========================================================================
   Main Container
   ========================================================================== */

.ptt-testimonials-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ptt-main-heading {
    font-size: 2.5em;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

/* ==========================================================================
   Video Carousel - Recreates Bootstrap carousel from original
   ========================================================================== */

.ptt-header {
    margin-bottom: 40px;
}

.ptt-header-bottom {
    position: relative;
}

.ptt-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

.ptt-carousel-inner {
    position: relative;
    width: 100%;
}

.ptt-carousel-item {
    display: none;
    width: 100%;
}

.ptt-carousel-item.active {
    display: block;
}

.ptt-video {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Carousel Navigation */
.ptt-carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 10;
}

.ptt-carousel-nav a {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.ptt-carousel-nav a:hover {
    background: #fff;
    color: #000;
}

.ptt-carousel-nav-prev .ptt-nav-icon,
.ptt-carousel-nav-next .ptt-nav-icon {
    font-size: 1.5em;
    line-height: 1;
}

.ptt-carousel-nav-prev .ptt-nav-icon {
    margin-right: 5px;
}

.ptt-carousel-nav-next .ptt-nav-icon {
    margin-left: 5px;
}

/* Carousel Indicators */
.ptt-carousel-indicators {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.ptt-carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.ptt-carousel-indicators button:hover,
.ptt-carousel-indicators button.active {
    background: #fff;
}

/* ==========================================================================
   Testimonials List
   ========================================================================== */

.ptt-testimonials-list {
    margin-top: 30px;
}

.ptt-testimonial-item {
    padding: 15px 5px;
}

.ptt-testimonial-content {
    padding: 0;
}

.ptt-testimonial-text {
    padding-top: 3px;
    text-align: justify;
    font-size: 1.1em;
    line-height: 1.6;
    color: #444;
}

/* Read More truncation styles */
.ptt-testimonial-text.ptt-truncated {
    max-height: 150px;
    overflow: hidden;
    position: relative;
}

.ptt-testimonial-text.ptt-truncated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, #fff);
}

.ptt-testimonial-text.ptt-expanded {
    max-height: none;
    overflow: visible;
}

.ptt-testimonial-text.ptt-expanded::after {
    display: none;
}

.ptt-read-more {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: #e91e63;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    transition: background 0.3s ease;
}

.ptt-read-more:hover {
    background: #c2185b;
}

.ptt-read-more:focus {
    outline: 2px solid #e91e63;
    outline-offset: 2px;
}

.ptt-testimonial-meta {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.ptt-testimonial-date {
    float: left;
    font-weight: bold;
    color: #666;
}

.ptt-testimonial-customer {
    text-align: right;
    color: #333;
}

.ptt-testimonial-customer strong {
    color: #0066cc;
}

.ptt-testimonial-customer em {
    color: #666;
}

.ptt-testimonial-tour {
    margin-top: 10px;
    padding-top: 3px;
    text-align: justify;
}

.ptt-testimonial-tour a {
    color: #0066cc;
    text-decoration: none;
}

.ptt-testimonial-tour a:hover {
    text-decoration: underline;
}

.ptt-testimonial-separator {
    border: none;
    border-top: 1px solid #ddd;
    margin: 20px 0 10px 0;
}

.ptt-no-testimonials {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* ==========================================================================
   Widget Styles - Compact version for sidebars
   ========================================================================== */

.ptt-testimonials-widget {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.ptt-widget-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
}

.ptt-widget-testimonials {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ptt-widget-testimonial {
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ptt-widget-text {
    font-size: 0.95em;
    line-height: 1.5;
    color: #444;
    margin-bottom: 10px;
}

.ptt-widget-author {
    font-size: 0.9em;
    color: #333;
}

.ptt-widget-author strong {
    color: #0066cc;
}

.ptt-widget-author em {
    color: #666;
}

.ptt-widget-tour-info {
    font-size: 0.85em;
    color: #666;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.ptt-widget-tour-info a {
    color: #0066cc;
    text-decoration: none;
}

.ptt-widget-tour-info a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .ptt-testimonials-page {
        padding: 15px;
    }
    
    .ptt-main-heading {
        font-size: 1.8em;
    }
    
    .ptt-video {
        height: 250px;
    }
    
    .ptt-carousel-nav {
        bottom: 10px;
        gap: 10px;
    }
    
    .ptt-carousel-nav a {
        padding: 6px 12px;
        font-size: 0.9em;
    }
    
    .ptt-carousel-indicators {
        bottom: 55px;
    }
    
    .ptt-carousel-indicators button {
        width: 10px;
        height: 10px;
    }
    
    .ptt-testimonial-text {
        font-size: 1em;
        text-align: left;
    }
    
    .ptt-testimonial-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .ptt-testimonial-customer {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .ptt-video {
        height: 200px;
    }
    
    .ptt-main-heading {
        font-size: 1.5em;
    }
    
    .ptt-carousel-nav a {
        padding: 5px 10px;
        font-size: 0.85em;
    }
    
    .ptt-nav-text {
        display: none;
    }
    
    .ptt-carousel-nav-prev .ptt-nav-icon,
    .ptt-carousel-nav-next .ptt-nav-icon {
        margin: 0;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .ptt-header,
    .ptt-carousel {
        display: none;
    }
    
    .ptt-testimonials-page {
        padding: 0;
    }
    
    .ptt-testimonial-item {
        page-break-inside: avoid;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.ptt-carousel-nav a:focus,
.ptt-carousel-indicators button:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .ptt-carousel-nav a,
    .ptt-carousel-indicators button {
        transition: none;
    }
}
