/* Schmidty Travel Tales - Custom Styles */

/* Trip cover hero on trip detail page */
.trip-hero {
    text-align: center;
    background: #f8f9fa;
}

.trip-cover-img {
    max-width: 100%;
    max-height: 500px;
    height: auto;
}

.trip-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 2rem 0 1rem;
}

/* Trip cards on home page */
.trip-card img.card-img-top {
    width: auto !important;
    max-width: 100%;
    max-height: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.trip-card {
    transition: transform 0.2s ease;
}

.trip-card:hover {
    transform: translateY(-2px);
}

/* Photo gallery thumbnails */
.gallery-thumb {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: opacity 0.2s;
}

.gallery-thumb:hover {
    opacity: 0.85;
}

/* Day content styling — inline images */
.day-body img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
    margin: 1.5rem auto;
}

.day-body img:hover {
    cursor: pointer;
}

/* Inline image figures with captions */
.day-inline-figure {
    text-align: center;
    margin: 1.5rem 0;
}

.day-inline-figure figcaption,
.gallery-figure figcaption {
    font-size: 0.875rem;
    color: #6c757d;
    font-style: italic;
    margin-top: 0.25rem;
}

.gallery-figure {
    margin: 0;
}

.day-body p {
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Quill editor inline images */
.ql-editor img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0.5rem 0;
    border-radius: 0.375rem;
}

/* Day navigation */
.day-nav .btn {
    max-width: 45%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ad slots */
.ad-slot img {
    max-width: 100%;
    border-radius: 0.375rem;
}

/* Admin: image upload zone */
#image-upload-zone {
    border-color: #adb5bd !important;
    transition: border-color 0.2s, background-color 0.2s;
}

#image-upload-zone.drag-over {
    border-color: #0d6efd !important;
    background-color: #e7f1ff;
}

/* Admin: image card hover for delete button */
.image-card .btn-danger {
    opacity: 0;
    transition: opacity 0.2s;
}

.image-card:hover .btn-danger {
    opacity: 1;
}

/* Admin: sortable ghost */
.sortable-ghost {
    opacity: 0.4;
}

/* Quill editor overrides */
.ql-editor {
    min-height: 200px;
}
