/* Import Google Fonts and FontAwesome */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Horsequip Custom Theme Styles */
/* Based on design from christianramcke.com/horsequip */

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.6;
}

body.horsequip-theme {
  font-family: 'Roboto', 'Arial', 'Helvetica', sans-serif;
  font-weight: 100;
  background-color: #ffffff;
  color: #333333;
  overflow-x: hidden;
}

/* Container */
.container {
  /* max-width: 1200px; */
  margin: 0 auto;
}

/* Skip Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 20px;
  z-index: 999;
  padding: 8px 16px;
  background: #000;
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  left: 20px;
}

/* Minimal Header Styles */
.minimal-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  height: 60px;
}

/* Adjust header position when admin toolbar is present */
body.toolbar-fixed .minimal-header {
  top: 39px;
}

body.toolbar-fixed.toolbar-horizontal.toolbar-tray-open .minimal-header {
  top: 79px;
}

.header-container {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.header-logo {
  position: absolute;
  left: 50%;
  top: 15%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 35px;
  width: auto;
}

.header-search {
  position: absolute;
  left: 20px;
  display: flex;
  align-items: center;
}

.search-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 2;
}

.search-button i {
  font-size: 24px;
  color: #333;
  transition: color 0.3s ease;
}

.search-button:hover i {
  color: #8B4513;
}

/* Header search - simplified version without expanding input */
.header-search {
  display: flex;
  align-items: center;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.header-search .search-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.header-search .search-button:hover {
  color: #8B4513;
}

.header-search .search-button i {
  font-size: 18px;
  color: #333;
  transition: color 0.3s ease;
}

.header-search .search-button:hover i {
  color: #8B4513;
}

/* Old search input container CSS removed - now using simple search button only */

/* Mobile responsive adjustments for simplified header search */
@media (max-width: 768px) {
  .header-search {
    left: 10px; /* Move further left on mobile */
  }
  
  .header-navigation {
    right: 10px; /* Adjust navigation position */
  }
  
  .search-button {
    width: 30px; /* Smaller search button */
    height: 30px;
  }
  
  .search-button i {
    font-size: 14px; /* Smaller icon */
  }
}

/* For very small screens */
@media (max-width: 480px) {
  .search-input-container.active {
    width: 160px; /* Even smaller for very small screens */
  }
  
  .header-search {
    left: 5px;
  }
  
  
  .header-logo img {
    height: 30px; /* Smaller logo */
  }
}

.header-navigation {
  position: absolute;
  right: 20px;
}
.hamburger-icon {
  font-weight: 100;
}
.hamburger-menu {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  position: relative;
  
}

.hamburger-icon,
.close-icon {
  font-size: 24px;
  color: #333;
  transition: all 0.3s ease;
  position: absolute;
}

.close-icon {
  opacity: 0;
  transform: rotate(180deg);
}

.hamburger-menu:hover .hamburger-icon,
.hamburger-menu:hover .close-icon {
  color: #8B4513;
}

.hamburger-menu[aria-expanded="true"] .hamburger-icon {
  opacity: 0;
  transform: rotate(-180deg);
}

.hamburger-menu[aria-expanded="true"] .close-icon {
  opacity: 1;
  transform: rotate(0deg);
}

.mobile-menu {
  position: absolute;
  top: 50px;
  right: 0;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-top: none;
  min-width: 250px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: none;
  opacity: .95;
  height: 100vh;
}

.hamburger-menu[aria-expanded="true"] + .mobile-menu {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* .mobile-menu li {
  border-bottom: 1px solid #f0f0f0;
} */

.mobile-menu li:last-child {
  border-bottom: none;
}

.mobile-menu a {
  display: block;
  padding: 5px 20px;
  color: #333;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  font-weight: 100;
  font-size: 16px;
  letter-spacing: 0.4em;
  transition: background-color 0.3s ease;
}

.mobile-menu a:hover {
  background-color: #f8f9fa;
  color: #8B4513;
}

body {
  padding-top: 60px;
}

/* Navigation */
.navigation {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.navigation .container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
}

/* Navigation Menu Items - inspired by reference site */
.navigation ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.navigation li {
  margin: 0;
}

.navigation a {
  text-decoration: none;
  color: #333333;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 15px;
  display: block;
  transition: color 0.3s ease;
}

.navigation a:hover,
.navigation a:focus {
  color: #8B4513;
  text-decoration: none;
}

/* Hero Section */

.hero-region {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.2);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content-wrapper {
  text-align: center;
  color: #ffffff;
  max-width: 800px;
  padding: 40px 20px;
}

.hero-content-wrapper h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.hero-content-wrapper p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-content-wrapper .btn {
  display: inline-block;
  background-color: #8B4513;
  color: #ffffff;
  padding: 15px 30px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.hero-content-wrapper .btn:hover {
  background-color: #A0522D;
  text-decoration: none;
}

/* Main Content */
.main-content {
  min-height: 400px;
}

.layout-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.layout-content.has-sidebar-first {
  grid-template-columns: 300px 1fr;
}

.layout-content.has-sidebar-second {
  grid-template-columns: 1fr 300px;
}

.layout-content.has-both-sidebars {
  grid-template-columns: 250px 1fr 250px;
}

/* Sidebar Styles */
.layout-sidebar-first,
.layout-sidebar-second {
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
}

/* Footer */
.footer {
  background-color: #2c3e50;
  color: #ffffff;
  padding: 40px 0 20px !important;
  /* margin-top: 60px; */
}

.footer-region {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 0;
}

.footer-content-wrapper h3 {
  color: #8B4513;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.footer-content-wrapper ul {
  list-style: none;
  padding: 0;
}

.footer-content-wrapper li {
  margin-bottom: 8px;
}

.footer-content-wrapper a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
  border: none;
  padding: 0;
  font-weight: 300;
}

.footer-content-wrapper a:hover {
  color: #8B4513;
  text-decoration: none;
}

/* Categories Grid - inspired by reference site footer */
.footer-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.category-section h4 {
  color: #8B4513;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.category-section a {
  display: block;
  color: #ffffff;
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.category-section a:hover {
  color: #8B4513;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    padding: 0 15px;
  }
  
  .hero-content-wrapper h1 {
    font-size: 2.5rem;
  }
  
  .hero-content-wrapper p {
    font-size: 1rem;
  }
  
  .navigation ul {
    flex-direction: column;
    gap: 10px;
  }
  
  .layout-content {
    grid-template-columns: 1fr;
  }
  
  .layout-content.has-sidebar-first,
  .layout-content.has-sidebar-second,
  .layout-content.has-both-sidebars {
    grid-template-columns: 1fr;
  }
  
  .container {
    /* padding: 0 15px; */
  }
}

@media (max-width: 480px) {
  .hero-content-wrapper h1 {
    font-size: 2rem;
  }
  
  .hero-content-wrapper {
    padding: 30px 15px;
  }
}

/* Front Page Specific Styles */
.front-page-hero {
  min-height: 400px;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
              url('../images/horse-hero-bg.jpg') center center/cover no-repeat;
  background-color: #8B4513;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-brand {
  margin-bottom: 40px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  margin-bottom: 10px;
  letter-spacing: 3px;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  font-weight: 300;
  letter-spacing: 1px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-action-btn {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333333;
  padding: 15px 30px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  border: 2px solid transparent;
}

.hero-action-btn:hover {
  background-color: #8B4513;
  color: #ffffff;
  text-decoration: none;
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* Categories Grid */
.front-page-main {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.category-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.category-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.category-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0;
}

.category-find-btn {
  display: inline-block;
  background-color: #8B4513;
  color: #ffffff;
  padding: 12px 25px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  min-width: 100px;
}

.category-find-btn:hover {
  background-color: #A0522D;
  text-decoration: none;
  transform: scale(1.05);
}

/* Front Page Content */
.front-page-content {
  /* margin-top: 60px; */
  padding: 40px 0;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive Design for Front Page */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    letter-spacing: 2px;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .hero-action-btn {
    width: 250px;
    max-width: 90%;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }
  
  .category-item {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .front-page-hero {
    min-height: 350px;
  }
  
  .categories-grid {
    padding: 0 5px;
  }
  
  .category-title {
    font-size: 1.2rem;
  }
}

/* Utility Classes */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.focusable:focus {
  position: static !important;
  height: auto;
  width: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Additional Drupal-specific overrides */
/* .block {
  margin-bottom: 30px;
} */

.block-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #2c3e50;
}

.mobile-menu a {
  display: block;
  /* padding: 1rem 0; */
  color: #000000;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.196em;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 300;
}
.horsequip-grey {
  color: grey;
}

.mobile-menu a:hover {
    color: #ff940b;
    padding-left: 1.5rem;
}

.hamburger-icon, .close-icon {
  font-size: 26px;
}

.video-intro-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #000;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    pointer-events: auto;
}

.video-intro-container.hidden {
  display: none !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    object-fit: contain;
    pointer-events: none;
}

/* Mobile devices - use cover for better mobile experience */
@media (max-width: 768px) {
    .video-background {
        object-fit: cover;
    }
}


.intro-content {
    position: absolute;
    bottom: 10vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    text-align: center;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: auto;
}

.start-button {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 20px;
    font-size: 2em;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: none;
    outline: none;
    transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    pointer-events: auto;
    position: relative;
    z-index: 100;
}

.community-section {
    background-color: #4f3e2c;
    padding: 4rem 0;
    color: #ffffff;
} 
.community-header {
    margin-bottom: 1rem;
    /* padding-left: 20px; */
}

.community-search-header span {
    font-size: 20px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.25em;
}
.community-search-header i {
  font-size: 20px;
  margin-right: 15px;
  transition: transform 0.3s ease;
  -webkit-text-stroke: 1.5px #4f3e2c !important;
  /* font-weight: 300; */
}

.community-grid-wrapper {
    display: flex;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 3rem;
}

.community-grid {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    /* gap: 1.5rem; */
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px;
    box-sizing: border-box;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: #ff940b #4f3e2c;
}

@media (max-width: 768px) {
    .community-card {
        /* min-width: 100px; */
        /* width: 120px; */
    }
}

.community-card {
    flex-shrink: 0;
    /* min-width: 150px;
    max-width: 200px;
    width: 180px; */
    text-align: center;
    padding: 1rem;
}

.community-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    overflow: hidden;
    border: 3px solid #ffffff;
    /* background-color: #ff940b; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.community-card .community-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
    margin-bottom: 0.3rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: normal;
}

.community-card .community-category {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.196em;
    margin: 0;
}
.community-actions-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 1rem;
    flex-wrap: nowrap;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.footer {
    background-color: #4f3e2c;
    color: #ffffff;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1179px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    gap: 0;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
    width: 100%;
    padding: 0 1rem;
}

.footer-links a {
    color: #ffffff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.196em;
    transition: color 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 1;
    flex-basis: auto;
    text-overflow: ellipsis;
    overflow: hidden;
    min-width: 0;
    padding: 0 0.2rem;
}

@media (max-width: 768px) {
    .footer-links a {
        font-size: 0.6rem;
    }
}

.footer-divider {
    width: 80px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 2rem auto;
}
.footer-bottom p {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.196em;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.65rem;
    }
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    text-transform: uppercase;
    letter-spacing: 0.196em;
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    flex-shrink: 0;
    border: 1px solid #ffffff;
}
.fa-edit {
  -webkit-text-stroke: unset !important;
}
.horsequip-link {
  color: #333;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.horsequip-link:hover {
  transform: scale(1.08);
  color: #8B4513;
}
h4 {
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-family: Roboto;
}
.preview-image {
  width: 200px;
}
/* Header styles when video intro is visible */
body.video-intro-active .minimal-header {
  background-color: rgba(0, 0, 0, 0.7);
  border-bottom: none;
}

/* Lock scroll when video intro is active */
body.video-intro-active {
  overflow: hidden !important;
  height: 100vh !important;
}

/* Specifically enable vertical scrolling when video intro is NOT active */
body:not(.video-intro-active) {
  overflow-y: auto !important;
}

/* Hide search and hamburger when video intro is visible */
body.video-intro-active .header-search,
body.video-intro-active .header-navigation {
  display: none;
}

/* Search Results Styles */
.search-results-info {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin: 20px auto;
  max-width: 1200px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-results-info.no-results {
  background: #fff3cd;
  border-color: #ffeaa7;
}

.search-results-info.loading {
  background: #e3f2fd;
  border-color: #bbdefb;
}

.search-results-info.error {
  background: #ffebee;
  border-color: #ffcdd2;
}

.search-loading-spinner {
  text-align: center;
  font-size: 1.2em;
  color: #8B4513;
}

.search-results-container {
  margin-top: 15px;
  padding: 10px;
  background: rgba(139, 69, 19, 0.05);
  border-radius: 4px;
  border-left: 3px solid #8B4513;
}

/* Search Loading Overlay */
.search-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-loading-content {
  background: white;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  margin: 20px;
}

.search-loading-content h3 {
  margin: 20px 0 10px 0;
  color: #333;
  font-size: 1.4em;
  font-weight: 500;
}

.search-loading-content p {
  margin: 0 0 20px 0;
  color: #666;
  font-size: 1em;
}

/* Animated single spinner */
.search-loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  height: 60px;
}

.spinner-ring-single {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #8B4513;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Progress bar */
.search-progress {
  width: 100%;
  height: 4px;
  background: #f0f0f0;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 20px;
}

.search-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #8B4513, #A0522D, #D2691E, #8B4513);
  background-size: 200% 100%;
  animation: progressMove 2s linear infinite;
  border-radius: 2px;
}

@keyframes progressMove {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Small spinner for info box */
.search-loading-spinner-small {
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
}

.search-loading-spinner-small i {
  color: #8B4513;
  font-size: 1.2em;
}

.search-results-info.loading .search-info-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-results-info.loading span {
  font-weight: 500;
  color: #333;
}

.search-info-content h3 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 1.2em;
  font-weight: 500;
}

.search-info-content p {
  margin: 0 0 15px 0;
  color: #666;
  font-size: 0.95em;
}

.clear-search-btn {
  background: #8B4513;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

.clear-search-btn:hover {
  background: #A0522D;
}

.clear-search-btn i {
  margin-right: 5px;
}

/* Highlight search result sections */
.collapsible-item.search-result-section {
  border-left: 4px solid #8B4513;
  background: rgba(139, 69, 19, 0.05);
}

.collapsible-item.search-result-section .collapsible-header {
  background: rgba(139, 69, 19, 0.1);
}

/* White logo for video overlay */
body.video-intro-active .header-logo img {
  content: url('/themes/custom/horsequip/assets/images/logo horsequip weiss.png');
}
@media (max-width: 768px) {
  .toolbar-vertical .minimal-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    position: fixed;
    top: 39px;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
  }
}
/* Container override removed to prevent conflicts */
.hero-container {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
    overflow-x: hidden;
}
.hero-section {
    width: 100%;
    position: relative;
    background-color: #ffffff;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden;
}
.hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    max-width: 100%;
}

.action-card {
    background-color: #ff940b;
    padding: 12px 12px;
    border-radius: 0px;
    text-align: left;
    transition: width 0.3s ease, min-height 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    /* width: 150px; */
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform-origin: center;
    letter-spacing: 3px;
}

.action-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background-color: #e8830a;
}

/* Collapsed action cards state */
.action-section.collapsed .action-card {
    width: 30px;
    min-height: 65px;
    padding: 12px;
    justify-content: center;
    align-items: center;
}

.action-section.collapsed .action-card h5,
.action-section.collapsed .action-card p {
    display: none;
}

.action-section.collapsed .action-card::after {
    content: '\f053';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #ffffff;
    font-size: 20px;
}

.action-section.collapsed .action-card:hover {
    background-color: #e8830a;
}
.action-card h3 {
    color: #ffffff;
    font-size: 0.75rem;
    margin-bottom: 2px;
}
.action-card h5 {
    color: rgba(255, 255, 255, 0.9);
    /* font-size: 1rem; */
    margin: 0;
    font-weight: 400;
}

.action-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.action-section {
    position: absolute;
    right: 0;
    transform: translateY(8%);
    opacity: 1;
    z-index: 10;
}

/* Collapsible Navigation Section */
.collapsible-nav-section {
    background-color: #ffffff;
    padding: 0px 15px;
}
.community-section {
  padding: 20px 30px;
}
.collapsible-nav-list, .community-container {
    /* max-width: 600px; */
    margin: 0 auto;
}

.collapsible-item:last-child {
    border-bottom: none;
}

.collapsible-header {
    display: flex;
    align-items: center;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.collapsible-header:hover {
    color: #8B4513;
}

.collapsible-header i {
    font-size: 20px;
    margin-right: 15px;
    transition: transform 0.3s ease;
    /* font-weight: 300; */
    /* -webkit-text-stroke: 0; */
    /* color: #666; */
}

.collapsible-header span {
    font-size: 20px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #333;
    transition: color 0.3s ease;
}
.collapsible-header span.bold {
    font-weight: 400;
}
.collapsible-item.active .collapsible-header i {
    transform: rotate(90deg);
    color: #8B4513;
}

.collapsible-item.active .collapsible-header span {
    color: #8B4513;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.collapsible-item.active .collapsible-content {
    max-height: unset;
    /* padding: 20px 30px; */
}

.path-login #block-horsequip-content {
  min-height: 67vh;
}

/* Specific CSS for login and register collapsible sections */
.login-section.active .collapsible-content,
.register-section.active .collapsible-content {
  max-height: 1000px !important;
  padding: 20px 30px;
  overflow: visible;
}
/* Community section specific styling */
.collapsible-item#community .collapsible-content {
    background-color: #4f3e2c;
    color: #ffffff;
}
#community .collapsible-item.active .collapsible-header span {
  color: #fff;
    background-color: #4f3e2c;

}
.collapsible-item#community.active .collapsible-content {
    max-height: 800px;
    padding: 30px;
}

.collapsible-item#community .search-field-group label {
    color: #ffffff;
}

.collapsible-item#community .search-field-group input {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.collapsible-item#community .search-field-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.collapsible-item#community .search-field-group input:focus {
    outline: none;
    border-color: #ff940b;
    background-color: rgba(255, 255, 255, 0.1);
}

.collapsible-item#community .community-header span {
    color: #ffffff;
    text-align: center;
    font-weight: 300;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.196em;
    margin-bottom: 2rem;
        font-size: 22px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.25em;
}

.collapsible-item#community .community-card .community-label {
    color: rgba(255, 255, 255, 0.7);
}

.collapsible-item#community .community-card h3 {
    color: #ff940b;
}

.collapsible-item#community .community-card .community-category {
    color: rgba(255, 255, 255, 0.8);
}

.collapsible-content p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Search Form Styling */
.search-form-section {
    padding: 0;
}

.search-field-group {
    margin-bottom: 25px;
}

.search-field-group label {
    display: block;
    font-size: 1rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #333;
    margin-bottom: 10px;
    font-family: 'Roboto', sans-serif;
}
.community-search-field-group input {
  border: none;                
    border-bottom: 1px solid #fff; 
    border: none;
  border-bottom: 1px solid #fff;
  border-radius: 0;              /* Removes rounded corners */
  -webkit-appearance: none;      /* Resets iOS default styling */
  -moz-appearance: none;
  appearance: none;
  box-shadow: none;              /* Removes inner shadows */
  outline: none;   
}
.search-field-group input {
    width: 100%;
    padding: 12px 15px;
    border: none;
  border-bottom: 1px solid #000;
  border-radius: 0;              /* Removes rounded corners */
  -webkit-appearance: none;      /* Resets iOS default styling */
  -moz-appearance: none;
  appearance: none;
  box-shadow: none;              /* Removes inner shadows */
  outline: none;             
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: #666;
    font-family: 'Roboto', sans-serif;
}
.fa-circle-arrow-right {
  -webkit-text-stroke: 0;
  font-size: 24px;
}

.search-field-group input::placeholder {
    color: #999;
    font-style: normal;
}

.search-field-group input:focus {
    outline: none;
    background-color: #d0d0d0;
}

.action-button-group {
    margin-top: 30px;
    text-align: left;
}

.add-stall-btn {
    background: none;
    border: none;
    color: #333;
    font-size: 0.9rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    transition: color 0.3s ease;
}

.add-stall-btn:hover {
    color: #8B4513;
}

.stall-checkbox {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    cursor: pointer;
}

.checkbox-text {
    cursor: pointer;
}

.add-event-btn,
.add-inserat-btn {
    background: none;
    border: none;
    color: #333;
    font-size: 0.9rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    transition: color 0.3s ease;
}

.add-event-btn:hover,
.add-inserat-btn:hover {
    color: #8B4513;
}

.add-event-btn i,
.add-inserat-btn i {
    font-size: 16px;
}

/* Community Search Section */
.community-search-container {
    max-width: 600px;
    /* padding: 0 20px; */
}

.community-search-header {
    align-items: center;
    margin-bottom: 40px;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.community-search-header:hover {
    color: #ff940b;
}

.community-chevron {
    font-size: 14px;
    margin-right: 15px;
    color: #ffffff;
    transition: transform 0.3s ease, color 0.3s ease;
}

.community-search-header:hover .community-chevron {
    color: #ff940b;
}

.community-search-header h2 {
    font-size: 1.5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: #ffffff;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.community-search-content {
    max-width: 400px;
    margin: 0 auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.community-search-container.active .community-search-content {
    max-height: 300px;
    padding-top: 20px;
}

.community-search-container.active .community-search-header {
    margin-bottom: 20px;
}

.community-search-container.active .community-search-header i {
    transform: rotate(90deg);
}

.community-search-field-group {
    margin-bottom: 30px;
    text-align: center;
}

.community-search-field-group label {
    display: block;
    font-size: 1rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    margin-bottom: 15px;
    font-family: 'Roboto', sans-serif;
}

.community-search-field-group input {
    width: 100%;
    max-width: 350px;
    padding: 12px 15px;
    /* border: 2px solid #ffffff; */
    background-color: transparent;
    font-size: 0.9rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    border: none;
    border-bottom: 1px solid #fff;
}

.community-search-field-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-style: normal;
}

.community-search-field-group input:focus {
    outline: none;
    border-color: #ff940b;
    background-color: rgba(255, 255, 255, 0.1);
}

#block-horsequip-mainnavigation {
  margin-bottom: 0;
}

/* Mobile Menu Nested Structure */
.mobile-menu-content {
  padding: 20px 0;
}

.mobile-main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menu-item {
  /* border-bottom: 1px solid #f0f0f0; */
}

.main-menu-item:last-child {
  border-bottom: none;
}

.main-menu-link {
  display: block;
  padding: 15px 20px;
  color: #000000;
  font-size: 1rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.196em;
  text-decoration: none;
  /* border-bottom: 1px solid #f0f0f0; */
  transition: all 0.3s ease;
}

.main-menu-link:hover {
  color: #ff940b;
  padding-left: 1.5rem;
}

/* Nested Menu Items */

.nested-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-item-level-2 {
  padding-left: 1em;
}

.nested-menu-item {
  border-bottom: 1px solid #f5f5f5;
}

.nested-menu-item:last-child {
  border-bottom: none;
}

.nested-menu-link {
  display: block;
  padding: 12px 20px;
  padding-left: 40px;
  color: #666666;
  font-size: 0.9rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.196em;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

/* .nested-menu-link:before {
  content: '';
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background-color: #cccccc;
  border-radius: 50%;
  transition: background-color 0.3s ease;
} */

.nested-menu-link:hover {
  color: #ff940b;
  padding-left: 45px;
}

.nested-menu-link:hover:before {
  background-color: #ff940b;
}

/* Authentication Section */
.mobile-auth-section {
  /* margin-top: 30px;
  padding: 20px 0; */
  /* border-top: 2px solid #e0e0e0; */
}

.auth-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  color: #333333;
  text-decoration: none;
  transition: all 0.3s ease;
  /* background-color: #f8f9fa; */
  border-radius: 4px;
  /* margin: 0 20px; */
}

.auth-link:hover {
  color: #ff940b;
  background-color: #f0f0f0;
  text-decoration: none;
}

.auth-text {
  font-size: 1rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.196em;
}

.auth-icon {
  transition: transform 0.3s ease;
}

.auth-link:hover .auth-icon {
  transform: translateX(5px);
}

/* Mobile Language Switcher */
.mobile-language-section {
  margin-top: 20px;
  padding: 20px 0;
  border-top: 1px solid #e0e0e0;
}

.language-switcher {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* padding: 15px 20px; */
  background-color: rgba(255, 255, 255, 0.1);
  /* border-radius: 8px; */
  /* border: 2px solid #00ff88; */
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

.language-link {
  color: #333333;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 5px;
}

.language-link:hover {
  color: #ff940b;
  text-decoration: none;
}

.language-link.active {
  color: #333333;
  font-weight: 900;
}

.language-text {
  font-size: 1rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.196em;
  font-family: 'Roboto', sans-serif;
}
.language-link.active .language-text {
  font-weight: 500;
}

.language-text.bold {
  font-weight: 700;
}

.language-separator {
  font-size: 1rem;
  font-weight: 300;
  color: #333333;
  /* margin: 0 15px; */
  font-family: 'Roboto', sans-serif;
}

/* Sub-nested Menu Items (Level 3 and beyond) */
.mobile-sub-nested-menu {
  margin-top: 10px;
  border-top: 1px solid #f0f0f0;
  padding-top: 10px;
}
.fa {
  -webkit-text-stroke: 1.5px #fff;
}
.sub-nested-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sub-nested-menu-item {
  border-bottom: 1px solid #f8f8f8;
}

.sub-nested-menu-item:last-child {
  border-bottom: none;
}

.sub-nested-menu-link {
  display: block;
  padding: 10px 20px;
  padding-left: 60px;
  color: #888888;
  font-size: 0.8rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.196em;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.sub-nested-menu-link:before {
  content: '';
  position: absolute;
  left: 45px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  background-color: #dddddd;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}
.enter-text {
      color: white;
    text-align: center;
    font-weight: 400;
    font-size: 24px;
    letter-spacing: 0.25em;
    margin-left: -7px;
}
.sub-nested-menu-link:hover {
  color: #ff940b;
  padding-left: 65px;
}

.sub-nested-menu-link:hover:before {
  background-color: #ff940b;
}
.community-header span {
  font-weight: 300;
}

/* Status Messages Styling */
.horsequip-messages-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 10001;
  max-width: 400px;
  width: 100%;
}

.horsequip-message {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: 'Roboto', sans-serif;
  position: relative;
  animation: slideInRight 0.3s ease-out;
}

.horsequip-message--status {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.horsequip-message--error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.horsequip-message--warning {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
}

.horsequip-message-icon {
  margin-right: 12px;
  flex-shrink: 0;
}

.horsequip-message-icon i {
  font-size: 18px;
}

.horsequip-message--status .horsequip-message-icon i {
  color: #28a745;
}

.horsequip-message--error .horsequip-message-icon i {
  color: #dc3545;
}

.horsequip-message--warning .horsequip-message-icon i {
  color: #ffc107;
}

.horsequip-message-content {
  flex-grow: 1;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.4;
}

.horsequip-message-text {
  margin: 0;
}

.horsequip-message-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.horsequip-message-item {
  margin-bottom: 8px;
}

.horsequip-message-item:last-child {
  margin-bottom: 0;
}

.horsequip-message-close {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 12px;
  padding: 4px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.horsequip-message-close:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.horsequip-message-close i {
  font-size: 12px;
  color: inherit;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .horsequip-messages-container {
    top: 70px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .horsequip-message {
    padding: 12px 15px;
    font-size: 0.85rem;
  }
  .horsequip-grid-column {
    margin-bottom: 2em;
  }
}
@media (min-width: 1025px) {
  .horsequip-grid-row .row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 equal columns */
    gap: 20px; /* space between items */
  }
}

.collapsible-header i.community {
    font-size: 20px;
    margin-right: 15px;
    transition: transform 0.3s ease;
    /* font-weight: 300; */
    /* -webkit-text-stroke: 0; */
    /* color: #666; */
    -webkit-text-stroke: 0;
}


#community-search .collapsible-header span {
  color: #fff;
}
#community .collapsible-item.active {
  color: #ff940b;
}

/* Full-screen listing overlay */
.listing-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: none;
  overflow: hidden;
}

.listing-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.listing-overlay-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.listing-overlay-header {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  z-index: 10001;
}

.listing-overlay-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.listing-overlay-close {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.listing-overlay-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.listing-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.listing-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
  touch-action: pan-y pinch-zoom;
}

.listing-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}

.listing-item-container {
  width: 100%;
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.listing-slide.active .listing-item-container {
  transform: scale(1);
}

/* Style the original tns-item elements when in overlay */
.listing-item-container .tns-item {
  width: 100% !important;
  max-width: 600px;
  height: auto !important;
  transform: none !important;
  margin: 0 !important;
  position: static !important;
  left: auto !important;
  display: block !important;
}

/* Ensure the content inside tns-item scales appropriately */
.listing-item-container .tns-item > * {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}

/* Viewport detection indicator */
.tns-item.viewport-focus {
  transform: scale(1.02);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(139, 69, 19, 0.2);
  z-index: 10;
  position: relative;
}

.tns-item.viewport-triggering {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(139, 69, 19, 0.4);
}

.listing-navigation {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10001;
}

.listing-nav-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.listing-nav-btn:hover,
.listing-nav-btn:disabled {
  background: rgba(255, 255, 255, 0.4);
}

.listing-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.listing-indicators {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10001;
}

.listing-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.listing-indicator.active {
  background: white;
}

.listing-pull-indicator {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  z-index: 10001;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .listing-overlay-header {
    padding: 0 20px;
  }
  
  .listing-slide {
    padding: 0;
  }
  
  .listing-card {
    padding: 20px;
    max-width: none;
    margin: 0 10px;
  }
  
  .listing-navigation {
    bottom: 20px;
    gap: 10px;
  }
  
  .listing-nav-btn {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
  
  .listing-indicators {
    bottom: 80px;
  }
}

.form-managed-file input[type="file"] {
  background: unset !important;
}

/* Profile Page Edit Icons */
.teaser-card {
  position: relative;
}

.teaser-card__edit-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

.edit-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #8B4513;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.edit-icon-link:hover {
  background-color: #8B4513;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.edit-icon-link i {
  font-size: 14px;
}