/**
 * GulfBus Widgets Styles
 * Version: 1.0.0
 */

/* ========== ACCORDION WIDGET STYLES ========== */
.gulfbus-accordion-widget {
    width: 100%;
    max-width: 100%;
    font-family: inherit;
}

.gulfbus-accordion-item {
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.gulfbus-accordion-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.gulfbus-accordion-header {
    padding: 18px 22px;
    background: #f8fafc;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    position: relative;
}

.gulfbus-accordion-header::-webkit-details-marker {
    display: none;
}

.gulfbus-accordion-header:hover {
    background: #f1f5f9;
}

.gulfbus-accordion-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 16px;
    line-height: 1.5;
    flex: 1;
    padding-right: 20px;
}

.gulfbus-accordion-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
    color: #64748b;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gulfbus-accordion-item[open] .gulfbus-accordion-icon {
    transform: rotate(180deg);
}

.gulfbus-accordion-item[open] .gulfbus-icon-plus::before {
    content: "−";
    font-size: 20px;
    line-height: 1;
}

.gulfbus-icon-plus::before {
    content: "+";
    font-size: 20px;
    line-height: 1;
}

.gulfbus-accordion-content {
    padding: 22px;
    background: #ffffff;
    color: #475569;
    line-height: 1.7;
    border-top: 1px solid #e2e8f0;
    font-size: 15px;
}

.gulfbus-accordion-content p:last-child {
    margin-bottom: 0;
}

/* ========== PRICING TABLE WIDGET STYLES ========== */
.gulfbus-pricing-widget {
    width: 100%;
    font-family: inherit;
}

.gulfbus-pricing-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-family: inherit;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.gulfbus-pricing-table thead tr {
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.gulfbus-pricing-table th {
    text-align: left;
    padding: 18px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gulfbus-pricing-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

.gulfbus-pricing-table tbody tr:hover {
    background-color: #f8fafc;
}

.gulfbus-pricing-table td {
    padding: 18px 22px;
    font-size: 15px;
    color: #1e293b;
    background-color: #ffffff;
}

.gulfbus-pricing-table .gulfbus-featured-row {
    background-color: #f0f5ff;
}

.gulfbus-pricing-table .gulfbus-featured-row td {
    background-color: #f0f5ff;
    font-weight: 500;
}

.gulfbus-price {
    color: #BE9A4B;
    font-weight: 700;
    font-size: 16px;
}

.gulfbus-pricing-footer {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px 0;
}

.gulfbus-footer-text {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
    font-style: italic;
}

.gulfbus-quote-btn {
    display: inline-block;
    padding: 14px 28px;
    background-color: #BE9A4B;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(190, 154, 75, 0.2);
}

.gulfbus-quote-btn:hover {
    background-color: #A67C3A;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(190, 154, 75, 0.3);
}

.gulfbus-quote-btn:active {
    transform: translateY(0);
}

/* ========== REVIEWS CAROUSEL WIDGET STYLES ========== */
.gulfbus-reviews-carousel-widget {
    width: 100%;
    position: relative;
    font-family: inherit;
}

.gulfbus-carousel-container {
    max-width: 1400px;
    width: 100%;
    position: relative;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 20px 40px;
}

.gulfbus-nav-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    padding: 0 10px;
}

.gulfbus-nav-btn {
    border-radius: 50%;
    border: 1px solid #e8eaed;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: all 0.2s ease;
    z-index: 20;
    background-color: #ffffff;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.gulfbus-nav-btn .material-icons {
    color: #5f6368;
    font-size: 24px;
    transition: color 0.2s ease;
}

.gulfbus-nav-btn:hover {
    background-color: #f8f9fa;
    border-color: #dadce0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.gulfbus-nav-btn:hover .material-icons {
    color: #202124;
}

.gulfbus-reviews-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    border-radius: 8px;
}

.gulfbus-reviews-row {
    display: flex;
    gap: 16px;
    width: fit-content;
    will-change: transform;
    backface-visibility: hidden;
}

.gulfbus-review-card {
    flex: 0 0 300px;
    width: 300px;
    background: #ffffff;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8eaed;
}

.gulfbus-review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #dadce0;
}

.gulfbus-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.gulfbus-stars {
    color: #fbbc04;
    font-size: 18px;
    letter-spacing: 1.5px;
    line-height: 1;
}

.gulfbus-google-icon,
.gulfbus-custom-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.gulfbus-google-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.gulfbus-custom-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.gulfbus-review-title {
    color: #202124;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gulfbus-review-container {
    flex: 1;
    width: 100%;
    margin-bottom: 15px;
    overflow: hidden;
    min-height: 80px;
}

.gulfbus-review-text {
    font-size: 12px;
    line-height: 1.6;
    color: #202124;
    max-height: 120px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #bdc1c6 transparent;
    padding-right: 6px;
    position: relative;
}

.gulfbus-review-text::before {
    content: "“";
    color: #5f6368;
    font-size: 14px;
    margin-right: 2px;
    font-weight: 500;
}

.gulfbus-review-text::-webkit-scrollbar {
    width: 4px;
}

.gulfbus-review-text::-webkit-scrollbar-track {
    background: transparent;
}

.gulfbus-review-text::-webkit-scrollbar-thumb {
    background-color: #bdc1c6;
    border-radius: 6px;
}

.gulfbus-review-text::-webkit-scrollbar-thumb:hover {
    background-color: #9aa0a6;
}

.gulfbus-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    border-top: 1px solid #f1f3f4;
    padding-top: 12px;
}

.gulfbus-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f1f3f4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gulfbus-person-icon {
    color: #5f6368;
    font-size: 18px;
}

.gulfbus-name-wrapper {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.gulfbus-name {
    font-size: 13px;
    font-weight: 500;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.gulfbus-reviewer-title {
    font-size: 11px;
    color: #5f6368;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

/* Animation keyframes for reviews carousel */
@keyframes gulfbus-scroll-smooth {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ========== RESPONSIVE STYLES ========== */

/* Tablet Styles (768px - 1024px) */
@media screen and (max-width: 1024px) {
    /* Pricing Table */
    .gulfbus-pricing-table th,
    .gulfbus-pricing-table td {
        padding: 15px 18px;
        font-size: 14px;
    }
    
    /* Reviews Carousel */
    .gulfbus-carousel-container {
        padding: 20px 30px;
    }
    
    .gulfbus-review-card {
        flex: 0 0 280px;
        width: 280px;
    }
}

/* Mobile Landscape Styles (576px - 767px) */
@media screen and (max-width: 767px) {
    /* Accordion */
    .gulfbus-accordion-header {
        padding: 16px 18px;
    }
    
    .gulfbus-accordion-title {
        font-size: 15px;
    }
    
    .gulfbus-accordion-content {
        padding: 18px;
        font-size: 14px;
    }
    
    /* Pricing Table - Mobile Card Layout */
    .gulfbus-pricing-table {
        display: block;
        border: none;
        box-shadow: none;
        background: transparent;
    }
    
    .gulfbus-pricing-table thead {
        display: none;
    }
    
    .gulfbus-pricing-table tbody {
        display: block;
    }
    
    .gulfbus-pricing-table tr {
        display: block;
        margin-bottom: 20px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }
    
    .gulfbus-pricing-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 16px;
        border-bottom: 1px solid #e2e8f0;
        background: #ffffff;
        font-size: 14px;
    }
    
    .gulfbus-pricing-table td:last-child {
        border-bottom: none;
    }
    
    .gulfbus-pricing-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #64748b;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    
    .gulfbus-pricing-table .gulfbus-featured-row {
        border: 2px solid #BE9A4B;
    }
    
    .gulfbus-pricing-table .gulfbus-featured-row td {
        background-color: #f0f5ff;
    }
    
    .gulfbus-pricing-table .gulfbus-featured-row td::before {
        color: #BE9A4B;
        font-weight: 700;
    }
    
    .gulfbus-price {
        font-size: 15px;
        font-weight: 700;
    }
    
    .gulfbus-pricing-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .gulfbus-quote-btn {
        width: 100%;
        text-align: center;
        white-space: normal;
        padding: 12px 20px;
    }
    
    /* Reviews Carousel */
    .gulfbus-carousel-container {
        padding: 15px 20px;
    }
    
    .gulfbus-nav-controls {
        display: none;
    }
    
    .gulfbus-review-card {
        flex: 0 0 260px;
        width: 260px;
        padding: 16px;
    }
    
    .gulfbus-stars {
        font-size: 16px;
    }
    
    .gulfbus-review-title {
        font-size: 12px;
    }
    
    .gulfbus-review-text {
        font-size: 11px;
        max-height: 100px;
    }
    
    .gulfbus-name {
        font-size: 12px;
    }
    
    .gulfbus-reviewer-title {
        font-size: 10px;
    }
    
    .gulfbus-icon-circle {
        width: 28px;
        height: 28px;
    }
    
    .gulfbus-person-icon {
        font-size: 16px;
    }
}

/* Mobile Portrait Styles (up to 575px) */
@media screen and (max-width: 575px) {
    /* Accordion */
    .gulfbus-accordion-header {
        padding: 14px 16px;
    }
    
    .gulfbus-accordion-title {
        font-size: 14px;
    }
    
    .gulfbus-accordion-content {
        padding: 16px;
        font-size: 13px;
    }
    
    /* Pricing Table */
    .gulfbus-pricing-table td {
        padding: 12px 14px;
        font-size: 13px;
    }
    
    .gulfbus-pricing-table td::before {
        font-size: 12px;
    }
    
    .gulfbus-price {
        font-size: 14px;
    }
    
    .gulfbus-footer-text {
        font-size: 12px;
    }
    
    /* Reviews Carousel */
    .gulfbus-carousel-container {
        padding: 10px 15px;
    }
    
    .gulfbus-review-card {
        flex: 0 0 240px;
        width: 240px;
        padding: 14px;
    }
    
    .gulfbus-top-row {
        margin-bottom: 10px;
    }
    
    .gulfbus-stars {
        font-size: 15px;
        letter-spacing: 1.2px;
    }
    
    .gulfbus-google-icon,
    .gulfbus-custom-icon {
        width: 18px;
        height: 18px;
    }
    
    .gulfbus-review-container {
        min-height: 70px;
        margin-bottom: 12px;
    }
    
    .gulfbus-review-text {
        max-height: 90px;
    }
    
    .gulfbus-name-row {
        gap: 8px;
        padding-top: 10px;
    }
    
    .gulfbus-icon-circle {
        width: 26px;
        height: 26px;
    }
    
    .gulfbus-person-icon {
        font-size: 15px;
    }
}

/* Print Styles */
@media print {
    .gulfbus-nav-controls,
    .gulfbus-quote-btn {
        display: none !important;
    }
    
    .gulfbus-review-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .gulfbus-pricing-table {
        border: 1px solid #000;
    }
}