/*
Theme Name: Hubhood Child Starter
Theme URI: https://example.com/
Description: Safe child theme for Hubhood customizations.
Author: Your Name
Author URI: https://example.com/
Template: hubhood
Version: 0.1.1
Text Domain: hubhood-child-starter
*/

/* =========================================================
   GoCayman child theme — listing card polish v3
   Corrected selectors based on live HTML inspection
   ========================================================= */

/* ---- Outer column wrapper: rounded corners + shadow ---- */
.hubhood-default-post {
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ---- Card article shell ---- */
article.hubhood-listing-card {
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid rgba(17, 24, 39, 0.09) !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.07),
                0 1px 4px rgba(15, 23, 42, 0.04) !important;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.22s ease !important;
}

/* ---- Hover lift on card ---- */
article.hubhood-listing-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.13),
                0 4px 12px rgba(15, 23, 42, 0.06) !important;
    border-color: rgba(17, 24, 39, 0.15) !important;
}

/* ---- Image area: prevent zoom overflow, smooth scale ---- */
.hubhood-card-content-top-wrapper {
    overflow: hidden !important;
    border-radius: 16px 16px 0 0 !important;
}
.hubhood-card-content-top-wrapper img {
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1) !important;
    width: 100% !important;
    display: block !important;
}
article.hubhood-listing-card:hover .hubhood-card-content-top-wrapper img {
    transform: scale(1.05) !important;
}

/* ---- Card inner content spacing ---- */
.hubhood-card-content-top-data {
    padding: 14px 18px 8px !important;
}
.hubhood-prefooter-listing-card {
    padding: 10px 18px 14px !important;
    border-top: 1px solid rgba(17, 24, 39, 0.07) !important;
}

/* ---- Listing title ---- */
.hubhood-card-content-title,
article.hubhood-listing-card h3,
article.hubhood-listing-card h4,
article.hubhood-listing-card h5 {
    font-size: 1.03rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.01em !important;
    color: #111827 !important;
    margin-bottom: 5px !important;
}

/* ---- Address / location / subtitle ---- */
.hubhood-listing-address,
.hubhood-card-address,
article.hubhood-listing-card small,
article.hubhood-listing-card .hubhood-subtitle,
article.hubhood-listing-card .hubhood-location {
    color: #6b7280 !important;
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
}

/* ---- Rating ---- */
.hubhood-reviews-average-short,
.hubhood-review-stars-card-wrapper {
    font-weight: 600 !important;
    color: #111827 !important;
}

/* ---- Grid: comfortable gutter between cards ---- */
.hubhood-margin-gutter-bottom {
    margin-bottom: 24px !important;
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
    article.hubhood-listing-card {
        border-radius: 12px !important;
    }
    .hubhood-card-content-top-wrapper {
        border-radius: 12px 12px 0 0 !important;
    }
}

/* =========================================================
   Typography improvements
   ========================================================= */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
    line-height: 1.2;
}
p, li {
    line-height: 1.68;
    color: #374151;
}
a {
    color: #0f766e;
    transition: color 0.18s ease;
}
a:hover {
    color: #134e4a;
}

/* =========================================================
   Block A — Force card hover + rounded corners
   Overrides Hubhood theme option hubhood-style-card-edges-squared
   and hubhood-no-listing-card-hover
   ========================================================= */

body.hubhood-style-card-edges-squared article.hubhood-listing-card,
body article.hubhood-listing-card {
    border-radius: 16px !important;
    overflow: hidden !important;
}

body.hubhood-style-card-edges-squared .hubhood-card-content-top-wrapper,
body .hubhood-card-content-top-wrapper {
    border-radius: 16px 16px 0 0 !important;
    overflow: hidden !important;
}

/* Force hover lift even when theme disables it */
body.hubhood-no-listing-card-hover article.hubhood-listing-card:hover,
body article.hubhood-listing-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.13),
                0 4px 12px rgba(15, 23, 42, 0.06) !important;
}

body.hubhood-no-listing-card-hover .hubhood-card-content-top-wrapper img,
body .hubhood-card-content-top-wrapper img {
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.hubhood-no-listing-card-hover article.hubhood-listing-card:hover .hubhood-card-content-top-wrapper img,
body article.hubhood-listing-card:hover .hubhood-card-content-top-wrapper img {
    transform: scale(1.05) !important;
}

/* =========================================================
   Block B — Single listing page improvements
   ========================================================= */

/* Gallery area: cleaner height and shadow */
.hubhood-glide-gallery,
.hubhood-card-gallery-builder-wrapper {
    border-radius: 0 0 12px 12px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.10) !important;
}

/* Card cover (hero image on single listing) */
.hubhood-card-cover {
    border-radius: 0 !important;
    overflow: hidden !important;
}

/* Listing title area */
.hubhood-centralizer-content-title,
.single-job_listing h1,
.single-job_listing h2.entry-title {
    font-size: clamp(1.5rem, 3vw, 2.4rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.025em !important;
    line-height: 1.2 !important;
    color: #111827 !important;
}

/* Big rating circle: sharper look */
.hubhood-big-rating-circle {
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12) !important;
    border-radius: 50% !important;
}

/* Review section header */
.hubhood-has-review-average,
.hubhood-big-listing-rating-wrapper {
    padding: 20px 0 !important;
    border-top: 1px solid rgba(17, 24, 39, 0.08) !important;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08) !important;
    margin-bottom: 24px !important;
}

/* Content sections */
.hubhood-has-centralized-content .hubhood-content-toggle {
    padding: 20px 0 !important;
    border-bottom: 1px solid rgba(17, 24, 39, 0.07) !important;
}

/* Content scroll overlay: softer fade */
.hubhood-content-scroll-overlay {
    background: linear-gradient(to bottom, transparent 60%, rgba(255,255,255,0.96) 100%) !important;
}

/* =========================================================
   Block C — Homepage category cards + hero section polish
   ========================================================= */

/* Category/term cards in hero */
.hubhood-hero-category {
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15) !important;
}
.hubhood-hero-category:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 10px 28px rgba(0,0,0,0.22) !important;
}

/* Category label: cleaner text */
.hubhood-hero-category-label {
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4) !important;
}

/* Term/category cards in grid */
.hubhood-the-term-card-wrapper .hubhood-background-image {
    border-radius: 14px !important;
    overflow: hidden !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.10) !important;
}
.hubhood-the-term-card-wrapper:hover .hubhood-background-image {
    transform: translateY(-4px) !important;
    box-shadow: 0 14px 36px rgba(0,0,0,0.16) !important;
}

/* Hero overlay: slightly stronger for text legibility */
.hubhood-hero-front-overlay,
.hubhood-frontpage-header-seacondary-overlay {
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.38) 0%,
        rgba(15, 23, 42, 0.55) 100%
    ) !important;
}

/* Dark footer: slightly warmer tone */
.hubhood-site-footer,
.hubhood-footer-dark .hubhood-site-footer {
    background-color: #1a1f2e !important;
}

/* Pre-footer dark bar */
.hubhood-prefooter-menu-wrapper.hubhood-dark-prefooter {
    background-color: #141824 !important;
}

/* Add listing / CTA button: polished */
.hubhood-action-button-add-listing-wrapper a,
.hubhood-add-listing-button-mobile a {
    border-radius: 8px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    transition: box-shadow 0.18s ease, transform 0.18s ease !important;
}
.hubhood-action-button-add-listing-wrapper a:hover,
.hubhood-add-listing-button-mobile a:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18) !important;
}

/* =========================================================
   Block D+E — Navbar and Search bar (corrected selectors)
   ========================================================= */

/* ---- NAVBAR ---- */

/* Navbar wrapper */
.site-header.hubhood-header-menu .hubhood-main-navbar {
    box-shadow: 0 2px 20px rgba(15, 23, 42, 0.14) !important;
    transition: background 0.28s ease, box-shadow 0.28s ease !important;
}

/* Transparent state over hero */
.site-header.hubhood-header-menu-transparent .hubhood-main-navbar {
    background: rgba(15, 23, 42, 0.22) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: none !important;
}

/* Topbar container */
.hubhood-topbar-container {
    font-size: 0.82rem !important;
    letter-spacing: 0.01em !important;
}

/* Logo text */
.hubhood-logo-text {
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
}

/* Navbar links */
#site-navigation .hubhood-primary-menu > li > a,
#site-navigation .nav-link {
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    transition: opacity 0.18s ease !important;
}
#site-navigation .hubhood-primary-menu > li > a:hover {
    opacity: 0.75 !important;
    text-decoration: none !important;
}

/* Dropdown menus */
#site-navigation .dropdown-menu {
    border-radius: 12px !important;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.15) !important;
    border: 1px solid rgba(17, 24, 39, 0.08) !important;
    padding: 6px 0 !important;
    overflow: hidden !important;
    margin-top: 4px !important;
}
#site-navigation .dropdown-menu li a {
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    padding: 9px 18px !important;
    transition: background 0.15s ease !important;
}

/* Add Listing button */
.hubhood-action-button-add-listing-wrapper a,
.hubhood-add-listing-main-menu > a {
    border-radius: 8px !important;
    font-weight: 700 !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}
.hubhood-action-button-add-listing-wrapper a:hover,
.hubhood-add-listing-main-menu > a:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2) !important;
    text-decoration: none !important;
}

/* Mobile nav */
@media (max-width: 991px) {
    .navbar-toggler {
        padding: 8px 12px !important;
        border-radius: 8px !important;
    }
}

/* ---- SEARCH BAR ---- */

/* Search bar section wrapper */
section.hubhood-search-box-full {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Search bar first row: the white pill */
.hubhood-search-bar-first-row {
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.20) !important;
}

/* Override Hubhood's squared edges theme option */
body.hubhood-style-search-bar-edges-squared .hubhood-search-bar-first-row {
    border-radius: 14px !important;
}

/* Text inputs inside search bar */
section.hubhood-search-box-full input[type="text"],
section.hubhood-search-box-full input[type="search"],
.hubhood-search-bar-first-row input[type="text"] {
    font-family: "Rubik", sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #111827 !important;
    padding: 15px 18px !important;
}

section.hubhood-search-box-full input[type="text"]::placeholder,
.hubhood-search-bar-first-row input[type="text"]::placeholder {
    color: #9ca3af !important;
    font-weight: 400 !important;
}

/* Field separators */
.hubhood-search-input-field-border-right {
    border-right: 1px solid rgba(17, 24, 39, 0.1) !important;
}

/* Search submit button */
.hubhood-search-bar-first-row .hubhood-search-submit,
.hubhood-search-bar-first-row button[type="submit"],
.hubhood-search-bar-first-row .hubhood-buttons-search {
    border-radius: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    margin: 6px !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}
.hubhood-search-bar-first-row .hubhood-search-submit:hover,
.hubhood-search-bar-first-row button[type="submit"]:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18) !important;
}

/* Geolocation button */
.hubhood-search-geolocate-button {
    border-radius: 8px !important;
    transition: transform 0.18s ease !important;
}
.hubhood-search-geolocate-button:hover {
    transform: scale(1.06) !important;
}

/* Filter dropdowns on archive page */
.hubhood-listing-search-filter-form-wrapper {
    border-radius: 0 0 12px 12px !important;
    overflow: hidden !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08) !important;
    background: #ffffff !important;
}

/* =========================================================
   Block F — Search filter dropdowns: font color + spacing fix
   Targets Select2 rendered elements (not native <select>)
   ========================================================= */

/* Select2 selection box — the visible "pill" button */
.hubhood-search-bar-first-row .select2-container .select2-selection,
.hubhood-search-bar-first-row .select2-container--default .select2-selection--single,
.hubhood-search-bar-first-row .select2-container--default .select2-selection--multiple {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    min-height: 52px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 18px !important;
}

/* Select2 rendered text — the chosen value label */
.hubhood-search-bar-first-row .select2-selection__rendered,
.hubhood-search-bar-first-row .select2-selection__placeholder {
    color: #111827 !important;
    font-family: "Rubik", sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    padding: 0 !important;
}

/* Placeholder text color */
.hubhood-search-bar-first-row .select2-selection__placeholder {
    color: #9ca3af !important;
    font-weight: 400 !important;
}

/* Select2 arrow */
.hubhood-search-bar-first-row .select2-selection__arrow {
    height: 100% !important;
    right: 12px !important;
    top: 0 !important;
    display: flex !important;
    align-items: center !important;
}
.hubhood-search-bar-first-row .select2-selection__arrow b {
    border-color: #6b7280 transparent transparent transparent !important;
}

/* Dropdown panel */
.select2-container--default.select2-container--open .select2-dropdown {
    border-radius: 12px !important;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.14) !important;
    border: 1px solid rgba(17, 24, 39, 0.1) !important;
    overflow: hidden !important;
    margin-top: 4px !important;
}

/* Dropdown options */
.select2-container--default .select2-results__option {
    font-family: "Rubik", sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: #111827 !important;
    padding: 10px 16px !important;
}

/* Highlighted option */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #f0fafa !important;
    color: #0f766e !important;
}

/* Selected option */
.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #e6f3f3 !important;
    color: #0f766e !important;
    font-weight: 600 !important;
}

/* Search field inside dropdown */
.select2-container--default .select2-search--dropdown .select2-search__field {
    border-radius: 8px !important;
    border: 1px solid rgba(17, 24, 39, 0.12) !important;
    padding: 8px 12px !important;
    font-family: "Rubik", sans-serif !important;
    font-size: 0.9rem !important;
    color: #111827 !important;
}

/* ---- Vertical spacing fix for search bar columns ---- */

/* Force equal height on all search bar columns */
.hubhood-search-bar-first-row .row {
    display: flex !important;
    align-items: stretch !important;
}

.hubhood-search-bar-first-row .hubhood-hero-search-input-field-wrapper,
.hubhood-search-bar-first-row .col-xl-3,
.hubhood-search-bar-first-row .col-lg-6,
.hubhood-search-bar-first-row .col-md-6 {
    display: flex !important;
    align-items: stretch !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.hubhood-search-bar-first-row .hubhood-buttons-search,
.hubhood-search-bar-first-row .hubhood-search-input {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 56px !important;
}

/* Column dividers */
.hubhood-search-bar-first-row .col-xl-3:not(:last-child),
.hubhood-search-bar-first-row .col-lg-6:not(:last-child) {
    border-right: 1px solid rgba(17, 24, 39, 0.08) !important;
}
