/**
 * CSS Styles for the Header Trips Button
 */

/* Button Container */
.header-trips-button {
    display: inline-block;
    position: relative;
    margin: 0 10px;
    vertical-align: middle;
}

/* Button Styles */
.trips-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #333;
    transition: color 0.2s;
    outline: none;
}

.trips-button:focus {
    outline: none;
}

/* Icon Styles */
.trips-icon {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
}

/* Count Badge */
.trips-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #1e3a8a;
    color: white;
    font-size: 12px;
    font-weight: bold;
    height: 18px;
    width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
}

/* Modal Styles */
.br-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.br-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 50px auto;
    padding: 0;
    border-radius: 8px;
    max-width: 600px;
    max-height: 80vh;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.br-modal-header {
    padding: 15px 20px;
    background-color: #1e3a8a;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.br-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.br-modal-close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.br-modal-close:hover {
    opacity: 0.7;
}

.br-modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(80vh - 60px);
}

/* Saved Trip List */
#saved-trips-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.saved-trip-item {
    display: flex;
    gap: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.saved-trip-image {
    flex: 0 0 150px;
    position: relative;
}

.saved-trip-image img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.remove-saved-trip {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 3px;
    padding: 3px 6px;
    font-size: 11px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.remove-saved-trip:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.saved-trip-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.saved-trip-details h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #1e3a8a;
}

.saved-trip-details p {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #4b5563;
}

.saved-trip-price {
    font-size: 18px !important;
    font-weight: bold;
    color: #1e3a8a !important;
    margin: 5px 0 15px 0 !important;
}

.book-saved-trip {
    background-color: #1e3a8a;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 8px;
    transition: background-color 0.2s;
}

.book-saved-trip:hover {
    background-color: #1c3478;
}

.show-detailed-quote {
    font-size: 13px;
    color: #4b5563;
    text-decoration: none;
    align-self: center;
}

.show-detailed-quote:hover {
    text-decoration: underline;
}

/* Quote Details */
.quote-header {
    margin-bottom: 20px;
}

.quote-header h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #1e3a8a;
}

.quote-header p {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #4b5563;
}

.quote-breakdown {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.quote-breakdown h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #1e3a8a;
}

.quote-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.quote-total {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
    font-weight: bold;
    font-size: 16px;
}

.quote-discount {
    margin-top: 15px;
    font-size: 13px;
    color: #059669;
}

/* Mobile Responsive Adjustments */
@media (max-width: 576px) {
    .br-modal-content {
        margin: 20px;
        max-width: calc(100% - 40px);
    }

    .saved-trip-item {
        flex-direction: column;
    }

    .saved-trip-image {
        flex: none;
        width: 100%;
    }

    .saved-trip-image img {
        width: 100%;
        height: 150px;
    }
}