/* Custom Overrides */

/* Footer Styles */
.main-footer {
  background-color: #273766 !important;
}

.main-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.main-footer__row--last {
  margin-top: 1rem;
}

.main-footer__logo {
  max-width: 200px;
  justify-content: flex-start;
}

.main-footer__logo img {
  height: auto;
}

/* Three column addresses */
.main-footer__addresses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 2rem;
  row-gap: 2rem;
  align-items: start;
  width: 100%;
}

.main-footer__address-column {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0; /* Prevents content from expanding column */
}

.address-title {
  margin-bottom: 0.75rem !important;
  color: var(--color-white);
  font-weight: 400;
  font-size: 1rem;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
}

.address-content {
  color: var(--color-white);
  line-height: 1.3;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.address-company {
  font-weight: 400;
  margin-bottom: 0.1rem;
  min-height: 1.2rem;
}

.address-street {
  margin-bottom: 0.1rem;
  min-height: 1.2rem;
}

.address-city {
  margin-bottom: 0.5rem;
  min-height: 1.2rem;
}

.address-contact {
  display: inline-block;
  margin-top: auto;
}

.address-contact-link {
  color: var(--color-white);
  text-decoration: underline;
  font-weight: 500;
  font-size: 0.95rem;
}

.address-contact-link:hover {
  color: #90a8d1;
  text-decoration: underline;
}

/* Mobile Responsive Design */
@media (max-width: 1024px) {
  .main-footer__addresses {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .main-footer__addresses {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .main-footer__address-column {
    margin-bottom: 1rem;
  }
  
  .address-title {
    font-size: 0.95rem;
    min-height: 2rem;
    margin-bottom: 0.5rem !important;
  }
  
  .address-content {
    font-size: 0.9rem;
  }
  
  .address-company {
    font-weight: 500;
  }
  
  .address-contact-link {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .main-footer__addresses {
    gap: 1rem;
  }
  
  .main-footer__address-column {
    margin-bottom: 0.75rem;
  }
  
  .address-title {
    font-size: 0.9rem;
    min-height: 1.8rem;
  }
  
  .address-content {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
  .address-company {
    font-size: 0.9rem;
  }
  
  .address-street,
  .address-city {
    font-size: 0.85rem;
  }
  
  .address-contact-link {
    font-size: 0.85rem;
    padding: 0.25rem 0;
  }
}

.main-footer__contact {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.main-footer__contact-info {
  display: flex;
  gap: 2rem;
}

.main-footer__contact-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-item {
  color: var(--color-white);
  font-size: 0.9rem;
}

.contact-item a {
  color: var(--color-white);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--color-primary);
}

.main-footer__text {
  flex: 1;
  text-align: right;
}

.main-footer__legaltext {
  color: var(--color-white);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Legal menu */
.nav--legal ul {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav--legal ul li {
  display: flex;
  align-items: center;
}

.nav--legal ul li:not(:last-child) {
  margin-right: 0.7rem !important;
}

.nav--legal ul li:not(:last-child)::after {
  content: "|";
  margin-left: 0.7rem;
  color: var(--color-white);
}

.nav--legal ul li a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.85rem;
}

.nav--legal ul li a:hover {
  color: #95a7cd;
  text-decoration: none;
}

/* Borlabs Cookie link styling in footer menu */
.nav--legal .borlabs-cookie-open-dialog-preferences,
.nav--legal .borlabs-cookie-open-dialog-preferences * {
  color: var(--color-white) !important;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  background: none !important;
  border: none !important;
  text-transform: uppercase;
}

.nav--legal .borlabs-cookie-open-dialog-preferences:hover,
.nav--legal .borlabs-cookie-open-dialog-preferences:hover *,
.nav--legal .borlabs-cookie-open-dialog-preferences:focus,
.nav--legal .borlabs-cookie-open-dialog-preferences:focus * {
  color: #95a7cd !important;
  text-decoration: none;
  background: none !important;
}

/* Remove any active/current state styling */
.nav--legal .current-menu-item .borlabs-cookie-open-dialog-preferences,
.nav--legal .current-menu-ancestor .borlabs-cookie-open-dialog-preferences {
  text-decoration: none !important;
  color: var(--color-white) !important;
}

/* Override any Borlabs Cookie button default styles */
.nav--legal .borlabs-cookie-open-dialog-preferences button,
.nav--legal .borlabs-cookie-open-dialog-preferences a {
  color: inherit !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  font-size: inherit !important;
  text-decoration: none !important;
  font-family: inherit !important;
  font-weight: inherit !important;
}

/* Hero H1 Color Option - Dark Blue */
.color-darkblue {
  color: #273766 !important;
}

/* Hero Overlay Styles - Only apply when hero has media */
.hero--has-media .hero__content__inner {
  position: absolute;
  inset-inline-start: 0;
  bottom: 12%;

  background-color: rgba(39, 55, 102, 0.85);
  color: #fff;
  min-height: 7rem;

  /* Text offset matches dynamic body gutter */
  padding: 1.25rem 1.5rem 1.25rem calc((100vw - var(--content, 100%)) / 2);

  border-radius: 0;
  text-align: left;
  isolation: isolate;
  z-index: 1;
}

/* Mobile Hero Overlay */
@media (max-width: 767px) {
  .hero--has-media {
    height: auto !important;
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
  }

  .hero--has-media .hero__image {
    position: relative !important;
    width: 100% !important;
    height: 60vh !important;
    min-height: 300px !important;
    order: 1 !important;
  }

  .hero--has-media .hero__inner {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    position: relative !important;
    order: 2 !important;
    width: 100% !important;
  }

  .hero--has-media .hero__content {
    order: 1 !important;
    position: relative !important;
    width: 100% !important;
    display: block !important;
    padding: 0 !important;
  }

  .hero--has-media .hero__content__inner {
    position: relative !important;
    inset-inline-start: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 2rem var(--sidegap, 1.25rem) !important;
    text-align: left !important;
    background-color: rgba(39, 55, 102, 0.9) !important;
    order: 1 !important;
    display: block !important;
    z-index: 10 !important;
    box-sizing: border-box !important;
    min-height: auto !important; 
  }
}

/* Header Styles */
@media (min-width: 1024px) {
  .main-navigation {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    height: auto;
    padding: 0;
    background: transparent;
    border-radius: 0;
  }
  .main-navigation__nav {
    padding: 0;
  }

  #primary-menu-toggle, .main-navigation__image, .main-navigation__services {
    display: none !important;
  }

  .main-header__inner {
    gap: .5rem;
  }
  .main-header__logo {
    height: auto;
    padding-right: 0;
    margin-right: 0;
  }

  .main-navigation__nav .nav.nav--main > ul, .nav--main ul {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 0.9rem;
    height: auto;
  }
  .nav--main ul li a {
    height: auto;
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .main-header {
    --height-header: 110px;
  }
  .main-header__logo img {
    height: auto;
    max-height: 88px;
    width: auto;
  }
}

/* Fix Header Responsive Behavior to Match Body Content */
.main-header__inner.feature {
  grid-column: content !important;
}

/* Ensure header content starts getting gaps at the same breakpoint as body */
@media screen and (min-width: 1315px) {
  .main-header.content {
    --content: min(var(--content-default), 100% - var(--sidegap) * 2);
  }
}

.main-header {
  background-color: #fff;
}

.main-header {
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.main-header--position-reveal:before {
  opacity: 0 !important;
}

.main-header .nav--top a, .main-header .nav--main a {
  color: #273766;
}

/* Header social icons color */
.header-social .socialicons a {
  color: #273766 !important;
}

.header-social .socialicons a:hover {
  color: #273766 !important; /* same as default color; no hover change */
  filter: none;
  text-decoration: none;
}

/* Underline active menu item in header */
.nav--main .current-menu-item > a,
.nav--main .current-menu-ancestor > a,
.nav--top .current-menu-item > a,
.nav--top .current-menu-ancestor > a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

@media (min-width: 1024px) {
  /* Put menu and icons on one line */
  .main-navigation {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .nav--main ul {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 0.9rem;
  }

  .header-social {
    display: flex;
    align-items: center;
    margin-left: auto;
  }
  .header-social .socialicons {
    display: flex;
    gap: .75rem;
  }
}

/* Header & Footer menu link hover color */
.nav--main ul li a:hover,
.nav--main ul li a:focus,
.nav--top a:hover,
.nav--top a:focus,
.nav--legal ul li a:hover,
.nav--legal ul li a:focus {
  color: #95a7cd;
}

/* Make all menu items uppercase */
.nav--main ul li a,
.nav--top ul li a,
.nav--legal ul li a {
  text-transform: uppercase;
}

/* Footer social icons: keep default color on hover */
.main-footer__social .socialicons a {
  color: var(--color-white) !important;
}
.main-footer__social .socialicons a:hover {
  color: var(--color-white) !important;
  filter: none;
  text-decoration: none;
}

/* Ensure footer legal menu hover color wins over .main-footer a:not([class]):hover */
.main-footer .nav--legal .menu > li > a:hover,
.main-footer .nav--legal .menu > li > a:focus {
  color: #95a7cd !important;
}

/* Underline active menu item in footer legal menu (matching header style) */
.main-footer .nav--legal .current-menu-item > a,
.main-footer .nav--legal .current-menu-ancestor > a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  color: var(--color-white) !important; /* Override pink from .nav .current-menu-item */
}

/* Override global .nav current-menu-item pink color for legal menu */
.nav--legal .current-menu-item > a,
.nav--legal .current-menu-ancestor > a {
  color: var(--color-white) !important; /* No pink! Keep it white */
}

/* Keep light blue hover even on current/active items */
.nav--legal .current-menu-item > a:hover,
.nav--legal .current-menu-ancestor > a:hover,
.nav--legal .current-menu-item > a:focus,
.nav--legal .current-menu-ancestor > a:focus {
  color: #95a7cd !important;
}

/* Google Maps marker list - prevent URL overflow and overlapping */
.sw-googlemap-categories-row {
  display: flex !important;
  gap: 2em !important;
  margin-top: 2em !important;
}

.sw-googlemap-marker-list a {
  word-break: break-all !important;
  overflow-wrap: break-word !important;
  display: inline-block !important;
  max-width: 100% !important;
}

.sw-googlemap-marker-list li {
  margin-bottom: 1.5em !important;
}

/* Tablet view - reduce to 2 columns or stack */
@media (max-width: 1024px) {
  .sw-googlemap-categories-row {
    flex-direction: column !important;
    gap: 1em !important;
  }
  
  .sw-googlemap-category-col {
    width: 100% !important;
    min-width: 100% !important;
  }
}

/* Remove accordion gap on mobile */
@media (max-width: 768px) {
  .sw-accordion-set.columns-2 {
    gap: 0 !important;
    grid-template-columns: 1fr !important; /* Stack columns on mobile */
  }
  
  .sw-googlemap-categories-row {
    gap: 0.5em !important;
  }
}

/* Mobile responsive adjustments - Extended to include tablets */
@media (max-width: 1023px) {
  .main-header__inner {
    flex-wrap: nowrap;
    overflow: hidden;
  }
  
  .main-header__logo {
    max-width: 60%;
    flex-shrink: 0;
    height: auto;
    padding-right: 1rem; /* Add some spacing */
  }
  
  .main-header__logo img {
    height: auto !important; /* Override height: 100% */
    max-height: 70px;
    width: auto;
  }
  
  .main-navigation {
    flex-shrink: 0;
  }
  
  .hamburger, #primary-menu-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .main-header .hamburger .line {
    background-color: var(--color-black) !important;
  }
  
  .main-header--color-light .hamburger .line {
    background-color: var(--color-black) !important;
  }
  
  .main-navigation.is-active {
    transform: translateX(0) !important;
    opacity: 1 !important;
  }
  
  .main-navigation .header-social {
    display: flex !important;
    margin-left: auto;
    gap: 0.75rem;
  }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
  .main-header__logo {
    max-width: 40%;
  }
  
  .main-header__logo img {
    max-height: 80px;
  }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
  .main-header__logo {
    max-width: 65%;
  }
  
  .main-header__logo img {
    max-height: 60px;
  }
}

.sw-iconlist__icon {
    width: auto !important;
    flex: 0 0 auto !important; 
    margin-right: 1rem !important; 
    margin-left: 0 !important; 
    padding-left: 0 !important; 
    min-width: 18px !important; 
    max-width: 36px !important; 
}

.sw-iconlist__icon i {
    font-size: inherit !important; 
}

.sw-iconlist__icon img {
    width: auto !important;
    height: auto !important;
    max-width: 28px !important;  
    max-height: 28px !important;   
    object-fit: contain !important;
}




/* =====================
   Additional overrides
   ===================== */

@media (min-width: 1024px) {
  .main-navigation { column-gap: 1.25rem; }
  .header-social { padding-left: 1.25rem; }
}

/* Hero sizes - Only apply when hero has media (image/video with overlay) */
@media (min-width: 1024px) {
  .hero.hero--has-media .hero__content__inner .hero__title {
    font-size: 35px !important;
    line-height: 1.15;
  }
  .hero.hero--has-media .hero__content__inner .hero__text {
    font-size: 18px !important;
    line-height: 1.5;
  }
}
@media (max-width: 1023px) {
  .hero.hero--has-media .hero__content__inner .hero__title { font-size: 28px !important; }
  .hero.hero--has-media .hero__content__inner .hero__text { font-size: 16px !important; }
}

.kranhallen-carousel .elementor-swiper-button-prev { left: -40px !important; }
.kranhallen-carousel .elementor-swiper-button-next { right: -40px !important; }

.testimonial-carousel .elementor-swiper-button-prev { left: -27px !important; }
.testimonial-carousel .elementor-swiper-button-next { right: -27px !important; }

.gap-tight-8 { --card-padding: 8px !important; }

/* Elementor form layout (Aschaffenburg) — superseded by .form-aschaf in _forms.scss
.elementor-element-8fe5a33 .elementor-form .elementor-form-fields-wrapper{
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(24px, 6vw, 80px);
  row-gap: clamp(14px, 3vw, 28px);
}
.elementor-element-8fe5a33 .elementor-form .elementor-field-group:nth-child(-n+4){
  margin-bottom: 50px !important;
  align-items: flex-start !important;
}
.elementor-element-8fe5a33 .elementor-form .elementor-field-group.elementor-field-type-textarea{
  grid-column: 2;
  grid-row: 1 / span 3;
}
.elementor-element-8fe5a33 .elementor-form .elementor-field-group.elementor-field-type-textarea .elementor-field-textual{
  min-height: 120px;
  border-width: 0 0 1px 0;
  resize: vertical;
  padding-left: 0;
}
.elementor-element-8fe5a33 .elementor-form .elementor-field-label{
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #95A7CD;
  margin-bottom: 0;
}
.elementor-element-8fe5a33 .elementor-form .elementor-field-textual{
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--color-text);
  background: transparent !important;
  padding: 0 0;
}
.elementor-element-8fe5a33 #form-field-field_f71a87b.elementor-field-textual{
  width: 140px;
  border: 0;
  background: #EBEDF2 !important;
  padding: .75rem 1rem;
  line-height: 1;
  border-radius: 6px;
}
.elementor-element-8fe5a33 .elementor-form .elementor-field-group.elementor-field-type-acceptance,
.elementor-element-8fe5a33 .elementor-form .e-form__buttons{
  grid-column: 1;
}
.elementor-element-8fe5a33 .elementor-form .elementor-button[type="submit"]{
  padding: .8rem 1.5rem !important;
}
@media (min-width: 1025px){
  .elementor-element-8fe5a33 .elementor-form .elementor-form-fields-wrapper{ align-items: start; }
}
*/

/* Pill navigation */
.pill-nav .elementor-nav-menu--main .menu-item > a {
  background: #213C74;
  color: #fff;
  padding: 10px 18px;
  border-radius: 4px;
  line-height: 1.2;
}
.pill-nav .elementor-nav-menu--main .menu-item { margin: 0 12px; }
@media (max-width: 1024px) {
  .pill-nav .elementor-nav-menu--main .menu-item { margin-bottom:12px; }
}
.pill-nav .elementor-nav-menu--main .menu-item > a:hover { filter: brightness(1.05); }
.pill-nav .elementor-nav-menu--main .current-menu-item > a,
.pill-nav .elementor-nav-menu--main .current-menu-ancestor > a {
  background: #95A7C7;
  color: #fff;
}

/* sw-accordion styles */
.sw-accordion-set { width: 100%; }
.sw-accordion { border-bottom: 2px solid #273766; }
.sw-accordion:first-child { border-top: 0 !important; }
.sw-accordion__header { position: relative; }
.sw-accordion__header .accordion-toggle {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 18px 0 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.sw-accordion__header .accordion-toggle:focus-visible { outline: 2px solid rgba(39,55,102,.35); outline-offset: 2px; }
.sw-accordion__header .accordion-toggle > [class^="h"],
.sw-accordion__header .accordion-toggle > h1,
.sw-accordion__header .accordion-toggle > h2,
.sw-accordion__header .accordion-toggle > h3,
.sw-accordion__header .accordion-toggle > h4,
.sw-accordion__header .accordion-toggle > h5,
.sw-accordion__header .accordion-toggle > h6 { margin: 0; color: #273766; }
.sw-accordion .accordion-toggle::after { content: none !important; background: none !important; background-image: none !important; width: 0 !important; height: 0 !important; margin: 0 !important; }
.sw-accordion__content { padding: 0 0 8px 0; }
.sw-accordion__content > p {
  margin: 5px 0 40px;
}

/* sw-accordion link color */
.sw-accordion__content a {
  color: #95A7CD !important;
}
.sw-accordion__content a:hover,
.sw-accordion__content a:focus {
  color: #95A7CD !important;
}

@media (max-width: 767px) {
  .sw-accordion-set[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

.sw-accordion {
  --n-accordion-title-font-size: 1.75rem; /* Default h3 size */
}

.sw-accordion .accordion-toggle h1,
.sw-accordion .accordion-toggle h2,
.sw-accordion .accordion-toggle h3,
.sw-accordion .accordion-toggle h4,
.sw-accordion .accordion-toggle h5,
.sw-accordion .accordion-toggle h6 {
  font-size: var(--n-accordion-title-font-size) !important;
}

/* sw-tabs styles */
.sw-tabs,
.sw-tabs * {
	box-sizing: border-box;
}

.sw-tabs {
	--sw-tabs-primary: #243966;
	--sw-tabs-pill-bg: #273766;
	--sw-tabs-pill-active: #95A7CD;
	--gap-x: 48px;
	--gap-y: 24px;
	--maxw: 1200px;
	display: block;
	margin: 0 auto;
}

.sw-tabs__pills {
	display: flex;
	flex-wrap: wrap;
  justify-content: center;
	gap: 12px;
	margin: 0 0 32px 0;
}

.sw-tabs__pill {
	background: var(--sw-tabs-pill-bg);
	color: #fff;
	border: 0;
	padding: 10px 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s ease, transform .06s ease;
  box-shadow: 0 1.5px 0 rgba(0, 0, 0, 0.8);
}

.sw-tabs__pill:hover {
	background: var(--sw-tabs-pill-active);
}

.sw-tabs__pill[aria-selected="true"],
.sw-tabs__pill.is-active {
	background: var(--sw-tabs-pill-active);
}

.sw-tabs__pill:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.sw-tabs__pill:active {
	transform: translateY(1px);
}

.sw-tabs__panels {
	position: relative;
}

.sw-tabs__panel {
	display: none;
	padding: 22px;
}

.sw-tabs__panel.is-active {
	display: block;
	animation: sw-fade-in .25s ease;
}

.sw-tabs[data-animation="slide"] .sw-tabs__panel.is-active {
	animation: sw-slide-in .35s ease;
}

.sw-tabs__grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: var(--gap-x);
	align-items: start;
}

.sw-tabs__heading {
	color: var(--sw-tabs-primary);
  font-size: clamp(24px, 2.5vw, 35px);
	line-height: 1.15;
	margin: 0 0 16px 0;
	font-weight: 800;
}

.sw-tabs__content {
  font-size: var(--fs-default);
	line-height: 1.7;
}

.sw-tabs__image-wrap {
	width: 100%;
}

.sw-tabs__image {
	width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
}

@media (max-width: 1024px) {
	.sw-tabs__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.sw-tabs__panel {
		padding: 24px;
	}
}

@keyframes sw-fade-in {
	from {
		opacity: 0
	}

	to {
		opacity: 1
	}
}

@keyframes sw-slide-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}

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

/* Google Maps Widget Styles */
.sw-googlemap-category-title {
    font-size: 30px !important;
    color: #273766 !important;
    margin-bottom: 1em !important;
}

.sw-googlemap-marker-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5em;
}

.sw-googlemap-marker-list li::before {
    content: counter(item);
    counter-increment: item;
    background-color: var(--marker-color, #273766);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    margin-right: 0.75em;
    flex-shrink: 0;
    margin-top: 0.1em;
}

.sw-googlemap-marker-list {
    counter-reset: item;
    list-style: none;
    padding: 0;
}

.elementor-widget-testimonial-carousel .elementor-testimonial__image img {
    width: auto;
    border-radius: 0 !important;
}

/* Google Map widget styling */
.sw-googlemap .sw-googlemap-marker-list a {
    color: #95A7CD !important;
    text-decoration: none !important;
}
.sw-googlemap .sw-googlemap-marker-list a:hover,
.sw-googlemap .sw-googlemap-marker-list a:focus {
    color: #95A7CD !important;
    text-decoration: underline !important;
}
.sw-googlemap .sw-googlemap-marker-list div {
    margin: 0 0 1.5em;
    line-height: 1.3;
}
.sw-googlemap .sw-googlemap-marker-list strong,
.sw-googlemap .sw-googlemap-marker-list b {
    font-weight: 700;
}

/* Google Map container responsive aspect ratio */
.sw-googlemap-container {
  width: 100% !important;
  height: 0 !important;
  padding-bottom: 42% !important;
  position: relative !important;
}

.sw-googlemap-container > div {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* Placeholder responsive aspect ratio */
.sw-googlemap-placeholder {
  width: 100%;
  min-height: 400px;
}

.sw-googlemap-placeholder .brlbs-cmpnt-lock-box {
  min-height: 400px !important;
}

/* Tablet */
@media (max-width: 1024px) {
  .sw-googlemap-container {
      padding-bottom: 60% !important;
  }
  
  .sw-googlemap-placeholder .brlbs-cmpnt-lock-box {
      min-height: 350px !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .sw-googlemap-container {
      padding-bottom: 75% !important;
  }
  
  .sw-googlemap-placeholder {
      min-height: 300px;
  }
  
  .sw-googlemap-placeholder .brlbs-cmpnt-lock-box {
      min-height: 300px !important;
      padding: 30px 15px !important;
  }
  
  .brlbs-cmpnt-lock-box__title {
      font-size: 20px !important;
  }
  
  .brlbs-cmpnt-lock-box__text {
      font-size: 14px !important;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .sw-googlemap-container {
      padding-bottom: 100% !important;
  }
  
  .sw-googlemap-placeholder {
      min-height: 280px;
  }
  
  .sw-googlemap-placeholder .brlbs-cmpnt-lock-box {
      min-height: 280px !important;
      padding: 25px 15px !important;
  }
  
  .brlbs-cmpnt-lock-box__title {
      font-size: 18px !important;
  }
  
  .brlbs-btn--accept {
      font-size: 14px !important;
      padding: 10px 20px !important;
  }
}

/* Marker icons bigger with smaller numbers */
.sw-googlemap .sw-googlemap-marker-list li::before {
    font-size: 0.8em !important;
    width: 1.8em !important;
    height: 1.8em !important;
    line-height: 1.8em !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Hero content - feature column when no media */
.hero__content.feature {
  grid-column: feature;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding-top: var(--height-header);
  width: 100%;
}

.hero--has-media .hero__content {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero--has-media .hero__content__inner.wysiwyg {
  background-color: rgba(39, 55, 102, 0.85);
  padding: 2rem 2rem 2rem 0.5rem;
  position: absolute;
  bottom: 12%;
  max-width: 100%;
  width: fit-content;
}

.hero--has-media .hero__content__inner.wysiwyg::before {
  content: '';
  position: absolute;
  width: 100vw;
  height: 100%;
  right: 100%;
  top: 0;
  background-color: rgba(39, 55, 102, 0.85);
}

/* =====================
   404 Page Simple Layout
   ===================== */

/* 404 Hero - simple centered layout */
.error404 .hero.hero--full {
  min-height: 60vh;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error404 .hero__content {
  text-align: center;
  max-width: 700px;
  padding: 3rem 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error404 .hero__content__inner {
  position: relative;
  bottom: auto;
  background-color: transparent;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.error404 .hero__content__inner::before {
  display: none;
}

.error404 .realheadline {
  font-size: 60px;
  margin-bottom: 1rem !important;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: #273766;
}

.error404 .hero__title {
  font-size: 40px;
  margin-bottom: 2rem !important;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  color: #273766;
}

.error404 .hero__text {
  font-size: 30px;
  line-height: 1.5;
  margin-bottom: 2rem !important;
  text-align: center;
}

.error404 .hero__cta {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.error404 .hero__cta .button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  background-color: #273766;
  color: var(--color-white);
  border: none;
  border-radius: 3px;
  line-height: 1;
  text-align: center;
  min-height: 40px;
  margin-top: 1em;
  transform: scale(1);
  transition: transform 0.3s;
}

.error404 .hero__cta .button:hover {
  transform: scale(1.05);
}

/* Tablet adjustments for 404 */
@media (max-width: 1024px) {
  .error404 .realheadline {
    font-size: 50px;
    margin-bottom: 0.8rem !important;
  }
  
  .error404 .hero__title {
    font-size: 35px;
    margin-bottom: 1.75rem !important;
  }
  
  .error404 .hero__text {
    font-size: 26px;
  }
}

/* Mobile adjustments for 404 */
@media (max-width: 768px) {
  .error404 .hero.hero--full {
    min-height: 50vh;
  }
  
  .error404 .hero__content {
    padding: 2rem 0;
    max-width: 90%;
  }
  
  .error404 .hero__content__inner {
    padding: 1.5rem 1rem;
  }
  
  .error404 .realheadline {
    font-size: 40px;
    margin-bottom: 0.75rem !important;
  }
  
  .error404 .hero__title {
    font-size: 25px;
    margin-bottom: 1.5rem !important;
  }
  
  .error404 .hero__text {
    font-size: 20px;
    margin-bottom: 1.5rem !important;
    line-height: 1.4;
  }
  
  .error404 .hero__cta {
    margin-top: 1.5rem;
  }
  
  .error404 .hero__cta .button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    text-align: center;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* Small mobile adjustments for 404 */
@media (max-width: 480px) {
  .error404 .hero.hero--full {
    min-height: auto !important;
    height: auto !important;
    padding: 3rem 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
  }
  
  .error404 .hero__inner {
    display: block !important;
    position: relative !important;
    height: auto !important;
  }
  
  .error404 .hero__content {
    padding: 1rem 0 !important;
    max-width: 95% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .error404 .hero__content__inner {
    padding: 1rem 0.75rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
  }
  
  .error404 .realheadline {
    font-size: 32px;
    margin-bottom: 0.5rem !important;
    color: #273766 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .error404 .hero__title {
    font-size: 20px;
    margin-bottom: 1rem !important;
    color: #273766 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .error404 .hero__text {
    font-size: 18px;
    margin-bottom: 1rem !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .error404 .hero__cta {
    margin-top: 1rem;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .error404 .hero__cta .button {
    max-width: 280px;
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
    min-height: 44px;
    visibility: visible !important;
    opacity: 1 !important;
  }
}