/* Light theme */
[data-bs-theme="light"] {
    --bs-darker-bg: #f1f1f5; /* light background */
}

/* Dark theme */
[data-bs-theme="dark"] {
    --bs-darker-bg: #1f1e20; /* dark background */
}

body {
    font-size: 15px;
}

main {
    margin-top: 60px !important;
    padding-top: 0px !important;
    min-height: calc(100vh - 120px);
}

a {
  color: inherit;
}

a:hover {
  color: inherit;
  text-decoration: underline;
}

header {
    position: fixed;
    top: 0;
    transition: transform 0.3s ease;
    z-index: 1000;
    background-color: var(--bs-darker-bg);
    display: flex;
    justify-content: space-between;
    padding: 0 0 0 20px !important;
    width: 100%;
    height: 60px;
    /* box-shadow: 3px 3px 5px rgba(41, 42, 43, 0.271); */
}

header.hidden {
    transform: translateY(-100%);
}

header .logo {
    display: flex;
    align-items: center;
}

.logo a {
    text-decoration: none;
    color: inherit;
    font-size: 20px;
    font-weight: 400;
    color: #1DB71A;
}

.logo a span {
    font-weight: 700;
    font-size: 26px;
    text-transform: uppercase;
    color: var(--bs-body-color);
}

@media screen and (max-width: 600px) {
    header {
        padding-left: 10px !important;
    }
    .logo a {
        font-size: 14px;
    }

    .logo a span {
        font-size: 17px;
    }
}

.lang-switcher a{
    text-decoration: none;
    color: var(--bs-body-color);
    font-size: 14px;
    font-weight: 400;
}

.lang-switcher a.current{
    font-weight: 800;
}

.theme-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 18px;
    cursor: pointer;
}

.bi-sun-fill {
    font-size: 18px;
}

.bi-moon-stars-fill {
    font-size: 15px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.hamburger-container {
    width: 60px;
    height: 60px;
    background-color: #1DB71A;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 3px;
}

.hamburger {
    position: relative;
    width: 22px;
    height: 19px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.hamburger:focus {
    outline: none;
}

.hamburger .line {
    height: 2.5px;
    /* background: var(--bs-body-color); */
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.line1 {
    width: 11px;
}

.line2 {
    width: 22px;
}

.line3 {
    width: 17px;
}

.hamburger.active .line1 {
    transform: rotate(-45deg);
    transform-origin: right top;
    width: 24px;
}

.hamburger.active .line2 {
    opacity: 0;
}

.hamburger.active .line3 {
    transform: rotate(45deg);
    transform-origin: right bottom;
    width: 24px;
}

.site-nav {
    position: fixed;
    top: 60px;
    width: 100%;
    height: 0;
    background: var(--bs-body-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.site-nav.visible {
    height: calc(100vh - 60px);
    opacity: 1;
    z-index: 999;
}

.site-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-height: calc(100vh - 60px);
    align-items: center;
    justify-content: flex-start;
    padding: 30px;
    overflow: auto;
    width: 100%;
}

.site-nav ul li {
    font-size: 22px;
    font-weight: 300;
    text-transform: uppercase;
}

.site-nav ul li a {
    text-decoration: none;
    color: var(--bs-body-color);
}

footer {
    background-color: var(--bs-tertiary-bg);
}

footer .footer-copy {
    background-color: var(--bs-darker-bg);
}

footer .footer-copy h2 {
    padding: 15px 20px 0 20px;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

footer .footer-copy p {
    padding: 10px 20px 10px 20px;
    margin: 0;
    font-size: 14px;
    font-weight: 300;
    text-align: center;
}

#footer-menu {
    justify-content: space-between;
    padding: 0 0 30px 0;
}

#footer-menu .submenu-col {
    width: 360px;
}

#footer-menu .menu-item.menu-item-has-children {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
    text-transform: uppercase;
    position: relative;
    margin-bottom: 30px;
    margin-top: 30px;
}

#footer-menu .menu-item.menu-item-has-children::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 50px;
    height: 0.5em;
    border-top: 1px solid var(--bs-success);
}

#footer-menu .submenu {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

#footer-menu .submenu a{
    font-size:13px;
    font-weight: 300;;
}

.listing-archive__card img {
  object-fit: cover;
  height: 220px;
}

.listing-archive__card .card-title a {
  color: inherit;
}

.listing-archive__card .card-title a:hover {
  text-decoration: underline;
}

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

.listing-archive .form-control:focus,
.listing-archive .form-select:focus {
  border-color: #1db71a;
  box-shadow: 0 0 0 0.2rem rgba(29, 183, 26, 0.25);
}

/* Pagination wrapper spacing & centering */
.listing-archive__pagination {
  display: flex;
  justify-content: center;
  margin: 3rem 0; /* top & bottom space */
}

/* Pagination buttons - outline */
.listing-archive__pagination .btn {
  color: #1db71a;
}

/* Hover state */
.listing-archive__pagination .btn:hover {
  background-color: #1db71a;
}

/* Active page */
.listing-archive__pagination .btn-primary,
.listing-archive__pagination .btn-primary:hover {
  background-color: #1db71a;
}

/* Remove default blue focus ring, replace with green */
.listing-archive__pagination .btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(29, 183, 26, 0.25);
}

.listing-archive__controls {
  margin-bottom: 2rem;
}


/* Hard-stop any overlap between media and body */
.listing-archive__card {
  overflow: hidden;              /* prevents weird stacking/bleed */
}

/* Media block participates in normal document flow */
.listing-archive__media {
  width: 100%;
  display: block;
}

/* Enforce 16:9 without absolute positioning */
.listing-archive__img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;          /* key */
  object-fit: cover;             /* crop nicely */
  display: block;                /* removes inline-image baseline gap */
}

/* Ensure body cannot float/overlap upwards */
.listing-archive__body {
  position: relative;
  display: block;
  clear: both;
  z-index: 1;
}