/* Post Layout */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 15px;
    /* Inset to 90% with side gutters to match the tour pages' framed look.
       Restored to full width on phones in the max-width: 768px block below. */
    width: 90%;
    box-sizing: border-box;
}

.post-layout {
    display: grid;
    /* Sidebar fixed at 350px to match the tour pages (day-trip.css). */
    grid-template-columns: 1fr 350px;
    /* 2rem (32px) gap between content and sidebar, matching the gap between cards. */
    gap: 2rem;
    /* 2rem (32px) top gap, matching the gap between cards. */
    margin: 2rem auto;
}

/* Main Content */
.post-main {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Title */
.post-title {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

/* Post Meta */
.post-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

/* Date, views, author and category all sit on a single horizontal row; it only
   wraps when the viewport is too narrow to hold them. */
.post-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.post-meta i {
    color: #4a5568;
}

.post-meta a {
    color: #2b6cb0;
    text-decoration: none;
}

.post-meta a:hover {
    text-decoration: underline;
}

/* Tour Quick Info Section */
.tour-quick-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.tour-quick-info .tour-quick-info-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.tour-quick-info .tour-quick-info-item i {
    width: 20px;
    margin-top: 2px;
    color: #2b6cb0;
    flex: 0 0 20px;
}

.tour-quick-info .tour-quick-info-text {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    line-height: 1.35;
}

.tour-quick-info .tour-quick-info-label {
    font-size: 1rem;
    color: #334155;
    font-weight: 600;
}

.tour-quick-info .tour-quick-info-value {
    font-size: 1rem;
    color: #1e293b;
    font-weight: 500;
}

/* Post Content */
.post-content {
    font-family: 'Roboto', sans-serif;
    line-height: 1.7;
    color: #444;
    font-size: 1.05rem;
}

/* Ensure text blocks preserve whitespace and wrapping like the editor */
.block-text {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 2rem;
}

.post-content h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    color: #222;
    margin: 2.5rem 0 1.2rem;
    padding-top: 1rem;
    border-top: 2px solid #eee;
}

.post-content h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.4rem;
    color: #333;
    margin: 2rem 0 1rem;
}

.post-content p {
    margin-bottom: 1.2rem;
}

/* Blockquote */
.post-content blockquote {
    position: relative;
    margin: 2rem 0;
    padding: 1.5rem 1.75rem 1.5rem 3.25rem;
    background: #f8fafc;
    border-left: 4px solid #2b6cb0;
    border-radius: 0 8px 8px 0;
    font-family: 'Merriweather', serif;
    font-style: italic;
    color: #2d3748;
    font-size: 1.15rem;
    line-height: 1.7;
}

.post-content blockquote::before {
    content: "\201C";
    position: absolute;
    top: -0.35rem;
    left: 0.75rem;
    font-family: 'Merriweather', serif;
    font-size: 4rem;
    font-style: normal;
    line-height: 1;
    color: #2b6cb0;
    opacity: 0.25;
    pointer-events: none;
}

.post-content blockquote p {
    margin: 0;
}

.post-content blockquote p + p {
    margin-top: 0.9rem;
}

.post-content blockquote cite {
    display: block;
    margin-top: 0.9rem;
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-size: 0.9rem;
    color: #4a5568;
}

.post-content blockquote cite::before {
    content: "\2014\00a0";
    color: #718096;
}

.post-content blockquote cite a {
    color: #2b6cb0;
    text-decoration: none;
}

.post-content blockquote cite a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .post-content blockquote {
        padding: 1.25rem 1rem 1.25rem 2.5rem;
        font-size: 1.05rem;
    }

    .post-content blockquote::before {
        font-size: 3rem;
        left: 0.5rem;
        top: -0.15rem;
    }
}

/* Ensure images in public area have normal cursor (no resize) */
.post-content img,
.post-content-html img {
    cursor: default !important;
    user-select: none;
    max-width: 100%;
    height: auto;
}

/* Image Styles */
.image-full {
    margin: 2rem 0;
}

.image-full img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 0.5rem;
    padding: 0 1rem;
}

.image-left,
.image-right {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    align-items: flex-start;
}

.image-left img,
.image-right img {
    width: 40%;
    height: auto;
    border-radius: 6px;
    flex-shrink: 0;
}

.image-left-content,
.image-right-content {
    flex: 1;
}

.image-left img {
    order: -1;
}

.image-right img {
    order: 1;
}

.image-center {
    text-align: center;
    margin: 2rem 0;
}

.image-center img {
    max-width: 80%;
    height: auto;
    border-radius: 8px;
    margin: 0 auto;
    display: inline-block;
}

/* Highlight Box */
.highlight-box {
    background: #f8fafc;
    border-left: 4px solid #2b6cb0;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 6px 6px 0;
}

.highlight-box p {
    margin: 0;
    color: #444;
    font-style: italic;
}

/* Post Actions */
.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 1rem;
}

.like-button {
    background: #f8fafc;
    border: 1px solid #cbd5e0;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    color: #666;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.like-button:hover {
    background: #f0f4f8;
    border-color: #a0aec0;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.share-buttons span {
    color: #666;
    font-size: 0.9rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.share-btn.facebook { background: #1877F2; }
.share-btn.twitter { background: #1DA1F2; }
.share-btn.whatsapp { background: #25D366; }

.share-btn:hover {
    transform: translateY(-2px);
}

/* Comments Section */
.comments-section {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.comments-section h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.9rem;
    color: #1f2937;
    margin: 0;
}

/* Comment Form */
.comment-form-container {
    background: #f8fbff;
    padding: 1.75rem;
    border-radius: 16px;
    border: 1px solid #e0e8f7;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.comment-form-container h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.3rem;
    color: #1f2937;
    margin-bottom: 1.25rem;
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #cad5e5;
    border-radius: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    box-sizing: border-box;
    background: #fff;
}

.comment-form textarea {
    min-height: 130px;
    resize: vertical;
    margin-bottom: 0.5rem;
}

.comment-form button {
    background: #2b6cb0;
    color: #fff;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.comment-form button:hover {
    background: #1f4f8a;
    transform: translateY(-1px);
}

.comments-section .stars i {
    color: #f1c40f;
    cursor: pointer;
}

.comment-form-container .comment-feedback {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.comment-form-container .comment-feedback.success {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
}

.comment-form-container .comment-feedback.error {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #7f1d1d;
}
/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.comment {
    background: #fff;
    border: 1px solid #e4e9f4;
    border-radius: 18px;
    padding: 1.4rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    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.reply {
    margin-left: 2.4rem;
    background: #f9fbff;
    border-color: #dbe4f7;
}

.comment.reply::before {
    content: "";
    position: absolute;
    left: -1.25rem;
    top: 1.5rem;
    bottom: 1.5rem;
    width: 2px;
    background: linear-gradient(180deg, #cdd9f5, #9ab7f9);
}

.comment.reply .comment.reply {
    margin-left: 2rem;
}

/* Comment Header */
.comment-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.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 {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.comment-author strong {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comment-author span {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.15rem;
}

/* Comment Body */
.comment-body {
    color: #3d485c;
    line-height: 1.65;
    font-size: 1rem;
    word-break: break-word;
    position: relative;
    z-index: 1;
}

.comment:not(.reply) .comment-body,
.comment:not(.reply) .comment-footer {
    margin-left: calc(48px + 1rem);
}

.comment.reply .comment-body,
.comment.reply .comment-footer {
    margin-left: 0;
}

.comment-body p {
    margin: 0;
}

/* Comment Footer */
.comment-footer {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.comment-like,
.comment-reply {
    background: transparent;
    border: none;
    color: #6b7591;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.comment-like:hover,
.comment-reply:hover {
    background: #edf2ff;
    color: #1f4f8a;
}

@media (max-width: 640px) {
    .comment-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .comment,
    .comment.reply {
        margin-left: 0;
    }
    
    .comment.reply::before {
        display: none;
    }
    
    .comment:not(.reply) .comment-body,
    .comment:not(.reply) .comment-footer {
        margin-left: 0;
    }
}

/* Sidebar */
.post-sidebar {
    display: flex;
    flex-direction: column;
    /* Match the horizontal column gap in .post-layout so the spacing
       between sidebar widgets equals the gap between content and sidebar. */
    gap: 2rem;
}

.sidebar-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.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;
}

/* Recent Posts - Match similar tours layout */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.recent-post-card {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    align-items: flex-start;
}

.recent-post-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Matches the "Similar Tours" thumbnails: the image fills the box edge to edge.
   The old border + tinted backing showed as a frame around every letterboxed
   thumbnail, because the image was contained rather than cropped. */
.recent-post-image {
    position: relative;
    flex-shrink: 0;
    width: 100px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #f7fafc;
}

.recent-post-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.recent-post-info h4 {
    margin: 0 0 0.4rem 0;
    font-size: 0.95rem;
    line-height: 1.3;
    text-align: left;
}

.recent-post-info h4 a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.recent-post-info h4 a:hover {
    color: #2b6cb0;
}

.recent-post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #64748b;
    flex-wrap: wrap;
}

.recent-post-meta span {
    display: flex;
    align-items: center;
}

.recent-post-meta i {
    margin-right: 0.25rem;
}

/* Categories */
.categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.categories li:last-child {
    border-bottom: none;
}

.categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #444;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.categories a:hover {
    color: #2b6cb0;
}

.categories span {
    background: #e2e8f0;
    color: #4a5568;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .post-main {
        padding: 1.5rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
        width: 100%;
    }
    
    .post-layout {
        gap: 2rem;
    }
    
    .post-title {
        font-size: 1.7rem;
    }
    
    .post-meta {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
    }
    
    .image-left,
    .image-right {
        flex-direction: column;
    }
    
    .image-left img,
    .image-right img {
        width: 100%;
        order: 0;
    }
    
    .comment-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .comment.reply {
        margin-left: 1.5rem;
    }
    
    .comment-body {
        margin-left: 0;
        padding-left: calc(40px + 0.75rem);
    }
    
    .comment-footer {
        margin-left: calc(40px + 0.75rem);
    }
    
    .post-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .recent-post-image {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .post-main {
        padding: 1rem;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .sidebar-section {
        padding: 1rem;
    }
    
    .comment-header {
        flex-wrap: wrap;
    }
    
    .comment-body {
        padding-left: 0;
    }
    
    .comment-footer {
        margin-left: 0;
    }
    
    .comment.reply {
        margin-left: 1rem;
    }
    
    .recent-post-card {
        align-items: flex-start;
    }
    
    .recent-post-image {
        width: 60px;
        height: 60px;
    }
}

/* Advertisement Card */
.advertisement-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
}

.ad-label {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    text-align: center;
}

.ad-label span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ad-content {
    padding: 1.5rem;
    text-align: center;
}

.ad-logo {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.ad-content h4 {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: white;
}

.ad-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.25rem;
}

.ad-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
    padding: 0 0.5rem;
}

.ad-features span {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.ad-features i {
    color: #48bb78;
    font-size: 0.9rem;
}

.ad-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: white;
    color: #667eea;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.ad-button:hover {
    background: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Advertisement responsive adjustments */
@media (max-width: 1024px) {
    .advertisement-card {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .ad-content {
        padding: 1.25rem;
    }
    
    .ad-logo {
        font-size: 2rem;
    }
    
    .ad-content h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .ad-content {
        padding: 1rem;
    }
    
    .ad-features {
        padding: 0;
    }
}

/* HIDE ADMIN CONTROLS ON FRONTEND */
.block-controls,
.block-resize-handle,
.selection-rectangle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Reset styles for content blocks that might look like editor elements */
.content-block {
    border: none !important;
    position: relative !important; /* Keep relative for image positioning if needed */
    margin-bottom: 1.5em; /* Add some spacing between blocks */
}

/* Ensure images take full width of their container/block */
.content-block img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    cursor: default !important; /* Reset cursor */
}

/* Remove hover effects from blocks */
.content-block:hover {
    border-color: transparent !important;
}

/* --- Comment title (optional headline) ------------------------------------
   Item 35. These three rules were written into assets/css/comments-blog.css
   and comments-tours.css on 2026-08-24, but no PHP file ever linked either
   stylesheet, so the headline reached the page as an unstyled <h4> and the
   optional title field looked nothing like the inputs beside it.
   post.css already carries the rest of the comment styling and is loaded on
   blog posts, day trips, exclusive tours and multi-day tours, so the rules
   belong here rather than in a file nothing includes.
   ------------------------------------------------------------------------- */
.comments-section .comment-title-input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    color: #2d3748;
    background: #fff;
}

.comments-section .comment-title-input:focus {
    outline: none;
    border-color: #2b6cb0;
}

.comments-section .comment-title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1a202c;
}

/* --- Comment title alignment (item 45, 2026-09-25) --------------------------
   The global "h1..h6" rule in style.css centres every heading and sets it in
   Merriweather, so the optional comment headline (<h4 class="comment-title">)
   sat centred in a serif face above left-aligned Roboto text. Left-align it,
   use the body font, and indent it exactly like .comment-body so the headline
   lines up with the comment text at every breakpoint. */
.comments-section .comment-title {
    text-align: left;
    font-family: inherit;
}
.comments-section .comment:not(.reply) > .comment-title {
    margin-left: calc(48px + 1rem);
}
.comments-section .comment.reply > .comment-title {
    margin-left: 0;
}
@media (max-width: 768px) {
    .comments-section .comment > .comment-title {
        padding-left: calc(40px + 0.75rem);
    }
}
@media (max-width: 640px) {
    .comments-section .comment:not(.reply) > .comment-title {
        margin-left: 0;
    }
}
@media (max-width: 480px) {
    .comments-section .comment > .comment-title {
        padding-left: 0;
    }
}