:root {
    --jhmb-primary: #eeba6b;
    --jhmb-secondary: #8c9b8c;
    --jhmb-text: #333;
    --jhmb-bg: #f5f5f5;
    --jhmb-card-bg: #fff;
    --jhmb-border-radius: 12px;
}

/* Landing Widget */
.jhmb-landing-filter {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    margin-top: 30px;
}

.jhmb-type-toggle {
    cursor: pointer;
}

.jhmb-type-toggle input {
    display: none;
}

.jhmb-toggle-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    font-weight: 600;
}

.jhmb-type-toggle input:checked+.jhmb-toggle-icon {
    background: #FAA852;
    color: #fff;
}

.jhmb-animals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns */
    gap: 30px;
    margin-bottom: 30px;
}

@media (min-width: 1025px) {
    .jhmb-landing-widget .jhmb-animals-grid.jhmb-landing-few-items {
        grid-template-columns: repeat(auto-fit, minmax(0, 380px));
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .jhmb-animals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .jhmb-animals-grid {
        grid-template-columns: 1fr;
    }
}

.jhmb-animal-card {
    background: #fff;
    /* White background as per Image 1 */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    border: 1px solid #eee;
    /* Restore border for white card */
    display: flex;
    flex-direction: column;
    position: relative;
    /* For full card link */
    height: 100%;
}

.jhmb-landing-widget .jhmb-animal-card {
    border: none !important;
}

.jhmb-full-card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: pointer;
}

.jhmb-card-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.jhmb-card-image-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 1s;
}

.jhmb-no-image {
    width: 100%;
    height: 100%;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
    font-size: 3rem;
}

.jhmb-no-image i {
    font-size: 3rem !important;
    line-height: 1 !important;
}

.jhmb-animal-card:hover .jhmb-card-image-bg {
    transform: scale(1.05);
}

.jhmb-card-share-wrapper {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
}

.jhmb-card-share {
    background: rgba(255, 255, 255, 0.9);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    /* Less strong shadow */
    transition: all 0.2s;
}

.jhmb-card-share i {
    font-size: 14px !important;
    line-height: 1 !important;
}

.jhmb-card-share:hover {
    background: #fff;
    transform: scale(1.1);
    color: #eeba6b;
    box-shadow: none;
    /* Disappear on hover */
}

.jhmb-share-menu-card {
    position: absolute;
    top: 40px;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 8px;
    width: 160px;
    display: none;
    flex-direction: column;
    gap: 2px;
}

.jhmb-share-menu-card.active {
    display: flex;
}

.jhmb-share-menu-card .share-item {
    font-size: 0.85rem;
    color: #444;
    padding: 8px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: background 0.2s;
}

.jhmb-share-menu-card .share-item:hover {
    background: #f5f5f5;
    color: #333;
}

.jhmb-share-menu-card .share-item i {
    width: 20px;
    text-align: center;
}

.jhmb-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.jhmb-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.jhmb-card-title {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 700;
    color: #2c3e50;
}

.gender-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
}

.gender-badge.male {
    background: #546E7A;
    /* Blue Grey */
}

.gender-badge.female {
    background: #8D6E63;
    /* Warm Brown */
}

.jhmb-card-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
    display: flex;
    gap: 5px;
    align-items: center;
}

.jhmb-card-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 15px;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jhmb-card-tags {
    display: flex;
    flex-wrap: nowrap;
    /* Prevent wrapping */
    overflow-x: auto;
    /* Scrollable */
    gap: 8px;
    margin-bottom: 0;
    /* No margin bottom needed as it's the last item */
    margin-top: auto;
    /* Push to bottom */
    padding-bottom: 5px;
    /* Space for scrollbar */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    z-index: 2;
    /* Allow interaction */
    position: relative;
    cursor: grab;
    /* Cursor for dragging */
    user-select: none;
    /* Disable text selection */
    -webkit-user-select: none;
}

.jhmb-card-tags:active {
    cursor: grabbing;
}

.jhmb-card-tags::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.jhmb-tag {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #444;
    text-transform: uppercase;
    font-weight: 600;
    white-space: nowrap;
    /* Keep single line */
    flex-shrink: 0;
    /* Don't shrink */
    user-select: none;
    /* Disable text selection */
    -webkit-user-select: none;
}

/* Button styles removed as button is removed */

.jhmb-btn-primary {
    background: #5f9ea0;
    color: #fff;
    padding: 12px 30px;
    border-radius: 12px !important;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: none !important;
    /* Remove global shadow */
}

.jhmb-btn-primary:hover {
    background: #dca050;
    color: #fff;
}

/* Catalog Widget */
.jhmb-catalog-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    --jhmb-catalog-sticky-top: 20px;
    --jhmb-catalog-float-top: 40px;
    position: relative;
}

.jhmb-catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
    padding-bottom: 15px;
}

.jhmb-catalog-grid {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

.jhmb-catalog-grid .jhmb-catalog-header,
.jhmb-catalog-grid .jhmb-animals-list {
    width: 100%;
}

.jhmb-catalog-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    border-bottom: none;
    /* Removed as border is on container */
    padding-bottom: 0;
}

.jhmb-header-search {
    position: relative;
    width: 250px;
}

.jhmb-header-search-input {
    width: 100%;
    padding: 10px 15px 10px 35px !important;
    /* Increased padding and force override */
    border: 1px solid #ddd;
    border-radius: 12px !important;
    /* Rounded 12px */
    outline: none;
    font-size: 0.95rem;
    color: #555;
    transition: border-color 0.2s;
}

.jhmb-header-search-input:focus {
    border-color: #eeba6b !important;
    /* Gentle orange border on focus */
}

.jhmb-header-search:focus-within .jhmb-search-icon-inside {
    color: #eeba6b;
}

.jhmb-search-icon-inside {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #5555556c;
    font-size: 0.9rem;

}

.jhmb-catalog-sidebar {
    width: 250px;
    min-width: 250px;
    flex: 0 0 250px;
}

@media (min-width: 769px) {
    .jhmb-catalog-sidebar {
        position: relative;
    }

    .jhmb-catalog-sidebar-inner {
        max-height: none;
        overflow: visible !important;
        width: 100%;
        box-sizing: border-box;
    }
}

.jhmb-catalog-container .jhmb-animal-card {
    border: none !important;
}

.jhmb-catalog-container .jhmb-card-image,
.jhmb-catalog-container .jhmb-card-image-bg,
.jhmb-catalog-container .jhmb-card-image img {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.jhmb-catalog-title-sidebar {
    margin: 0 0 15px 0;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
    font-size: 1.7rem;
    line-height: 1.1;
}

.jhmb-catalog-container {
    margin-top: 20px;
}

.jhmb-filter-checkbox label.jhmb-custom-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    font-weight: 300;
    color: #333;
    font-size: 0.95rem;
}

.jhmb-custom-checkbox input {
    display: none;
}

.jhmb-checkbox-mark {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid #5f4b3a;
    border-radius: 6px;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
    background: #fff;
    transition: all 0.2s;
    flex: 0 0 20px;
    min-width: 20px;
    aspect-ratio: 1 / 1;
}

.jhmb-checkbox-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: #5f4b3a;
    transition: transform 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.jhmb-custom-checkbox input:checked+.jhmb-checkbox-mark::after {
    transform: translate(-50%, -50%) scale(1);
}

.jhmb-custom-checkbox:hover .jhmb-checkbox-mark {
    border-color: #eeba6b;
}

.jhmb-catalog-sidebar #jhmb-catalog-filters {
    background: #fff;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

@media (min-width: 769px) {
    .jhmb-catalog-sidebar #jhmb-catalog-filters {
        margin-top: 55px;
    }
}

.jhmb-catalog-sidebar #jhmb-catalog-filters .jhmb-filter-group {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 20px;
}

.jhmb-catalog-sidebar #jhmb-catalog-filters .jhmb-filter-group:not(:last-of-type) {
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.jhmb-catalog-sidebar #jhmb-catalog-filters .jhmb-filter-group:last-of-type {
    margin-bottom: 0;
}

.jhmb-filter-group {
    margin-bottom: 0px;
    /* Reduced from 25px */
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

.jhmb-filter-group h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1rem;
}

.jhmb-filter-icons {
    display: flex;
    gap: 10px;
}

.jhmb-filter-icons label {
    cursor: pointer;
}

.jhmb-filter-icons input {
    display: none;
}

.jhmb-filter-icons .icon-box {
    display: block;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex: 0 0 40px;
    min-width: 40px;
    aspect-ratio: 1 / 1;
}

.jhmb-filter-icons input:checked+.icon-box {
    background: #FAA852;
    color: #fff;
    border-color: #FAA852;
}

.jhmb-filter-radio label.jhmb-custom-radio {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    font-weight: 300;
    color: #333;
    font-size: 0.95rem;
}

.jhmb-custom-radio input {
    display: none;
}

.jhmb-radio-mark {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid #5f4b3a;
    /* Dark brown border */
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
    background: #fff;
    transition: all 0.2s;
    flex: 0 0 20px;
    min-width: 20px;
    aspect-ratio: 1 / 1;
}

.jhmb-radio-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #5f4b3a;
    /* Dark brown fill */
    transition: transform 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.jhmb-custom-radio input:checked+.jhmb-radio-mark::after {
    transform: translate(-50%, -50%) scale(1);
}

.jhmb-custom-radio:hover .jhmb-radio-mark {
    border-color: #eeba6b;
    /* Highlight on hover */
}

.jhmb-filter-btn {
    width: 100%;
    background: #eeba6b !important;
    /* Orange/Gold */
    color: #fff !important;
    border: none !important;
    padding: 12px;
    border-radius: 12px !important;
    /* 12px Radius per request */
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(238, 186, 107, 0.3) !important;
    /* Soft shadow */
    transition: all 0.2s;
}

.jhmb-filter-btn:hover {
    transform: none !important;
    /* No movement */
    background: #eeba6b !important;
    /* Keep color same */
    box-shadow: none !important;
    /* Shadow disappears */
}

.jhmb-sidebar-link {
    display: block;
    text-align: center;
    color: #555;
    text-decoration: underline;
    margin-top: 1px;
    font-size: 0.95rem;
    font-weight: 400;
}

.jhmb-sidebar-link:hover {
    color: #eeba6b;
}

.jhmb-btn-secondary-style {
    background: #faa851 !important;
    /* Dark brown */
    color: #fff !important;
    border-radius: 12px !important;
    /* 12px Radius per request */
    padding: 12px 20px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s;
    border: none !important;
    display: block;
    text-align: center;
    margin-bottom: 20px !important;
}

.jhmb-btn-secondary-style:hover {
    background: #4a3a2d !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
}

.jhmb-mobile-filter-btn {
    display: none;
    background: #eeba6b;
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: none;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.jhmb-mobile-filter-btn:hover {
    background: #eeba6b !important;
}

.jhmb-mobile-filter-submit {
    display: none;
    width: 100%;
    margin-top: 20px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.jhmb-title-wrapper {
    display: flex;
    align-items: center;
}

/* Catalog Buttons Visibility (Desktop) */
.jhmb-sidebar-buttons-desktop {
    margin-top: 30px;
    display: block;
}

/* Catalog Footer Buttons (Default hidden on desktop) */
.jhmb-catalog-footer-buttons {
    margin-top: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    display: none;
}

/* Contact Box Layout - Desktop */
.jhmb-contact-box {
    background: #f4f1ea;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.jhmb-info-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 0;
}

.jhmb-contact-right-side {
    flex: 1;
}

.jhmb-contact-separator {
    display: none;
    height: 1px;
    background: #e0e0e0;
    margin: 20px 0;
}

/* Catalog Footer Buttons */
.jhmb-catalog-footer-buttons {
    margin-top: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

/* Traits Hover Fix */
.jhmb-trait-pill:hover {
    background: #fff !important;
    color: #555 !important;
    border-color: #ddd !important;
    transform: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

@media (max-width: 768px) {

    /* Contact Box Mobile */
    .jhmb-contact-box {
        flex-direction: column;
        gap: 0;
    }

    .jhmb-contact-separator {
        display: block;
    }

    .jhmb-contact-right-side {
        width: 100%;
    }

    /* Catalog Header */
    .jhmb-catalog-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px;
        margin-bottom: 15px !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
    }

    .jhmb-title-wrapper {
        justify-content: space-between;
        width: 100%;
    }

    .jhmb-mobile-filter-btn {
        display: flex;
    }

    .jhmb-mobile-filter-submit {
        display: block;
    }

    .jhmb-catalog-sidebar {
        display: none;
        width: 100%;
        background: #fff;
        padding: 20px;
        border: 1px solid #eee;
        border-radius: 12px;
        margin-bottom: 20px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }

    .jhmb-catalog-sidebar #jhmb-catalog-filters {
        background: transparent;
        padding: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }

    .jhmb-catalog-sidebar #jhmb-catalog-filters .jhmb-filter-group {
        margin-bottom: 20px;
    }

    .jhmb-catalog-sidebar #jhmb-catalog-filters .jhmb-filter-group:last-of-type {
        margin-bottom: 0;
    }

    .jhmb-catalog-sidebar.active {
        display: block;
        animation: slideDown 0.3s ease;
    }

    .jhmb-header-search {
        max-width: 100% !important;
        width: 100%;
    }

    .jhmb-catalog-container {
        display: flex;
        flex-direction: column;
    }

    .jhmb-catalog-sidebar {
        width: 100%;
    }

    /* Detail Mobile Layout Order */
    .jhmb-detail-grid {
        display: flex !important;
        flex-direction: column;
        gap: 20px !important;
    }

    .jhmb-left-column,
    .jhmb-detail-sidebar {
        display: contents;
    }

    /* Order: Gallery -> Tabs -> Traits -> Contact -> Reservation */
    .jhmb-detail-gallery {
        order: 1;
    }

    .jhmb-tabs-wrapper {
        order: 2;
        margin-bottom: 20px;
    }

    .jhmb-traits-box-modern {
        order: 3;
        margin-top: 0;
        margin-bottom: 20px;
    }

    .jhmb-contact-box {
        order: 4;
    }

    .jhmb-btn-block {
        order: 5;
    }

    .jhmb-detail-meta-footer {
        order: 6;
    }

    /* Mobile Detail Overrides */
    .jhmb-detail-container {
        padding: 20px 15px !important;
        margin: 0 10px !important;
        max-width: calc(100% - 20px) !important;
    }

    .jhmb-detail-title {
        font-size: 1.8rem !important;
    }

    .jhmb-main-image {
        height: 280px !important;
        width: 100% !important;
        margin: 0 -5px !important;
        border-radius: 12px !important;
    }

    .jhmb-btn-block {
        padding: 18px !important;
        font-size: 1.1rem !important;
        margin: 0 -5px !important;
        border-radius: 12px !important;
    }

    .jhmb-traits-box {
        padding: 15px !important;
        margin: 0 -5px !important;
    }

    .jhmb-traits-box h4 {
        font-size: 0.9rem !important;
    }

    .jhmb-trait-pill {
        padding: 6px 12px !important;
        font-size: 0.85rem !important;
    }

    .jhmb-detail-section {
        margin: 0 -5px !important;
        padding: 0 5px !important;
    }

    .jhmb-traits-scroll {
        flex-wrap: wrap !important;
        overflow-x: visible !important;
        white-space: normal !important;
        justify-content: center;
    }

    .jhmb-mini-info {
        padding: 0 10px;
        word-wrap: break-word;
        margin-top: 15px !important;
        margin-bottom: 30px !important;
    }

    /* Fix "V zavetišču od" positioning */
    .jhmb-detail-section:last-child {
        margin-top: 40px !important;
        padding-bottom: 20px !important;
    }
}

/* Detail Widget */
.jhmb-detail-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: var(--jhmb-border-radius);
}

.jhmb-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.jhmb-back-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.jhmb-detail-title {
    margin: 0;
    font-size: 2.5rem;
}

/* Info Grid in Contact Box */
.jhmb-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.jhmb-info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 4px;
}

.info-value {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.jhmb-contact-separator {
    height: 1px;
    background: #e0e0e0;
    margin: 20px 0;
}

/* Remove hover effect from traits */
.jhmb-trait-pill:hover {
    background: #fff !important;
    color: #555 !important;
    transform: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

/* Desktop Layout Adjustments */
.jhmb-detail-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-bottom: 40px;
}

.jhmb-left-column {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

@media (max-width: 768px) {

    /* Mobile Reordering */
    .jhmb-detail-grid {
        display: flex !important;
        flex-direction: column;
        gap: 20px !important;
    }

    .jhmb-left-column,
    .jhmb-detail-sidebar {
        display: contents;
    }

    .jhmb-detail-gallery {
        order: 1;
    }

    .jhmb-traits-box-modern {
        order: 2;
        margin-top: 10px;
    }

    .jhmb-tabs-wrapper {
        order: 3;
    }

    .jhmb-contact-box {
        order: 4;
    }

    .jhmb-btn-block {
        order: 5;
    }

    .jhmb-detail-meta-footer {
        order: 6;
    }

    /* Če je ostalo v left column, bo na koncu */

    /* Search Bar Position Fix (will do later) */
}

.jhmb-main-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 10px;
}

#jhmb-main-display {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
}

.jhmb-detail-gallery {
    position: relative;
    overflow: hidden;
}

.jhmb-thumbnails {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: none !important;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

.jhmb-detail-gallery:hover .jhmb-thumbnails {
    opacity: 1;
}

.jhmb-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    /* Circular thumbs */
    cursor: pointer;
    opacity: 0.9;
    transition: all 0.2s;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.jhmb-thumb:hover {
    opacity: 1;
    transform: scale(1.1);
}

.jhmb-info-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.jhmb-info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.jhmb-info-row:last-child {
    border-bottom: none;
}

.jhmb-detail-description {
    line-height: 1.6;
    color: #444;
}

/* Popup */
.jhmb-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jhmb-popup-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    position: relative;
}

.jhmb-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .jhmb-detail-grid {
        grid-template-columns: 1fr;
    }

    .jhmb-main-image {
        height: 300px;
    }
}

/* Traits */
.jhmb-traits-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.jhmb-traits-box h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.jhmb-traits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.jhmb-trait-pill {
    background: #fff;
    border: 1px solid #ddd;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #555;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* New Sections Details */
.jhmb-detail-meta-footer p {
    margin-bottom: 0 !important;
    margin-top: 0px !important;
}

.jhmb-detail-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.jhmb-compatibility-section {
    display: flex;
    gap: 40px;
}

.jhmb-compat-col {
    flex: 1;
}

.jhmb-compat-col h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Health Grid */
.jhmb-health-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.jhmb-health-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 200px;
    border: 1px solid #eee;
}

.jhmb-health-card.active {
    background: #f0fdf4;
    /* Light green */
    border-color: #bbf7d0;
}

.jhmb-health-card .health-icon {
    font-size: 24px;
    color: #ccc;
}

.jhmb-health-card.active .health-icon {
    color: #15803d;
    /* Green */
}

.jhmb-health-card .health-status {
    display: flex;
    flex-direction: column;
}

.jhmb-health-card .status-badge {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
}

.jhmb-health-card.active .status-badge {
    color: #15803d;
}

.jhmb-health-card .status-label {
    font-weight: 600;
    color: #333;
    font-size: 0.88rem;
}

.jhmb-health-card.active .health-status {
    min-width: 0;
}

.jhmb-health-card.active .status-label {
    white-space: nowrap;
}

.jhmb-health-note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Requirements */
.jhmb-requirements {
    background: #f0fdf4;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.jhmb-requirements h3 {
    border-bottom: none;
    margin-top: 0;
}

.req-intro {
    margin-bottom: 15px;
}

.jhmb-req-item {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .jhmb-compatibility-section {
        flex-direction: column;
        gap: 20px;
    }

    .jhmb-health-card {
        width: 100%;
        flex: none;
    }
}

/* New Modern Detail Styles */
.jhmb-detail-container.jhmb-full-width {
    max-width: 100%;
    padding: 20px;
    background: #fff;
    /* White background */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Subtle shadow for contrast */
}

/* Inline Navigation */
.jhmb-inline-nav {
    position: absolute;
    top: calc(50% - 20px);
    /* Compensate for thumbnails to visually center */
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    font-size: 1.2rem;
    color: #555;
    transition: all 0.3s;
    opacity: 0;
    /* Hidden by default */
}

.jhmb-main-image:hover .jhmb-inline-nav {
    opacity: 1;
    /* Show on hover */
}

.jhmb-inline-nav:hover {
    background: #fff;
    color: #333;
    transform: translateY(-50%) scale(1.1);
}

.jhmb-inline-prev {
    left: 10px;
}

.jhmb-inline-next {
    right: 10px;
}

.jhmb-inline-prev i {
    transform: rotate(-90deg);
}

.jhmb-inline-next i {
    transform: rotate(90deg);
}

/* Traits Hover */
.jhmb-trait-pill {
    transition: all 0.2s;
    cursor: default;
}

.jhmb-trait-pill:hover {
    background: #eeba6b;
    /* Primary color */
    color: #fff;
    border-color: #eeba6b;
    box-shadow: 0 4px 10px rgba(238, 186, 107, 0.3);
}

/* Modern Header */
.jhmb-detail-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.jhmb-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.jhmb-pet-icon {
    font-size: 2rem;
    color: #555;
}

.jhmb-detail-title-modern {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
}

.jhmb-status-pill {
    padding: 6px 15px;
    border-radius: 12px;
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Share Button */
.jhmb-share-dropdown-wrapper {
    position: relative;
}

.jhmb-share-btn-round {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddddddc0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: #979797;
    transition: all 0.3s;
    box-shadow: 6px 6px 0px 0px rgba(133, 133, 133, 0.3) !important;
    /* Soft gray shadow */
}

.jhmb-share-btn-round:hover {
    background: #FAA851;
    color: #ffffff;
    box-shadow: none !important;
    /* Disappear on hover */
    transform: translateY(2px) translateX(2px);
    /* Visual animation effect */
}

.jhmb-share-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 10px;
    width: 200px;
    display: none;
    z-index: 100;
}

.jhmb-share-menu.active {
    display: block;
}

.share-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}

.share-item:hover {
    background: #f5f5f5;
}

/* Modern Grid */
.modern-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Image takes more space */
    gap: 40px;
    margin-bottom: 30px;
}

.jhmb-detail-gallery .jhmb-main-image {
    height: 500px;
    /* Taller image */
}

/* Contact Box */
.jhmb-contact-box {
    background: #e6e2d6;
    /* Beige */
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    color: #4a4a4a;
}

.jhmb-contact-box h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.4rem;
    color: #2c3e50;
}

.contact-sub {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 25px;
}

.contact-row {
    margin-bottom: 15px;
}

.contact-row .label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #888;
    margin-bottom: 3px;
}

.contact-row .value {
    font-size: 1rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.contact-share {
    margin-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 15px;
}

.contact-share .label {
    font-size: 0.8rem;
    margin-right: 10px;
}

.share-icons {
    display: inline-flex;
    gap: 15px;
    vertical-align: middle;
}

.share-icons a {
    color: #555;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.share-icons a:hover {
    color: #333;
}

/* Traits Modern */
.jhmb-traits-box-modern {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.jhmb-traits-box-modern h4 {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.jhmb-traits-scroll {
    display: flex;
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 10px;
    padding-bottom: 10px;
    cursor: default !important;
    scrollbar-width: none;
    flex: 1;
    justify-content: flex-start;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.jhmb-traits-scroll::-webkit-scrollbar {
    display: none;
}

.jhmb-traits-scroll:active {
    cursor: default !important;
}

.jhmb-trait-pill {
    cursor: default !important;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Reduced spacing */
.section-reduced-top {
    margin-top: 20px !important;
    /* Force reduce */
    border-top: none !important;
}

.jhmb-detail-description h3 {
    margin-top: 0;
}

.jhmb-btn-block {
    display: block;
    width: 100%;
    text-align: center;
    background: #5f4b3a;
    /* Dark Brown from image */
    padding: 15px;
    font-size: 1rem;
    color: #fff !important;
    /* Force white text */
    box-shadow: none !important;
    border-radius: 12px !important;
    margin-top: 20px;
}

.jhmb-btn-block:hover {
    background: #9b9289;
}

.jhmb-mini-info {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #777;
    text-align: center;
}

@media (max-width: 900px) {
    .modern-grid {
        grid-template-columns: 1fr;
    }

    .jhmb-detail-gallery .jhmb-main-image {
        height: 350px;
    }
}

/* Lightbox Styles */
.jhmb-main-image {
    position: relative;
    cursor: pointer;
}

.jhmb-zoom-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.jhmb-main-image:hover .jhmb-zoom-icon {
    opacity: 1;
}

.jhmb-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.jhmb-lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.jhmb-lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
}

.jhmb-lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.jhmb-lightbox-close {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 16px);
    right: calc(env(safe-area-inset-right, 0px) + 16px);
    z-index: 1000001;
    padding: 10px;
    line-height: 1;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 999px;
}

.jhmb-lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-size: 1.5rem;
    z-index: 10001;
}

.jhmb-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.jhmb-lightbox-prev {
    left: 20px;
}

.jhmb-lightbox-next {
    right: 20px;
}

/* Paw print styling for nav */
.jhmb-lightbox-nav i {
    transform: rotate(0deg);
    transition: transform 0.3s;
}

.jhmb-lightbox-prev i {
    transform: rotate(-90deg);
    /* Paw pointing left-ish */
}

.jhmb-lightbox-next i {
    transform: rotate(90deg);
    /* Paw pointing right-ish */
}

@media (max-width: 768px) {
    .jhmb-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        background: rgba(0, 0, 0, 0.5);
    }

    .jhmb-lightbox-prev {
        left: 10px;
    }

    .jhmb-lightbox-next {
        right: 10px;
    }
}

/* Tabs Styles */
.jhmb-tabs-nav {
    display: flex;
    background: #e6e2d6;
    /* Gentle Brown/Beige Track */
    padding: 6px;
    border-radius: 12px !important;
    margin-bottom: 20px;
    gap: 0;
    box-shadow: none !important;
}

.jhmb-tab-btn {
    flex: 1;
    border: none;
    background: transparent !important;
    padding: 14px 12px;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #6b645b !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    box-shadow: none !important;
    /* Force remove shadow */
}

.jhmb-tab-btn:hover {
    background: #faa85170 !important;
    /* Lighter hover */
    border-radius: 12px;
    cursor: pointer;
}

.jhmb-tab-btn.active {
    background: #faa851 !important;
    /* Force active color */
    color: #fff !important;
    box-shadow: none !important;
    /* Force remove shadow */
    border: none !important;
    font-weight: 600;
    border-radius: 12px !important;
}

@media (max-width: 768px) {
    .jhmb-tab-btn {
        padding: 12px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 392px) {
    .jhmb-tabs-nav {
        gap: 3px;
        padding: 3px;
        overflow: hidden;
    }

    .jhmb-tab-btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 12px;
        font-size: 14px;
        line-height: 1.1;
        white-space: nowrap;
        letter-spacing: -0.2px;
    }
}

.jhmb-tab-content {
    display: none;
    background: #fbfaf8;
    /* Light Beige */
    padding: 12px 30px 12px 30px;
    border-radius: 12px;
    animation: fadeIn 0.3s ease-in-out;
    border: 1px solid #eee;
}

.jhmb-tab-content.active {
    display: block;
}

.jhmb-tab-content h3 {
    margin-top: 0;
    font-size: 1.6rem;
    color: #5f4b3a;
    /* Dark Brown */
    margin-bottom: 15px;
    border-bottom: none;
}

.jhmb-intro-text {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Adoption Process Box */
.jhmb-adoption-process-box {
    background: #fdfbf7;
    border: 1px solid #efebe9;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-top: 25px;
}

.jhmb-adoption-process-box .process-icon {
    font-size: 24px;
    color: #eeba6b;
}

.jhmb-adoption-process-box h4 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #5f4b3a;
}

.jhmb-adoption-process-box p {
    margin: 0;
    color: #666;
}

@media (max-width: 768px) {
    #tab-adoption .jhmb-adoption-process-box {
        background: transparent;
        border: none;
        padding: 0;
        border-radius: 0;
        margin-top: 0;
    }
}

/* Adjustments inside tabs */
.jhmb-tab-content .jhmb-requirements {
    background: transparent;
    /* Remove double background */
    padding: 0;
    border-radius: 0;
}

.jhmb-tab-content .jhmb-detail-section h3 {
    font-size: 1.3rem;
    color: #5f4b3a;
    margin-top: 0;
    margin-bottom: 10px;
}

.health-intro {
    margin-bottom: 20px;
    color: #666;
}

/* Responsive Visibility Adjustments */
@media (max-width: 768px) {
    .jhmb-sidebar-buttons-desktop {
        display: none !important;
    }

    .jhmb-catalog-footer-buttons {
        display: flex !important;
    }
}

/* Full Width Tabs Fix */
.jhmb-tabs-wrapper.full-width {
    width: 100%;
    margin-top: 8px;
    clear: both;
}

/* Detail Sidebar Layout Fixes */
.jhmb-detail-sidebar .jhmb-info-grid {
    margin-bottom: 15px;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.jhmb-contact-box {
    display: block !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 25px;
}

/* Remove icons from contact row if any */
.contact-row i,
.contact-row::before,
.contact-row::after {
    display: none !important;
}

.contact-row {
    padding-left: 0 !important;
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    align-items: flex-start !important;
}

.contact-row .label {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
    display: block;
}

.contact-row .value {
    font-size: 1rem;
    color: #555;
    text-decoration: none;
}

/* Ensure filter button is hidden on desktop */
.jhmb-mobile-filter-btn {
    display: none !important;
}

/* Mobile adjustments for filter button */
@media (max-width: 768px) {
    .jhmb-mobile-filter-btn {
        display: flex !important;
    }
}

/* Mobile Reorder for New Structure */
@media (max-width: 768px) {
    .jhmb-detail-container {
        display: flex;
        flex-direction: column;
    }

    .jhmb-detail-grid,
    .jhmb-left-column,
    .jhmb-detail-sidebar {
        display: contents !important;
    }

    .jhmb-detail-gallery {
        order: 1;
    }

    .jhmb-detail-meta-footer {
        order: 1;
        margin-bottom: 10px;
    }

    /* Info Grid below image */
    .jhmb-info-grid {
        order: 2;
        margin-bottom: 20px;
    }

    /* Tabs */
    .jhmb-tabs-wrapper {
        order: 3;
        margin-top: 0;
        margin-bottom: 30px;
    }

    /* Traits */
    .jhmb-traits-box-modern {
        order: 4;
        margin-bottom: 20px;
    }

    /* Contact */
    .jhmb-contact-box {
        order: 5;
    }

    /* Button */
    .jhmb-btn-block {
        order: 6;
    }
}

/* Strict Filter Hiding on Desktop */
.jhmb-mobile-filter-btn,
.jhmb-mobile-filter-submit {
    display: none !important;
}

/* Mobile Filter Icon Styling Fix */
@media (max-width: 768px) {
    .jhmb-mobile-filter-btn {
        display: flex !important;
        width: 42px;
        height: 42px;
        border-radius: 50% !important;
        border: none !important;
        background: #eeba6b;
        color: #fff;
        align-items: center;
        justify-content: center;
        padding: 0;
        box-shadow: none !important;
        margin-bottom: 20px !important;
        /* Spodnji odmik */
    }

    .jhmb-mobile-filter-submit {
        display: block !important;
    }
}

/* Traits & Meta Adjustments */
.jhmb-left-column .jhmb-traits-box-modern {
    margin-top: 25px;
}

.jhmb-detail-sidebar .jhmb-detail-meta-footer {
    margin-bottom: 20px;
    font-weight: 500;
}

/* Fix Catalog Grid - 3 Items per row Desktop */
.jhmb-animals-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px;
}

/* Catalog Footer Buttons - Hide by default (Desktop/Tablet) */
.jhmb-mobile-footer-buttons {
    display: none !important;
}

@media (max-width: 768px) {
    .jhmb-animals-list {
        grid-template-columns: 1fr !important;
    }

    /* Update Filter Button Padding */
    .jhmb-mobile-filter-btn {
        width: auto !important;
        height: auto !important;
        padding: 15px !important;
    }

    /* Catalog Footer Buttons - Show on Mobile */
    .jhmb-mobile-footer-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        margin-top: 30px !important;
    }
}

/* Sidebar Traits Box (Desktop) */
.jhmb-detail-sidebar .jhmb-traits-box-modern {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.jhmb-detail-sidebar .jhmb-traits-box-modern h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.jhmb-detail-sidebar .jhmb-traits-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    padding-bottom: 0;
    flex: none;
    /* Reset flex: 1 from previous inline styles */
    overflow: visible;
}

/* Mobile Detail Buttons - Hidden on Desktop */
.jhmb-detail-mobile-buttons {
    display: none;
}

@media (max-width: 768px) {

    /* Show Mobile Buttons */
    .jhmb-detail-mobile-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        order: 8;
        margin-top: 20px;
    }

    /* Force correct order for mobile buttons */
    .jhmb-detail-mobile-buttons .jhmb-btn-secondary-style {
        order: 1;
    }

    .jhmb-detail-mobile-buttons .jhmb-sidebar-link {
        order: 2;
    }

    /* Updated Mobile Order */
    .jhmb-detail-gallery {
        order: 1;
    }

    .jhmb-detail-meta-footer {
        order: 2;
        margin-top: 10px !important;
    }

    .jhmb-info-grid {
        order: 3;
    }

    .jhmb-contact-box {
        order: 4;
    }

    .jhmb-traits-box-modern {
        order: 5;
        margin-top: 0 !important;
        margin-bottom: 20px !important;
    }

    .jhmb-tabs-wrapper {
        order: 6;
        margin-top: 20px;
    }

    /* Target only the Reserve button which is primary */
    .jhmb-btn-primary.jhmb-btn-block {
        order: 7;
    }

    /* Additional buttons order for mobile */
    .jhmb-detail-sidebar .jhmb-btn-secondary-style {
        order: 8;
        margin-top: 20px !important;
    }

    .jhmb-detail-sidebar .jhmb-sidebar-link {
        order: 9;
    }

    /* Disable scrolling on mobile traits in Detail Widget */
    .jhmb-traits-scroll {
        flex-wrap: wrap !important;
        overflow: visible !important;
        justify-content: flex-start !important;
    }

    /* Long Name Adjustment for Mobile */
    .jhmb-detail-title-modern.long-name {
        font-size: 1rem !important;
        line-height: 1.1;
    }
}

/* Adoption Process Widget */
.jhmb-adoption-process-wrapper {
    max-width: 1400px;
    margin: 20px auto;
    width: 100%;
}

/* Dog Navigation Styling */
.jhmb-dog-nav-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    margin-bottom: 70px;
    /* Space for legs */
    padding: 0 0;
    /* Let head/tail stick out */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.jhmb-dog-tail {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.jhmb-dog-head {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.jhmb-dog-legs-back {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.jhmb-dog-legs-front {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.jhmb-process-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0a89e;
    font-size: 14px;
    padding: 0 2px;
    flex-shrink: 0;
}

/* Ensure Nav fills the dog body */
.jhmb-process-nav {
    flex-grow: 1;
    z-index: 10;
    /* Higher than dog parts */
    position: relative;
    margin-bottom: 0 !important;
    /* Wrapper handles margin */
}

/* Mobile Responsive - Hide Dog Parts */
@media (max-width: 992px) {
    .jhmb-dog-nav-wrapper {
        flex-direction: column;
        margin-bottom: 40px;
        padding: 0;
    }

    .jhmb-dog-tail,
    .jhmb-dog-head,
    .jhmb-dog-legs-back,
    .jhmb-dog-legs-front {
        display: none;
    }

    .jhmb-process-separator {
        display: none;
    }

    .jhmb-process-nav {
        margin-bottom: 20px !important;
        background: transparent;
        /* Remove dog body bg on mobile? Or keep? */
    }
}

.jhmb-process-nav {
    display: flex;
    background: #e6e2d6;
    /* Tab bar background */
    padding: 4px;
    border-radius: 12px !important;
    margin-bottom: 40px;
    gap: 4px;
    box-shadow: none !important;
    overflow-x: hidden;
    /* No scrollbar */
    flex-wrap: nowrap;
}

.jhmb-process-step {
    flex: 1 1 0px;
    border: none;
    background: rgba(0, 0, 0, 0.0) !important;
    /* Transparent inactive */
    padding: 10px;
    /* Reduced padding to fit more text */
    text-align: center;
    cursor: pointer;
    border-radius: 10px !important;
    transition: all 0.2s;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    margin: 0;
    word-wrap: break-word;
    color: #666 !important;
    min-width: 0;
    /* Allow shrinking */
    overflow: hidden;
}

.jhmb-process-step:hover {
    background: rgba(250, 168, 81, 0.4) !important;
    /* Light orange hover */
}

.jhmb-process-step.active {
    background: #faa851 !important;
    color: #fff !important;
}

.jhmb-process-step .step-title {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: #5f4b3a;
    /* Dark brown text */
    margin-bottom: 5px;
    line-height: 1.2;
    transition: color 0.2s;
}

.jhmb-process-step.active .step-title {
    color: #fff !important;
}

.jhmb-process-step .step-subtitle {
    display: block;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.2;
    transition: color 0.2s;
    font-weight: 500;
    /* Thicker font */
}

.jhmb-process-step.active .step-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
}

.jhmb-process-content-wrapper {
    background: transparent;
    border: none;
    padding: 0;
}

.jhmb-content-title {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 2rem;
    color: #333;
    font-weight: 700;
}

.jhmb-process-content .jhmb-content-title {
    margin: 0;
    padding-top: 25px;
}

@media (max-width: 992px) {
    .jhmb-process-content .jhmb-content-title {
        padding-top: 25px;
    }
}

/* Grid Layout for Steps */
.jhmb-step-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* Left col slightly wider */
    gap: 60px;
    align-items: start;
}

.jhmb-step-col-left,
.jhmb-step-col-right {
    display: flex;
    flex-direction: column;
}

.jhmb-step-col-right>.jhmb-visit-hours+div,
.jhmb-step-col-right>.jhmb-questionnaire-box+div,
.jhmb-step-col-right>.jhmb-support-box+div {
    margin-top: auto;
}

.jhmb-step-grid>.jhmb-step-col-left {
    grid-column: 1;
}

.jhmb-step-grid>.jhmb-step-col-right {
    grid-column: 2;
}

/* Content Styling */
.jhmb-content-body {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.7;
}

.jhmb-content-body p {
    margin-bottom: 20px;
}

.jhmb-content-body ul {
    margin-bottom: 20px;
    padding-left: 0;
    list-style: none;
}

.jhmb-content-body li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 30px;
}

.jhmb-content-body li::before {
    content: '\f058';
    /* Check circle icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #faa851;
    /* Orange check */
    font-size: 1.1rem;
}

/* Primary Button */
.jhmb-btn-primary {
    background-color: #5f4b3a !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 30px;
    border-radius: 12px !important;
    /* Rounded pill button */
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(250, 168, 81, 0.3);
}

.jhmb-btn-primary:hover {
    background-color: #e59540 !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* Info Box Styles (Right Column) */
.jhmb-visit-hours {
    background: #E6E2D6;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.jhmb-visit-hours h3,
.jhmb-questionnaire-box h3,
.jhmb-support-box h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
    margin-top: 0;
}

.jhmb-visit-hours .company-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtler border on colored bg */
    padding-bottom: 5px;
}

.jhmb-visit-hours .company-info h5 {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
}

.jhmb-visit-hours .company-info p {
    margin: 0;
    font-weight: 600;
    color: #333;
}

/* Important Info Box - New Style */
.information-box {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: transparent;
    padding: 0;
    border: 0;
    /* Optional: add styles if needed, user didn't specify container style for this one, just structure */
}

.information-box__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 2px solid #c0392b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    font-size: 0;
    line-height: 0;
}

.information-box__icon::before {
    content: 'i';
    color: #c0392b;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    display: block;
    transform: translateY(-1px);
}

.information-box__icon svg {
    display: none;
    fill: #c0392b;
    /* Fallback or specific color if path doesn't have it */
}

/* Override SVG path fill if needed to match theme */
.information-box__icon svg path {
    fill: #c0392b;
    /* Reddish color from previous request or keep original */
}

/* Actually, the SVG code provided has no fill on paths (it relies on parent or default black).
   User's SVG: <path d="..." ...> without fill.
   Let's set the fill color to the red/orange used before.
*/
.information-box__icon svg path:nth-child(1),
.information-box__icon svg path:nth-child(2),
.information-box__icon svg path:nth-child(3) {
    fill: #c0392b;
}

.information-box__content h4 {
    margin-top: 0;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.information-box__content p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* Old styles kept for compatibility if needed, or can be removed/ignored */
.jhmb-important-box {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.jhmb-important-icon {
    font-size: 24px;
    color: #c0392b;
}

.jhmb-important-content h4 {
    margin-top: 0;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* Force border-radius for all buttons in Elementor Kit 6 on mobile */
@media (max-width: 768px) {

    .elementor-kit-6 button,
    .elementor-kit-6 input[type="button"],
    .elementor-kit-6 input[type="submit"],
    .elementor-kit-6 .elementor-button {
        border-radius: 12px !important;
    }
}

/* Mobile Accordion Toggle - Hidden on Desktop */
.jhmb-mobile-accordion-toggle {
    display: none;
}

@media (max-width: 992px) {

    /* Hide main nav wrapper (and thus dog images) on mobile */
    .jhmb-dog-nav-wrapper {
        display: none !important;
    }

    /* Show mobile accordion buttons */
    .jhmb-mobile-accordion-toggle {
        display: block;
        width: 100%;
        background: #E6E2D6 !important;
        /* Beige/Grey inactive - Override global */
        color: #5f4b3a !important;
        /* Dark text inactive */
        border: none;
        border-radius: 12px !important;
        padding: 15px 20px;
        margin-bottom: 10px;
        /* Space between items when stacked */
        text-align: center;
        /* Center text like in image */
        cursor: pointer;
        transition: all 0.3s;
        box-shadow: none !important;
    }

    .jhmb-mobile-accordion-toggle:hover {
        background: #dcd8cc !important;
    }

    .jhmb-mobile-accordion-toggle.active {
        background: #FAA851 !important;
        /* Orange active */
        color: #fff !important;
        margin-bottom: 20px;
        /* More space after active header before content */
    }

    .jhmb-mobile-accordion-toggle .step-title {
        display: block;
        font-size: 1.2rem;
        font-weight: 700;
        color: #5f4b3a;
        margin-bottom: 5px;
    }

    .jhmb-mobile-accordion-toggle.active .step-title {
        color: #fff;
    }

    .jhmb-mobile-accordion-toggle .step-subtitle {
        display: block;
        font-size: 0.9rem;
        color: #666;
        line-height: 1.3;
    }

    .jhmb-mobile-accordion-toggle.active .step-subtitle {
        color: rgba(255, 255, 255, 0.9);
    }

    /* Adjust Content Wrapper for Mobile */
    .jhmb-process-content-wrapper {
        display: flex;
        flex-direction: column;
    }

    .jhmb-process-content {
        margin-bottom: 20px;
        /* Space after content before next button */
    }

    /* Ensure content is full width */
    .jhmb-step-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .jhmb-step-grid>.jhmb-step-col-left,
    .jhmb-step-grid>.jhmb-step-col-right {
        grid-column: 1;
    }

    .jhmb-process-content .jhmb-content-title {
        margin: 0;
        padding-top: 25px;
        font-size: 1.8rem;
    }

    /* Fix mobile layout for Podpora po posvojitvi section */
    .elementor-element-3254e8d {
        padding-left: 15px !important;
        padding-right: 20px !important;
    }
}

/* Remove padding-top from desktop version of Podpora po posvojitvi */
@media (min-width: 993px) {
    .elementor-element-3254e8d {
        padding-top: 0px !important;
    }
}

/* Homepage Buttons Widget */
.jhmb-homepage-buttons-wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: nowrap;
    padding: 40px 0;
    width: 100%;
}

.jhmb-btn-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    flex: 1;
    overflow: visible;
    /* Ensure images outside button are seen */
    /* Removed min-width to allow full control via Elementor */
}

.jhmb-home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
    /* Fill the wrapper */
    min-height: 80px;
    position: relative;
    z-index: 2;
    line-height: 1.2;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Removed max-width/min-width to allow Elementor control */
}

.jhmb-home-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.jhmb-btn-decor {
    position: absolute;
    pointer-events: none;
    max-width: none !important;
    /* Force override global limits */
}

.jhmb-btn-decor-bottom {
    position: absolute;
    pointer-events: none;
    max-width: none !important;
    /* Force override global limits */
}

.jhmb-heart-help-btn {
    position: relative;
    width: var(--jhmb-heart-width, 150px);
    height: var(--jhmb-heart-height, 140px);
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
    text-decoration: none;
    line-height: 0;
}

.jhmb-heart-help-btn:focus,
.jhmb-heart-help-btn:active {
    outline: none !important;
    box-shadow: none !important;
}

.elementor-widget-jhmb_button_heart_pomoc .elementor-widget-container {
    display: flex;
    justify-content: center;
}

.jhmb-heart-help-btn--editor {
    margin-left: auto;
    margin-right: auto;
}

.jhmb-heart-help-btn::before,
.jhmb-heart-help-btn::after {
    content: "";
    position: absolute;
    width: calc(var(--jhmb-heart-width, 150px) / 2);
    height: calc(var(--jhmb-heart-height, 140px) * 0.7857142857);
    background: var(--jhmb-heart-color, #d9443f);
    border-radius: calc(var(--jhmb-heart-width, 150px) / 2) calc(var(--jhmb-heart-width, 150px) / 2) 0 0;
    top: 0;
}

.jhmb-heart-help-btn::before {
    left: calc(var(--jhmb-heart-width, 150px) / 2);
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.jhmb-heart-help-btn::after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

.jhmb-heart-help-btn .elementor-button-text,
.jhmb-heart-help-btn .elementor-button-icon {
    display: none;
}

.jhmb-heart-help-btn:hover {
    transform: scale(var(--jhmb-heart-hover-scale, 1.15));
}

@media (max-width: 992px) {

    /* On tablet, maybe allow 2x2 grid */
    .jhmb-homepage-buttons-wrapper {
        flex-wrap: wrap;
    }

    .jhmb-btn-wrapper {
        min-width: 40%;
        flex: 1 1 40%;
    }
}

@media (max-width: 767px) {
    .jhmb-homepage-buttons-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .jhmb-btn-wrapper {
        width: 100%;
        /* max-width removed to allow Elementor control */
        margin-bottom: 0;
        flex: none;
        /* Reset flex on mobile */
    }

    .elementor-2 .elementor-element.elementor-element-e550017 .jhmb-homepage-buttons-wrapper {
        gap: 12px !important;
    }

    .elementor-2 .elementor-element.elementor-element-e550017 .jhmb-btn-wrapper {
        flex: 0 0 auto !important;
        flex-grow: 0 !important;
        flex-shrink: 0 !important;
        flex-basis: auto !important;
        height: auto !important;
        margin-bottom: 0 !important;
    }

    .jhmb-home-btn {
        width: 100%;
        max-width: 100%;
        min-width: unset;
        font-size: 1.2rem;
    }
}

/* Random Animals Section - Shelter Details Widget */
.jhmb-random-animals-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.jhmb-section-spacing {
    height: 40px;
}

.jhmb-random-animals-title {
    text-align: center;
    font-size: 2rem;
    color: var(--jhmb-text);
    margin-bottom: 40px;
    font-weight: 600;
}

/* Use existing grid for random animals */
.jhmb-random-animals-grid-inner {
    margin-bottom: 50px;
    grid-template-columns: repeat(3, 1fr) !important;
}

/* Responsive adjustments for random animals section */
@media (max-width: 1024px) {
    .jhmb-random-animals-grid-inner {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .jhmb-random-animals-grid-inner {
        grid-template-columns: 1fr !important;
    }
}

.jhmb-view-all-wrapper {
    text-align: center;
    margin-top: 20px;
}

.jhmb-btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Responsive adjustments for random animals section */
@media (max-width: 768px) {
    .jhmb-random-animals-section {
        margin-top: 40px;
        padding-top: 30px;
    }

    .jhmb-random-animals-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .jhmb-random-animals-grid-inner {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .jhmb-btn-large {
        padding: 12px 30px;
        font-size: 1rem;
    }
}