/* Route Page Styles
   Extracted from route.php
   Contains route itinerary, callback modal, and itinerary modal styles
*/

/* Route Itinerary Styles */
.itinerary-timeline {
    position: relative;
    padding: 1rem 0;
}

.itinerary-item {
    display: flex;
    margin-bottom: 1.2rem;
    position: relative;
}

.itinerary-item::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 45px;
    width: 2px;
    height: calc(100% + 15px);
    background: linear-gradient(180deg, var(--primary-color) 0%, transparent 100%);
}

.itinerary-item:last-child::before {
    display: none;
}

.itinerary-marker {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    position: relative;
    z-index: 2;
}

.itinerary-content {
    flex: 1;
    margin-left: 1.2rem;
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
    transition: var(--transition);
}

.itinerary-content:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(3px);
}

.itinerary-content h3 {
    color: var(--primary-color);
    font-size: 0.95rem;
    margin: 0 0 0.3rem 0;
    font-weight: 700;
}

.itinerary-content p {
    color: #555;
    margin: 0;
    line-height: 1.4;
    font-size: 0.85rem;
}

.itinerary-empty {
    text-align: center;
    padding: 1.5rem;
    color: #999;
    font-size: 0.9rem;
}

/* Content Box Text Justification */
.content-box {
    text-align: justify;
}

.content-box p {
    text-align: justify;
}

/* Mobile Optimized Booking Tabs */
@media (max-width: 768px) {
    .booking-tabs {
        gap: 0.25rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .booking-tabs .tab {
        padding: 8px 12px;
        font-size: 0.9rem;
        flex: 0 1 auto;
        min-width: auto;
    }

    .pricing-table thead th,
    .service-table thead th,
    table thead th,
    .table thead th {
        padding: 10px;
        font-size: 0.9rem;
    }

    .pricing-table td,
    .service-table td,
    table td,
    .table td {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 600px) {
    .booking-tabs {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .booking-tabs .tab {
        flex: 0 1 calc(50% - 0.25rem);
        padding: 8px 8px;
        font-size: 0.75rem;
        text-align: center;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        white-space: nowrap;
        overflow: visible;
    }

    .booking-tabs .tab:last-child {
        flex: 0 1 100%;
    }

    .booking-tabs .tab i {
        font-size: 0.9rem;
        flex-shrink: 0;
        display: inline-block;
        min-width: 14px;
    }

    .pricing-table thead th,
    .service-table thead th,
    table thead th,
    .table thead th {
        padding: 8px 6px;
        font-size: 0.65rem;
    }

    .pricing-table td,
    .service-table td,
    table td,
    .table td {
        padding: 6px 5px;
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .booking-tabs {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .booking-tabs .tab {
        flex: 0 1 calc(50% - 0.25rem);
        padding: 6px 6px;
        font-size: 0.65rem;
        text-align: center;
        border-radius: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 3px;
        white-space: nowrap;
        overflow: visible;
    }

    .booking-tabs .tab:last-child {
        flex: 0 1 100%;
    }

    .booking-tabs .tab i {
        font-size: 0.75rem;
        flex-shrink: 0;
        display: inline-block;
        min-width: 12px;
    }

    .pricing-table thead th,
    .service-table thead th,
    table thead th,
    .table thead th {
        padding: 6px 4px;
        font-size: 0.6rem;
    }

    .pricing-table td,
    .service-table td,
    table td,
    .table td {
        padding: 4px 3px;
        font-size: 0.6rem;
    }
}

/* Callback Modal Styles */
.callback-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.callback-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.callback-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.4s ease;
    position: relative;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.callback-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.callback-modal-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.callback-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.callback-close-btn:hover {
    color: #333;
}

.callback-modal-body {
    margin-bottom: 1.5rem;
}

.callback-modal-body p {
    color: #666;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
}

.callback-form-group {
    margin-bottom: 1rem;
}

.callback-form-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.callback-form-group input,
.callback-form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.callback-form-group input:focus,
.callback-form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.callback-modal-footer {
    display: flex;
    gap: 1rem;
}

.callback-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.callback-btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.callback-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.callback-btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.callback-btn-secondary:hover {
    background: #e0e0e0;
}

@media (max-width: 600px) {
    .callback-modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem;
    }

    .callback-modal-header h2 {
        font-size: 1.2rem;
    }

    .callback-modal-footer {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .itinerary-timeline {
        padding: 0.5rem 0;
    }

    .itinerary-item {
        margin-bottom: 1rem;
    }

    .itinerary-item::before {
        left: 19px;
        top: 40px;
    }

    .itinerary-marker {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }

    .itinerary-content {
        margin-left: 1rem;
        padding: 0.8rem;
    }

    .itinerary-content h3 {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }

    .itinerary-content p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

/* Itinerary Info Button */
.itinerary-info-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.itinerary-info-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.itinerary-info-btn:active {
    transform: scale(0.95);
}

/* View Itinerary Button */
.view-itinerary-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    margin: 0 auto;
}

.view-itinerary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.view-itinerary-btn:active {
    transform: translateY(0);
}

/* Itinerary Link */
.itinerary-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
}

.itinerary-link:hover {
    color: #fff;
    background: var(--primary-gradient);
    text-decoration: none;
}

@media (max-width: 600px) {
    .itinerary-link {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
}

/* Itinerary Modal */
.itinerary-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.itinerary-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.itinerary-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.4s ease;
    position: relative;
    margin: auto;
}

.itinerary-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.itinerary-modal-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.itinerary-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.itinerary-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.itinerary-modal-body {
    padding: 2rem 1.5rem;
}

.itinerary-timeline-modal .itinerary-item {
    margin-bottom: 1.5rem;
}

.itinerary-empty-message {
    text-align: center;
    padding: 2rem;
    color: #999;
    font-size: 0.95rem;
}

@media (max-width: 480px) {
    .itinerary-timeline {
        padding: 0;
    }

    .itinerary-item {
        margin-bottom: 0.8rem;
    }

    .itinerary-item::before {
        left: 17px;
        top: 35px;
        height: calc(100% + 10px);
    }

    .itinerary-marker {
        width: 35px;
        height: 35px;
        font-size: 0.7rem;
        min-width: 35px;
    }

    .itinerary-content {
        margin-left: 0.8rem;
        padding: 0.7rem;
        border-left-width: 2px;
    }

    .itinerary-content h3 {
        font-size: 0.8rem;
        margin-bottom: 0.15rem;
    }

    .itinerary-content p {
        font-size: 0.75rem;
        line-height: 1.2;
    }
}

/* Phone Inquiry Modal Styles */
.phone-inquiry-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.phone-inquiry-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-inquiry-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.4s ease;
    position: relative;
}

.phone-inquiry-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.phone-inquiry-modal-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-inquiry-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.phone-inquiry-close-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.phone-inquiry-modal-body {
    margin-bottom: 1.5rem;
}

.phone-inquiry-modal-body p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.phone-input-group {
    margin-bottom: 1.2rem;
}

.phone-input-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.phone-country-select,
.phone-input {
    width: 100%;
    padding: 0.8rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.phone-country-select:focus,
.phone-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.phone-inquiry-modal-footer {
    display: flex;
    gap: 1rem;
}

.phone-inquiry-btn-submit,
.phone-inquiry-btn-cancel {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.phone-inquiry-btn-submit {
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.phone-inquiry-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.phone-inquiry-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.phone-inquiry-btn-cancel {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.phone-inquiry-btn-cancel:hover {
    background: #e0e0e0;
}

@media (max-width: 600px) {
    .phone-inquiry-modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem;
    }

    .phone-inquiry-modal-header h2 {
        font-size: 1.1rem;
    }

    .phone-inquiry-modal-footer {
        flex-direction: column;
    }
}

/* Inquiry Message Notifications */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

#inquiryMessage {
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

#inquiryMessage i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    #inquiryMessage {
        right: 10px !important;
        left: 10px !important;
        bottom: 20px !important;
        top: auto !important;
        max-width: none;
    }
}

/* ===== AVAILABLE CITIES SECTION ===== */
.available-cities-section {
    background: white;
    padding: 2rem 1.5rem;
    margin-top: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.available-cities-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.city-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.05) 0%, rgba(255, 102, 0, 0.02) 100%);
    border: 1px solid rgba(255, 102, 0, 0.1);
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.city-link:hover {
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.1) 0%, rgba(255, 102, 0, 0.05) 100%);
    border-color: rgba(255, 102, 0, 0.3);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.15);
}

.city-link i {
    font-size: 0.85rem;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .cities-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .available-cities-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }

    .city-link {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 600px) {
    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .available-cities-section h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .city-link {
        padding: 0.7rem 0.8rem;
        font-size: 0.75rem;
        gap: 0.3rem;
    }

    .city-link i {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .available-cities-section {
        padding: 1.5rem 0;
        margin-top: 1rem;
    }

    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .available-cities-section h2 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .city-link {
        padding: 0.6rem 0.6rem;
        font-size: 0.65rem;
    }
}

@media (max-width: 380px) {
    .cities-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .city-link {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    .city-link i {
        font-size: 0.8rem;
    }
}
