/* Tour Page Specific Styles */

/* Prevent horizontal scroll on mobile */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure all images fit container */
img {
    max-width: 100%;
    height: auto;
}

/* Mobile First Base Styles */
.container {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
}

.post-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    grid-template-columns: none;
    margin: 1rem 0;
}

/* Fix for post-main overflow */
.post-main {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    background: white;
    border-radius: 8px;
}

/* Ensure all children don't overflow */
.post-main > * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Tour Header */
.tour-header {
    margin-bottom: 1rem;
    width: 100%;
}

.tour-title-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
    width: 100%;
}

.post-title {
    text-align: left;
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.2;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.tour-price-section {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.tour-price-section .price-old {
    font-size: 1.2rem;
    color: #a0aec0;
    text-decoration: line-through;
    margin-bottom: 0.25rem;
}

.tour-price-section .price-current {
    font-size: 2rem;
    font-weight: 700;
    color: #2b6cb0;
    margin-bottom: 0;
}

.tour-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: #666;
    font-size: 0.85rem;
    width: 100%;
}

.tour-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tour-meta i {
    color: #4a5568;
    min-width: 20px;
}

/* Tour Gallery */
.tour-gallery {
    margin-bottom: 2rem;
    width: 100%;
}

.main-gallery-image {
    margin-bottom: 0.75rem;
    width: 100%;
}

.main-gallery-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.gallery-thumb {
    width: 70px;
    height: 52px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.gallery-thumb.active {
    opacity: 1;
    border-color: #2b6cb0;
}

.gallery-thumb:hover {
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tour Itinerary Accordion styles moved to accordion-day-trip.css */

/* Tour Details & Booking */
.tour-details-section {
    margin: 2rem 0;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

.details-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.details-column {
    width: 100%;
    overflow: hidden;
}

.details-column h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    color: #333;
    margin: 1.5rem 0 1rem;
    text-align: left;
}

.details-column h3:first-child {
    margin-top: 0;
}

.included-list,
.excluded-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    width: 100%;
}

.included-list li,
.excluded-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #444;
    width: 100%;
}

.included-list i {
    color: #48bb78;
    flex-shrink: 0;
}

.excluded-list i {
    color: #e53e3e;
    flex-shrink: 0;
}

.important-info {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #ed8936;
    width: 100%;
    box-sizing: border-box;
}

.important-info p {
    margin-bottom: 0.75rem;
    color: #444;
    font-size: 0.9rem;
}

.important-info p:last-child {
    margin-bottom: 0;
}

/* Booking Card */
.booking-column {
    width: 100%;
}

.booking-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.booking-form h4 {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.2rem;
    width: 100%;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #444;
    font-weight: 500;
    font-size: 0.95rem;
    width: 100%;
}

.form-group label i {
    color: #4a5568;
}

.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    background: white;
    color: #333;
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
}

.form-group select:focus {
    outline: none;
    border-color: #2b6cb0;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

/* Date picker */
.date-picker {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    background: white;
    color: #333;
    cursor: pointer;
    box-sizing: border-box;
}

.date-picker:focus {
    outline: none;
    border-color: #2b6cb0;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

/* Participants group */
.participants-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.participants-group h5 {
    font-family: 'Merriweather', serif;
    font-size: 1rem;
    color: #333;
    margin-bottom: 1rem;
    text-align: left;
}

.participants-row.single-line {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    width: 100%;
}

.participants-row.single-line .form-group.compact {
    margin-bottom: 0;
    width: 100%;
}

.participants-row.single-line .form-group.compact label {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.participants-row.single-line .form-group.compact select {
    padding: 0.6rem;
    font-size: 0.9rem;
    width: 100%;
}

.age-info {
    display: block;
    font-size: 0.75rem;
    color: #718096;
    margin-top: 0.25rem;
    text-align: center;
    width: 100%;
}

/* Tour Type Radio Buttons */
.tour-type-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.tour-type-group h5 {
    font-family: 'Merriweather', serif;
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.75rem;
    text-align: left;
}

.tour-type-options {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
}

.tour-type-option {
    flex: 1;
    min-width: 120px;
}

.tour-type-option input[type="radio"] {
    display: none;
}

.tour-type-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.tour-type-option input[type="radio"]:checked + label {
    border-color: #2b6cb0;
    background: #ebf8ff;
}

.tour-type-option label i {
    color: #4a5568;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tour-type-label {
    font-weight: 500;
    color: #333;
}

.tour-type-price {
    display: none;
}

.price-summary {
    background: #f7fafc;
    padding: 1rem;
    border-radius: 6px;
    margin: 1.5rem 0;
    width: 100%;
    box-sizing: border-box;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: #666;
    font-size: 0.9rem;
    width: 100%;
}

.discount-item {
    display: none;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: #48bb78;
    font-size: 0.9rem;
    width: 100%;
}

.discount-item .discount-amount {
    color: #48bb78;
    font-weight: 600;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 2px solid #e2e8f0;
    font-weight: 700;
    font-size: 1rem;
    color: #333;
    width: 100%;
}

.book-now-btn {
    width: 100%;
    background: #2b6cb0;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: background 0.2s ease;
    box-sizing: border-box;
}

.book-now-btn:hover {
    background: #1a4f8c;
}

.secure-booking {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: #718096;
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
}

.secure-booking i {
    color: #48bb78;
}

/* FAQ Section */
.faq-section {
    margin: 3rem 0;
    width: 100%;
}

.faq-section h2 {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    color: #222;
    margin-bottom: 2rem;
    text-align: left;
    padding-bottom: 1rem;
    border-bottom: 3px solid #2b6cb0;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.faq-item {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-item:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-item.active {
    border-color: #2b6cb0;
    box-shadow: 0 4px 16px rgba(43, 108, 176, 0.15);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: #f8fafc;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-family: 'Merriweather', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #edf2f7;
    color: #2b6cb0;
}

.faq-item.active .faq-question {
    background: #ebf8ff;
    color: #2b6cb0;
}

.faq-question span {
    flex: 1;
    padding-right: 1rem;
}

.faq-question i {
    color: #718096;
    font-size: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    color: #2b6cb0;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1.25rem 1.5rem;
}

.faq-answer p {
    color: #4a5568;
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

/* Reviews Section */
.comments-section {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.comments-section h2,
.comment-form-container h3 {
    text-align: left;
    margin-bottom: 1rem;
}

.comment-form-container {
    background: #f8fbff;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid #e0e8f7;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row input,
.comment-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #cad5e5;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    box-sizing: border-box;
    background: #fff;
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form button[type="submit"] {
    background: #2b6cb0;
    color: #fff;
    border: none;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.2s ease;
}

.comment-form button[type="submit"]:hover {
    background: #215592;
}

/* Rating Input */
.rating-input {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.rating-input span {
    color: #2d3748;
    font-weight: 500;
}

.rating-input .stars {
    display: flex;
    gap: 0.3rem;
}

.rating-input .stars i {
    color: #f59e0b;
    cursor: pointer;
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.rating-input .stars i:hover {
    transform: scale(1.1);
}

.review-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.review-rating i {
    color: #f59e0b;
    font-size: 0.9rem;
}

.review-rating i.far {
    color: #d4dae5;
}

.review-rating span {
    color: #64748b;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.comment {
    background: #fff;
    border: 1px solid #e3e9f3;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.comment::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.comment-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.comment-header img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

.comment-author {
    flex: 1;
    min-width: 0;
}

.comment-author strong {
    display: block;
    color: #1f2937;
    font-size: 1rem;
    margin-bottom: 0.1rem;
    word-break: break-word;
}

.comment-body {
    color: #3d485c;
    line-height: 1.65;
    font-size: 1rem;
}

.comment-body p {
    margin: 0;
    word-break: break-word;
}

.comment-footer {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.comment-like,
.comment-reply {
    background: transparent;
    border: none;
    color: #6b7591;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.comment-like:hover,
.comment-reply:hover {
    color: #215592;
    background: #edf2ff;
}

.replies {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-left: 2.5rem;
    padding-left: 1.5rem;
    border-left: 2px solid #e2e8f4;
}

.reply {
    background: #f9fbff;
    border: 1px solid #dde6f6;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reply .comment-header img {
    width: 40px;
    height: 40px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12);
}

.reply .comment-body {
    font-size: 0.95rem;
}

.reply:last-child {
    margin-bottom: 0;
}

.reply .replies {
    margin-left: 2rem;
    padding-left: 1.25rem;
}

.comment-form.small {
    gap: 0.75rem;
}

.comment-form.small textarea {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
    min-height: 70px;
}

.reply-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.reply-buttons button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

.reply-buttons button[type="submit"] {
    background: #2b6cb0;
    color: #fff;
}

.reply-buttons .cancel-reply {
    background: #e4e9f4;
    color: #475569;
}

/* Sidebar */
.post-sidebar {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.sidebar-section {
    width: 100%;
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.sidebar-section h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    color: #222;
    margin-bottom: 1.2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #eee;
    text-align: left;
}

/* Similar Tours - Left aligned */
.similar-tours {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.similar-tour {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
    box-sizing: border-box;
}

.similar-tour:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tour-image {
    position: relative;
    flex-shrink: 0;
    width: 100px;
    height: 80px;
    overflow: hidden;
    border-radius: 6px;
}

.tour-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f7fafc;
}

.tour-price-overlay {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
}

.tour-price-overlay .price-current {
    background: #2b6cb0;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
}

.tour-price-overlay .price-old {
    color: white;
    font-size: 0.65rem;
    text-decoration: line-through;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.1rem 0.3rem;
    border-radius: 2px;
    line-height: 1;
}

.price-save-small {
    background: #48bb78;
    color: white;
    padding: 0.1rem 0.3rem;
    border-radius: 2px;
    font-size: 0.6rem;
    font-weight: 600;
    line-height: 1;
    margin-top: 0.1rem;
}

/* Tour Info - Left aligned */
.tour-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.tour-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.2;
    text-align: left;
}

.tour-info h4 a {
    color: #333;
    text-decoration: none;
}

.tour-info h4 a:hover {
    color: #2b6cb0;
}

/* Tour Meta Single Line - Left aligned */
.tour-meta-single-line {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #666;
    justify-content: flex-start;
}

.tour-meta-single-line span {
    display: flex;
    align-items: center;
}

.tour-meta-single-line i {
    margin-right: 0.25rem;
}

/* Star rating in tour meta - Orange */
.tour-meta-single-line i.fa-star {
    color: #f59e0b;
}

/* Advertisement */
.advertisement-card {
    width: 100%;
    margin-bottom: 2rem;
}

/* Post Content - Fix overflow */
.post-content {
    width: 100%;
    overflow: hidden;
}

.post-content h2 {
    text-align: left;
}

.post-content img {
    max-width: 100%;
    height: auto;
}

.image-full {
    width: 100%;
    overflow: hidden;
}

.image-full img {
    max-width: 100%;
    height: auto;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
        margin: 0 auto;
    }
    
    .post-layout {
        flex-direction: row;
    }
    
    .post-main {
        flex: 1;
        min-width: 0;
        padding: 1.5rem;
    }
    
    .post-sidebar {
        width: 350px;
        flex-shrink: 0;
    }
    
    .tour-title-row {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .tour-price-section {
        align-items: flex-end;
        text-align: right;
        width: auto;
    }
    
    .tour-meta {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .main-gallery-image img {
        height: 350px;
    }
    
    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        flex-direction: row;
    }
    
    .similar-tour {
        flex-direction: row;
    }
    
    .tour-image {
        width: 120px;
        height: 100px;
    }
    
    /* Replies on tablet */
    .replies {
        margin-left: 2rem;
        width: calc(100% - 2rem);
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .container {
        max-width: 1140px;
    }
    
    .post-main {
        padding: 2rem;
    }
    
    .details-content {
        display: grid;
        grid-template-columns: 1fr 350px;
    }
    
    .main-gallery-image img {
        height: 400px;
    }
    
    .post-title {
        font-size: 2.2rem;
    }
    
    .tour-price-section .price-current {
        font-size: 2.5rem;
    }
    
    .gallery-thumb {
        width: 80px;
        height: 60px;
    }
    
    .booking-card {
        position: sticky;
        top: 1rem;
    }
    
    /* Replies on desktop */
    .replies {
        margin-left: 2.5rem;
        width: calc(100% - 2.5rem);
    }
}

/* Small Mobile Adjustments */
@media (max-width: 375px) {
    .container {
        padding: 0 10px;
    }
    
    .post-title {
        font-size: 1.6rem;
    }
    
    .tour-price-section .price-current {
        font-size: 1.8rem;
    }
    
    .participants-row.single-line {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tour-image {
        width: 90px;
        height: 70px;
    }
    
    .similar-tour {
        gap: 0.75rem;
    }
    
    .accordion-header {
        padding: 0.75rem;
    }
    
    .accordion-content .day-content {
        padding: 0.75rem;
    }
    
    /* Replies on small mobile */
    .replies {
        margin-left: 0.75rem;
        padding-left: 0.75rem;
        width: calc(100% - 0.75rem);
    }
    
    .comment {
        padding: 0.75rem;
    }
    
    .reply {
        padding: 0.75rem;
    }
}


/* Date input wrapper for clear button positioning */
.date-input-wrapper {
    position: relative;
    width: 100%;
}

.date-input-wrapper .date-picker {
    padding-right: 100px !important;
}

