/*
 * Custom CSS for DFS Group Theme
 */

.site-logo .custom-logo-link img {
    max-height: 70px;
    width: auto;
}

/* Marquee Animation */
.js-marquee-wrapper {
    display: flex;
    white-space: nowrap;
}

.marquee-track {
    display: inline-block;
    padding-right: 0;
    animation: marquee-scroll 45s linear infinite;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* --------------------------------------------------------------------------
   GLOBAL POST/PAGE CONTENT STYLES (.entry-content)
   -------------------------------------------------------------------------- */
:where(.entry-content) {
    font-size: 16px;
}

:where(.entry-content) h1,
:where(.entry-content) h2,
:where(.entry-content) h3,
:where(.entry-content) h4,
:where(.entry-content) h5,
:where(.entry-content) h6 {
    font-weight: 700;
    margin-bottom: 10px;
}

:where(.entry-content) h1 {
    font-size: 22px;
}

:where(.entry-content) h2 {
    font-size: 20px;
}

:where(.entry-content) h3 {
    font-size: 18px;
}

:where(.entry-content) h4,
:where(.entry-content) h5,
:where(.entry-content) h6 {
    font-size: 16px;
}

:where(.entry-content) p {
    margin-bottom: 12px;
}

:where(.entry-content) ul {
    list-style-type: disc;
    padding-left: 2rem;
    margin-bottom: 12px;
}

:where(.entry-content) ol {
    list-style-type: decimal;
    padding-left: 2rem;
    margin-bottom: 12px;
}

:where(.entry-content) li {
    display: list-item;
}

:where(.entry-content) ul ul,
:where(.entry-content) ol ul {
    list-style-type: circle;
    margin-bottom: 0;
}

:where(.entry-content) ul ul ul,
:where(.entry-content) ol ul ul {
    list-style-type: square;
}

:where(.entry-content) ol ol,
:where(.entry-content) ul ol {
    list-style-type: lower-alpha;
    margin-bottom: 0;
}

/* --- Global: Custom Pagination --- */
.dfsgroup-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 4px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dfsgroup-pagination .page-numbers.current {
    background-color: #000;
    color: #fff;
    font-weight: 700;
}

.dfsgroup-pagination .page-numbers:not(.current):not(.dots):hover {
    color: #000;
}

.dfsgroup-pagination .next.page-numbers i {
    color: #226688;
}

/* --- Package: Booking Popup & CF7 Styling --- */
#booking-modal .booking-modal-content {
    border-radius: 8px;
}

.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wpcf7-form p {
    margin-bottom: 0;
}

.wpcf7-form label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #000;
}

.wpcf7-form-control-wrap {
    display: block;
}

.wpcf7-form-control {
    width: 100% !important;
    padding: 8px 16px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 4px !important;
    font-size: 15px !important;
    color: #374151 !important;
    background-color: #fff !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

.wpcf7-form-control:focus {
    border-color: #000 !important;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05) !important;
}

.wpcf7-submit {
    background-color: #000 !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 14px 40px !important;
    border-radius: 0 !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: none !important;
    margin-top: 10px !important;
}

.wpcf7-submit:hover {
    background-color: #333 !important;
    transform: translateY(-2px);
}

.wpcf7-spinner {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.wpcf7-response-output {
    margin: 20px 0 0 0 !important;
    padding: 12px 16px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    text-align: center !important;
    border-width: 1px !important;
}

.wpcf7-mail-sent-ok {
    border-color: #10b981 !important;
    color: #047857 !important;
    background-color: #ecfdf5 !important;
}

.wpcf7-validation-errors {
    border-color: #ef4444 !important;
    color: #991b1b !important;
    background-color: #fef2f2 !important;
}

/* Double column for some fields if needed */
.booking-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .booking-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Responsive Header Refinements --- */
@media (max-width: 991px) {
    .site-header .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .site-logo img {
        height: 28px !important;
        width: auto;
    }

    body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }

    #mobile-bottom-nav {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(8px);
        padding-bottom: env(safe-area-inset-bottom);
        height: auto;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
    }

    #mobile-bottom-nav > div {
        height: 60px;
        display: flex;
        align-items: stretch;
    }

    #mobile-bottom-nav a, 
    #mobile-bottom-nav button {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5px;
    }
}

/* --- Back to Top Button --- */
#back-to-top {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

@media (max-width: 991px) {
    #back-to-top {
        bottom: calc(76px + env(safe-area-inset-bottom));
        right: 16px;
    }
}

#back-to-top:hover {
    transform: scale(1.1);
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Global: Category Nav --- */
.cateNav.active {
    border-color: #000 !important;
    pointer-events: none;
    cursor: default;
}
