html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

h1, h2, h3, h4, h5, h6, h7 {
    font-family: 'Arial', sans-serif;
}

.form-label {
    font-weight: bold;
}

.row-add-initial{
    min-height: 250px;
}

label {
    font-weight: bold;
}

.text-center {
    text-align: center;
}

/* Default Fonts */
@font-face {
    font-family: 'Lobster';
    src: url('../fonts/Lobster/Lobster-Regular.ttf') format('woff2');
}

@font-face {
    font-family: 'GreatVibes';
    src: url('../fonts/Great_Vibes/GreatVibes-Regular.ttf') format('woff2');
}

@font-face {
    font-family: 'GaramondItalic';
    src: url('../fonts/Cormorant_Garamond/CormorantGaramond-Italic-VariableFont_wght.ttf') format('woff2');
}

@font-face {
    font-family: 'Garamond';
    src: url('../fonts/Cormorant_Garamond/CormorantGaramond-VariableFont_wght.ttf') format('woff2');
}

.lobster {
    font-family: Lobster, Arial, sans-serif;
}

.great-vibes {
    font-family: GreatVibes, Arial, sans-serif;
}

.garamond {
    font-family: Garamond, Arial, sans-serif;
}

.garamond-italic {
    font-family: GaramondItalic, Arial, sans-serif;
}

/* Helper CSS Classes */

input:required {
    background-color: var(--bs-warning-bg-subtle);
}

.input-validation-error {
    background-color: var(--bs-danger-bg-subtle) !important;
}

/* Default Slideshow Configurations */
.no-padding {
    padding: 0;
}

.splash-details {
    position: center;
    color: white;
    margin-top: 240px;
    text-align: center;
    background: rgba(33, 33, 33, 0.5);
}

.slogan, .slogan h1, .slogan h2, .slogan h3, .slogan h4, .slogan h5, .slogan h6, .slogan h7 {
    font-weight: bold;
    color: #eeeeee;
    text-align: center;
}

.slogan-details {
    text-align: center;
    color: #eeeeee;
}

.slogan-details a, .slogan-details a:visited, .slogan-details a:active {
    color: #cccccc;
    text-decoration: none;
}

.slogan-details a:hover {
    color: #ffffff;
    text-decoration: none;
}

.no-margin {
    margin: 0 !important;
}

.white-border {
    border: 1px solid white;
}

.dropdown-menu show {
    z-index: 10000;
}

.edit-content {
    border: 2px dashed crimson;
    border-radius: 10px;
}

select.disabled {
    pointer-events: none; /* Prevents the element from being clickable. */
    background-color: #f0f0f0;
    color: #a0a0a0;
    border: 1px solid #dcdcdc;
    opacity: 0.6;
    cursor: default;
}

input.disabled {
    pointer-events: none; /* Prevents the element from being clickable. */
    background-color: #f0f0f0;
    color: #a0a0a0;
    border: 1px solid #dcdcdc;
    opacity: 0.6;
    cursor: default;
}

.row-deleted {
    font-style: italic;
}

.container-slideshow {
    --bs-gutter-x: 0;
    max-height: 600px;
}

.edit-content {
    max-width: 100%;
}

.carousel-item {
    position: relative;
}

.overlay-center {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.drop-shadow {
    filter:drop-shadow(4px 4px 8px rgba(26, 81, 138, 0.34));
}

.carousel-item .text-body-emphasis {
    --bs-emphasis-color: #052c65;
}

.carousel-jumbotron {
    padding-left: 20%;
    padding-right: 20%;
    text-align: center !important;
    align-items: center !important;
    background-color: rgba(255, 255, 255, 0.6);
}

.header {
    padding-left: 0;
    padding-right: 0;
}

.client-navbar .nav-link {
    font-weight: 600;
}

.client-navbar {
    /*background-color: rgba(245, 255, 230, 0.6);*/
}

.left-header {
    background-color: #faf4d1;
}

.right-header {
    background-image: url("https://placecats.com/1024/768");
    background-size: cover;
}

.slideshow-banner-title {

}

.slideshow-banner-slogan {

}

/* Blog Specific Classes */
.blog-roll-box {
    display: flex;
    justify-content: center;
}

.blog-roll-img-thumbnail {
    align-items: center;
    flex-shrink: 0;
    background-color: #dcdcdc;
    border-radius: 8px;
    padding: 4px;
    margin: 4px;
    text-align: center;
}

@media (min-width: 768px) {
    .blog-roll-img-thumbnail {
        min-width: 240px;
        max-width: 240px;
    }
}

/* Mobile: full-width */
@media (max-width: 767.98px) {
    .blog-roll-img-thumbnail {
        width: 100%;
        max-width: 100%;
        margin-bottom: 12px;
    }
}

.blog-roll-img-thumbnail img {
    border-radius: 8px;
    min-width: 85%;
    max-width: 95%;
}

.blog-card-title {
    font-size: larger;
}

.blog-card-description {
    font-size: large;
}

/* Classifieds CSS */

.classified-card {
    display: flex;
    flex-direction: row;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s ease;
}

.classified-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.classified-primary-image {
    flex-shrink: 0;
    width: 200px;
    min-height: 180px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.classified-primary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.classified-primary-image .no-image {
    color: #adb5bd;
    font-size: 3rem;
}

.classified-content {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.classified-headline {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.classified-description {
    color: #495057;
    flex: 1;
    overflow: scroll;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    margin-bottom: 0.75rem;
}

.classified-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

.classified-meta i {
    width: 18px;
}

.classified-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.classified-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.classified-thumbnail:hover {
    border-color: #0d6efd;
}

.classified-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sold-badge {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.edit-link {
    font-size: 0.875rem;
}

@media (max-width: 576px) {
    .classified-card {
        flex-direction: column;
    }

    .classified-primary-image {
        width: 100%;
        height: 200px;
    }
}

/* Image popup modal for classifieds */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    cursor: pointer;
}

.image-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-modal img {
    display: block;
    margin: auto;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.image-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 30px;
    padding: 20px 15px;
    cursor: pointer;
    z-index: 10000;
    transition: background 0.3s ease;
    display: none;
}

.image-modal-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.image-modal-nav-left {
    left: 20px;
}

.image-modal-nav-right {
    right: 20px;
}

.image-modal-nav i {
    display: block;
}

/* Gallery Specific Classes */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.gallery-card {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .gallery-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    }

.gallery-cover {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .gallery-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .gallery-cover .no-image {
        color: rgba(255,255,255,0.7);
        font-size: 3rem;
    }

    .gallery-cover .image-count {
        position: absolute;
        bottom: 10px;
        right: 10px;
        background: rgba(0,0,0,0.7);
        color: white;
        padding: 0.25rem 0.75rem;
        border-radius: 20px;
        font-size: 0.875rem;
    }

.gallery-content {
    padding: 1.25rem;
}

.gallery-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #212529;
}

.gallery-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-meta {
    font-size: 0.85rem;
    color: #6c757d;
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.gallery-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.gallery-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

    .gallery-thumb:hover {
        border-color: #0d6efd;
    }

    .gallery-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


.gallery-form-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.gallery-form-card .card-header {
    color: white;
    border-radius: 8px 8px 0 0;
}

.gallery-list-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

    .gallery-list-item:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

.gallery-list-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

    .gallery-list-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .gallery-list-thumbnail .no-image {
        color: rgba(255,255,255,0.7);
        font-size: 1.5rem;
    }

.gallery-list-content {
    flex: 1;
    min-width: 0;
}

.gallery-list-name {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-list-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

.gallery-list-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.image-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #dee2e6;
    background: #f8f9fa;
    transition: border-color 0.2s ease;
}

    .image-item:hover {
        border-color: #667eea;
    }

    .image-item.marked-for-deletion {
        opacity: 0.5;
        border-color: #dc3545;
    }

    .image-item .image-preview {
        width: 100%;
        height: 140px;
        object-fit: cover;
        cursor: pointer;
    }

    .image-item .delete-checkbox {
        position: absolute;
        top: 8px;
        right: 8px;
        background: rgba(220, 53, 69, 0.9);
        color: white;
        border: none;
        padding: 0.25rem 0.5rem;
        cursor: pointer;
        border-radius: 4px;
        font-size: 0.875rem;
    }

        .image-item .delete-checkbox:hover {
            background: #c82333;
        }

    .image-item .awaiting-approval-badge {
        position: absolute;
        top: 8px;
        left: 8px;
        background: rgba(255, 193, 7, 0.95);
        color: #212529;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: 600;
    }

    .image-item .caption-inputs {
        padding: 0.75rem;
    }

        .image-item .caption-inputs input,
        .image-item .caption-inputs textarea {
            font-size: 0.875rem;
            margin-bottom: 0.5rem;
        }

.limit-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.limit-info {
    background: #e7f3ff;
    border: 1px solid #0d6efd;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.image-modal-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-align: center;
    padding: 1rem;
    background: rgba(0,0,0,0.6);
    border-radius: 8px;
    max-width: 80%;
}
