/* Theme Name: CabinDevinMax Author: Your Name Version: 1.0 */

/* Global Styles */
body {
  margin: 0;
  padding: 0;
  background-color: #fff;
  font-family: "Work Sans", sans-serif;
  scroll-behavior: smooth;
  font-size: 18px;
} 
a {
  color: #000;
  text-decoration: none;
  outline: none !important;
} 

h1, h2, h3, h4, h5, h6 {
  font-family: "Radley", serif;
  font-weight: 400;
} 
.container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.post, .page{
  margin: 0 0 0 0;
}

.booking-info {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 5px;
  text-align: center;
}

/* Top Bar */
.top-bar {
  background-color: #000;
  color: #fff;
  padding: 10px 0;
  font-size: 0.9rem;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar .contact-info a{
  text-decoration: underline;
}

.top-bar .contact-info a.contact-link{
  text-decoration: none;
  color: #fff;
  margin-right: 25px;
}

.top-bar .contact-info a:hover, .language-switcher a:hover, .page-content a:hover, .footer-column a:hover, .footer-bottom a:hover {
  text-decoration: underline;
}

.language-switcher a {
  color: #fff;
  margin-left: 10px;
  text-transform: uppercase;
}
.language-switcher a.current-lang {
  text-decoration: underline;
}

/* Language Switcher Adjustments */
.language-switcher .lang-link {
  /* display: none; Hide all language links by default */
}

.language-switcher .lang-link.current-lang {
  display: inline-block; /* Show only the current language (SK) */
  text-decoration: underline; /* Underline SK */
  text-decoration-thickness: 2px; /* Adjust thickness as needed */
  text-decoration-color: currentColor; /* Use the link's color for the underline */
}

/* Navigation Active State with ::after Underline */
.nav-list .nav-item {
  position: relative; /* Ensure positioning context for ::after */
}

.nav-list .nav-item a {
  position: relative; /* Ensure the link has positioning context */
}

.nav-list .nav-item a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #000;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-in-out;
}

.nav-list .current-menu-item a::after {
  transform: scaleX(1); /* Show underline on active item */
}

/* Exclude underline for Rezervovat pobyt and Contact */
.nav-list .menu-item-rezervovat-pobyt.current-menu-item a::after,
.nav-list .menu-item-contact.current-menu-item a::after {
  transform: scaleX(0); /* Prevent underline on these items when active */
}

.display-7{
  font-size: 2em;
}

.booking-text{
  margin-top: 1rem;
  text-align: center;
  width: 100%;
}

h3.h4{
 /* min-height: 58px; */
}

/* Header */
.header-section {
  background-color: #fff;
  padding: 20px 0;
}
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.header-logo {
  margin: 15px 0;
}
.header-logo img {
  width: 200px;
}
.header-logo .site-title {
  font-size: 1.5rem;
}
.navigation {
  display: flex;
  justify-content: center;
}
.nav-list {
  display: flex;
  list-style: none;
  margin: 20px 0 15px;
  padding: 0;
  gap: 20px;
}
.nav-item {
  padding: 0 10px;
}
.nav-item a {
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 2px;
}
.nav-item a:hover {
  text-decoration: none;
}
.nav-item a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #000;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-in-out;
}
.nav-item a:hover::after {
  transform: scaleX(1);
}
.hamburger-menu {
  position: absolute;
  top: 48px;
  right: 15px;
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}
.hamburger-menu span {
  width: 29px;
  height: 3px;
  background-color: #000;
  margin: 3px 0;
  transition: 0.3s;
}
.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}
.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #f4a261; /* Orange to match the search button */
  z-index: 1000;
  transition: width 0.2s ease;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #000; /* Orange to match search button */
  color: #fff;
  padding: 10px; /* Adjusted for icon-only */
  border-radius: 50%;
  font-size: 24px; /* Larger font-size for the icon */
  line-height: 1;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100px); /* Start off-screen at the bottom */
  transition: all 0.5s ease;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0); /* Animate to its final position */
}

.back-to-top:hover {
  opacity: 0.8;
}

.flatpickr-input[readonly]{
  width: 166px;
  text-align: center;
  font-size: 1rem;
  padding: 8px;
  border-radius: 400px;
}

#guests{
  border-radius: 100px;
  border-color: #ccc;
  padding: 11px 20px;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 720px;
  background: url('../img/hero-image.webp') no-repeat bottom center/cover;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-content {
  width: 100%;
  max-width: 1015px;
  text-align: center;
  margin-bottom: -50px;
}
 
/* Booking Form */
.booking-form {
  background-color: #fff;
  padding: 20px 30px;
  border-radius: 50px; 
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  max-width: 1000px;
  position: relative;
  z-index: 2;
} 

.form-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.form-group label {
  font-size: 1rem;
  color: #333;
  white-space: nowrap;
}
.form-group input[type="date"], .form-group select {
  padding: 10px 20px;
  border: 1px solid #eee;
  background-color: #fff;
  border-radius: 5px;
  font-size: 0.9rem;
  color: #333;
  width: 100%;
  flex: 1;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 18px; /* Match body font-size */
  font-weight: 500;
  text-align: center;
  text-decoration: none; /* Prevent text underline */
  opacity: 1;
  transition: all 0.3s ease, opacity 0.3s ease; /* Fade animation */
  cursor: pointer;
}


.btn:hover {
  opacity: 1; /* Fade effect on hover */
  text-decoration: none; /* Ensure no underline on hover */
}
.btn:focus {
  text-decoration: none; /* Ensure no underline on focus */
  outline: none;
}

.btn.reserv:hover{
  border: 2px solid #122836;
}

.btn-primary {
  background-color: #ffbe4f;
  color: #fff;
  border: none;
  width: 250px;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #ffd68f;
  color: #fff;
  opacity: 1;
}

.btn.btn-primary:active{
  background-color: #ffd68f;
  color: #fff;
  opacity: 1;
  margin-top: 5px;
}

.btn-outlined {
  background: transparent;
  border: 2px solid #000;
  color: #000;
}
.btn-outlined:hover,
.btn-outlined:focus {
  background: #000;
  color: #fff;
  opacity: 1;
}
.btn-outlined-light {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.btn-outlined-light:hover,
.btn-outlined-light:focus {
  background: #fff;
  color: #1a2e35;
  opacity: 1;
}
.pe-7{
  padding-right: 5.9rem;
}

.cky-notice-btn-wrapper button{
  border-radius: 200px;
}

/* Services Page Styles */

/* Service Image Styling (Updated) */
.service-image {
  height: 310px;
  object-fit: cover;
  width: 100%;
  position: relative; /* Added to ensure positioning context for bio-tag and price-box */
}

/* Bio Tag Styling */
.bio-tag {
  position: absolute;
  bottom: 16px;
  left: 0px;
  background-color: #8ab100;
  color: #fff;
  padding: 5px 13px;
  border-radius: 1rem;
  font-size: 0.9em;
  font-weight: bold;
  z-index: 1;
}

/* Ensure price-box remains on the right */
.price-box {
  position: absolute;
  bottom: 16px;
  right: 0px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 1rem;
  font-size: 0.9em;
  font-weight: bold;
  z-index: 1;
}

.btn-full-white {
  background: white;
  border: 2px solid #fff;
  color: #122836;
}
.btn-full-white:hover,
.btn-full-white:focus {
  background: #fff;
  color: #1a2e35;
  opacity: 1;
}
.search-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

/* Intro Section */
.intro-section {
  background-color: #122836;
  color: #fff;
  padding: 80px 0 60px;
  position: relative;
  z-index: 1;
}
.intro-title {
  font-size: 100px;
  line-height: 1.1;
  margin-bottom: 30px;
  text-align: center;
}
.intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 600px;
  margin: 0 auto;
}
.intro-text {
  text-align: center;
}
.intro-text p {
  font-size: 18px;
  line-height: 1.8;
  margin: 0;
}
.intro-images {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.intro-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.feature-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem; /* Matches Bootstrap's g-3 spacing */
}

.feature-item {
  flex: 0 0 18%; /* Slightly less than 20% to account for gap */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-item img {
  height: 65px; /* Set uniform height */
  width: auto; /* Auto width to maintain aspect ratio */
  max-width: 100%; /* Ensure it doesn't exceed container */
}

.cenafeat{
  background: #fff;
  color: #122836;
  padding: .4em 1em;
  border-radius: 100px;
  margin-top: 1em;
  display: inline-block;
}

.hero-section.small{
  background-color: rgba(0, 0, 0, 0);
  background-position-x: 0%, center;
  background-position-y: calc(50% + 81px);
  background-repeat: repeat, no-repeat;
  background-attachment: scroll, scroll;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("../img/okolie-hero.webp");
  background-size: auto, cover;
  background-origin: padding-box, padding-box;
  background-clip: border-box, border-box;
  height: 30vh;
}

.fancybox-content{
  border-radius: 15px;
}

.modal-body ul{
  margin-left: 1.2em;
  padding-top: 1em;
}

.fancybox-wrap .fancybox-image, .fancybox-skin{
  border-radius: .7em;
}

/* Mobile-friendly adjustment: one feature per line on screens up to 768px */
@media (max-width: 768px) {
  .feature-item {
    flex: 0 0 100%; /* Full width for one per line */
  }
}

/* Reservation Button Section */
.reservation-button-section {
  width: 100%;
  background: transparent;
  padding: 20px 0;
}
.reservation-button-container {
  text-align: center;
}

/* Gallery Section */
.gallery-section {
  background-color: #fff;
  padding: 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0;
}
.gallery-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.modal-content{
  border-radius: 15px;
}

.fancybox-image{
  border-radius: 15px;
}

.basket-contents-link{
  text-decoration: underline;
}

.wpsbc-legend .wpsbc-legend-item-icon.wpsbc-legend-item-icon-1{
  border: 1px solid #999;
}

.hero-section.about{
  background-color: rgba(0, 0, 0, 0);
  background-position-x: 0%, center;
  background-position-y: calc(50% + 104px);
  background-repeat: repeat, no-repeat;
  background-attachment: scroll, scroll;
  background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url("../img/cabin-about.webp");
  background-size: auto, auto; background-origin: padding-box, padding-box;
  background-clip: border-box, border-box; height: 800px; text-shadow: rgba(0, 0, 0, 0.5) 1px 1px 3px;
}

.hero-section.vineyard{
  background-color: rgba(0, 0, 0, 0);
  background-position-x: bottom;
  background-position-y: calc(50% + 0px);
  background-repeat: no-repeat;
  background-attachment: scroll, scroll;
  background-image: url("../img/services/services-hero.webp");
  background-size: 100%, auto;
  background-origin: padding-box, padding-box;
  background-clip: border-box, border-box;
  height: 30vh;
}

.hero-section.kontakto{
  background-color: rgba(0, 0, 0, 0);
  background-position-x: bottom;
  background-position-y: calc(50% + 0px);
  background-repeat: no-repeat;
  background-attachment: scroll, scroll;
  background-image: url("../img/contact-hero.webp");
  background-size: 100%, auto;
  background-origin: padding-box, padding-box;
  background-clip: border-box, border-box;
  height: 30vh;
}



/* Features Section */
.features-section {
  background-color: #fff;
  padding: 6em 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.7rem;
}
.feature-item.nobot {
 /* margin-bottom: 0;*/
}
.features-content {
  padding-left: 6rem;
}
.feature-icon {
  width: auto;
  height: 60px;
  margin-bottom: 18px;
}
.feature-item p {
  margin: 0;
  color: #333;
  line-height: 1.4;
}
.features-title {
  font-size: 2.5rem;
  position: relative;
}
.features-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -17px;
  width: 74px;
  height: 2px;
  background-color: #333;
}
.features-text {
  line-height: 1.6;
  color: #333;
}

.bg-dark{
  background-color: #122836 !important;
}

/* References Section */
.references-section {
  background-color: #122836;
  background-image: url('../img/mountains-vector.webp');
  background-position: top center;
  background-size: auto 60px;
  background-repeat: repeat-x;
  padding: 6rem 0 2rem;
  color: #fff;
}
.reference-title {
  font-size: 2.5rem;
  position: relative;
  color: #fff;
}
.reference-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: #fff;
}
.reference-item {
  background-color: transparent;
  padding: 20px;
  color: #fff;
  border-radius: 10px;
}

.hritem{
  width: 50px;
  margin: 42px auto 50px auto;
}
.reference-text {
  color: #fff;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}
/* Default for all browsers */
.star-rating {
  color: #edc013;
  font-size: 23px;
} 

/* WebKit-only override (Safari, older iOS Chrome, etc.) */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .star-rating {
    font-size: 23px;
  }
}
.reference-signature {
  width: 120px;
  height: auto;
}
.reference-signature.wide {
  width: 220px;
}

/* Gallery Carousel Section */
.gallery-carousel {
  background-color: #fff;
  padding: 70px 0;
  overflow: hidden;
}
.carousel-wrapper {
  width: 100%;
  overflow: hidden;
  padding: 0 15px;
}
.carousel-track {
  display: flex;
  width: calc(200% + 40px);
  animation: scroll-left 30s linear infinite;
}
.carousel-image {
  width: 500px;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  margin-right: 20px;
  flex-shrink: 0;
}
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% - 20px));
  }
}

/* Space Section */
.space-section {
  background-color: #fff;
  color: #fff;
  padding: 0 0 80px;
  position: relative;
  overflow: hidden;
}
.space-section .container {
  background: #000 url('../img/earth.webp') no-repeat bottom right;
  background-size: 900px auto;
  border-radius: 13px;
  padding: 4em 1em;
}
.space-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}
.space-title {
  font-size: 5.5rem;
  line-height: 1;
  margin-bottom: 0.4em;
}
.space-text {
  line-height: 1.8;
  margin-bottom: 30px;
  max-width: 500px;
}

/* Page Section */
.page-section {
  padding: 60px 0;
  background-color: #fff;
  color: #333;
}
.page-header {
  text-align: center;
  margin-bottom: 40px;
}
.page-title {
  font-size: 2.5rem;
  color: #000;
}
.page-content {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}
.page-content p {
  margin-bottom: 20px;
}
.page-content a {
  color: #f5c518;
}

/* Footer Section */
.footer-section {
  background: #fff url('../img/footer-image.webp') no-repeat bottom;
  color: #000;
  padding: 60px 0 0;
  height: 640px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 20px;
}
.footer-section p, .footer-content p {
  line-height: 2.2;
  font-size: 1.1rem;
}
.footer-column {
  flex: 1;
}
.footer-title {
  font-size: 1.9rem;
  margin-bottom: 42px;
  position: relative;
}
.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 40px;
  height: 2px;
  background-color: #000;
}
.footer-column a {
  font-size: 1.1rem;
}
.social-links {
  display: flex;
  gap: 26px;
}
.social-icon img {
  width: 34px;
  height: 34px;
  transition: all 0.3s ease;
}
.social-icon:hover img {
  transform: scale(1.2);
}
.footer-bottom {
  text-align: left;
  font-size: 1.1rem;
  padding: 20px 0;
}
.footer-bottom p {
  margin: 5px 0;
}
.footer-image {
  text-align: center;
  padding: 20px 0;
}
.footer-image img {
  max-width: 100%;
  height: auto;
}

.rounded{
  border-radius: 1rem !important;
}

/* Contact Page Inline and Custom Styles */
/* Contact Page Inline and Custom Styles */

/* Map Section */
.map-section {
  padding-right: 3em;
}

.map-container {
  height: 800px;
  background: #ccc;
  border-radius: 1.5rem;
  overflow: hidden;
}

.map-container iframe {
  border: 0;
}

/* Contact Info for Contact Page */
.contact-page-info {
  word-wrap: break-word; /* Ensure text wraps on small screens */
}

/* Small icons for contact page */
.contact-page-info .small-icon {
  font-size: 0.9rem; /* Ensure icons are appropriately sized */
}

/* Ensure proper spacing for contact page paragraphs */
.contact-page-info p {
  font-size: 1em; /* Reset font size to default for contact page */
  line-height: 1.6em; /* Improve readability */
}

/* Links in contact page */
.contact-page-info a {
  color: #000; /* Ensure links are black as per template */
}

.contact-page-info a:hover {
  text-decoration: underline; /* Keep hover effect consistent */
}

/* Ensure headings have proper spacing */
.contact-page-info h3 {
  font-size: 1.5rem; /* Match default h3 size */
}

@media (min-width: 1600px) {
  .hero-section.about {
    height: 920px;
  }
}

.cta-section .konta {
  max-width: 460px;
  margin: 0 auto;
}

.cta-section .konta a:hover {
  text-decoration: underline !important;
}

.hero-section.about {
  position: relative;
  height: 720px;
  background: url('../img/cabin-about.webp') no-repeat bottom center/cover;
  background-position-y: bottom;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-shadow: rgba(0, 0, 0, 0.5) 1px 1px 3px;
}

.hero-section.dusu {
  background-image: url('../img/okolie-hero.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  height: 30vh;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .top-bar-content {
    flex-direction: row; /* Keep items in a single row */
    justify-content: space-between; /* Distribute space evenly */
    align-items: center; /* Vertically center items */
    gap: 0; /* Remove gap to fit items in one line */
  }

  .top-bar .contact-info {
    display: flex; /* Ensure phone and email are in a row */
    align-items: center; /* Vertically center phone and email */
    padding: 0 1rem 0 0; /* Keep padding for mobile */
  }

  .top-bar .contact-info a.contact-link {
    margin-right: 15px; /* Reduce margin to fit items better */
    font-size: 0.8rem; /* Slightly reduce font size for better fit */
  }

  .language-switcher {
    margin-top: 0; /* Remove margin-top to align with other items */
    display: flex; /* Ensure language switcher items are in a row */
    align-items: center; /* Vertically center language switcher */
  }

  .language-switcher a {
    margin-left: 5px; /* Reduce margin for better fit */
    font-size: 0.8rem; /* Slightly reduce font size for better fit */
  }

  .booking-form {
    display: none;
  }
  
  .map-section {
    padding-right: .7em;
  }

  .map-container {
    height: 400px; /* Reduced map height on mobile */
  }

  .footer-section {
    height: auto;
    background-size: 950px;
  }

  .header-logo img {
    width: 160px;
  }

  .navigation.active {
    background: #fff;
    background-size: 160px;
  }

    .navigation.active a{
      font-size: 1.5em;
    }

  .navigation.active .header-logo a img {
    opacity: 0.2 !important;
  }

  .navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    padding: 60px 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
  }
  .navigation.active {
    transform: translateX(0);
    padding-top: 74px;
  }
  .nav-list {
    flex-direction: column;
    align-items: center;
  }
  .nav-item {
    margin: 10px 0;
  }
  .nav-item a {
    font-size: 1.4rem;
  }
  .nav-item a:hover {
    text-decoration: none;
  }
  .hamburger-menu {
    display: flex;
  }
  .hamburger-menu span {
    border-radius: 20px;
  }
  body.home .hero-section {
    height: 380px;
    background-size: 910px auto !important;
    background-repeat: no-repeat;
    background-image: url('../img/hero-image.webp');
  }
  .hero-content {
    margin-bottom: -30px;
  }

.features-section .row.g-5 {
  --bs-gutter-x: 1.5rem; /* Override Bootstrap's default gutter to fix horizontal scroll */
}

  /* Fix the width of the .col-md-6 to prevent overflow */
  .features-section .col-md-6 {
    width: 100% !important; /* Override inline width: 600px to ensure it fits the viewport */
    padding-right: 0.75rem !important; /* Match the new gutter (1.5rem / 2) */
    padding-left: 0.75rem !important; /* Match the new gutter (1.5rem / 2) */
  }

  .booking-form {
    flex-direction: column;
    padding: 15px;
    gap: 15px;
    border-radius: 30px;
    max-width: 90%;
  }

  .contact-page-info {
    padding-left: 0;
    padding-right: 0;
  }

  .form-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .form-group label, .form-group input[type="date"], .form-group select {
    width: 100%;
  }
  .btn-primary {
    width: 100%;
    padding: 12px;
  }
  .intro-section {
    padding: 60px 0 40px;
    margin-top: 0px;
  }
  .intro-title {
    font-size: 52px;
  }
  .intro-content {
    gap: 20px;
    max-width: 90%;
  }

  .intro-images {
    width: 100%;
  }
  .intro-image {
    height: 150px;
  }
  .btn-outlined-light {

  }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto);
  }
  .gallery-image {
    height: 200px;
  }
  .space-section .container {
    border-radius: 0;
  }

  .features-section {
    padding: 4em 0;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .features-content {
    padding-left: 0;
  }
  .features-title {
    font-size: 2rem;
    text-align: center;
  }
  .features-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .features-text, .intro-text p, .space-text {
    font-size: .9em;
    text-align: center;
  }

  .space-section a {
    background-color: #fff;
    color: #000;
  }

  .display-7 {
    font-size: 1em;
  }

  .about-cabin-main .hero-section {
    background-color: rgba(0, 0, 0, 0);
    background-position-x: 0%, center;
    background-position-y: calc(50% + 104px);
    background-repeat: repeat, no-repeat;
    background-attachment: scroll, scroll;
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url("../img/cabin-about.webp");
    background-size: auto, 790px; background-origin: padding-box, padding-box;
    background-clip: border-box, border-box;
    height: 328px;
    text-shadow: rgba(0, 0, 0, 0.5) 1px 1px 3px;
  }

  .about-cabin-main p.lead.fs-4 {
    max-width: 88%;
    margin: 0 auto;
  }

  .about-cabin-main h1.display-3 {
    max-width: 85%;
    margin: 0 auto;
  }

  .about-cabin-main h2.sukromne {
    width: 100%;
    margin: 0 auto;
  }

  .about-cabin-main h2.zariadena {
    max-width: 100%;
    margin: 20px auto 0;
  }

  .pe-7 {
    padding-right: 0;
  }

  .vineyard-section .col-lg-6.ps-5 {
    padding-left: 12px !important;
  }

  .vineyard-section .display-4.mb-4.text-center.text-md-start {
    padding-top: 0.8em;
  }

  .vineyard-section {
    padding-bottom: 1em !important;
  }

  #parking {
    padding-bottom: 0 !important;
  }

  .cta-section .txtor {
    max-width: 292px;
  }

  .hero-section.vineyard {
    background-color: rgba(0, 0, 0, 0);
    background-position-x: 0%, center;
    background-position-y: calc(50% + 0px);
    background-repeat: no-repeat;
    background-attachment: scroll, scroll;
    background-image: url("../img/services/services-hero.webp");
    background-size: 1700px , auto;
    background-origin: padding-box, padding-box;
    background-clip: border-box, border-box;
    height: 30vh;
  }

  .hero-section.kontakto {
    background-color: rgba(0, 0, 0, 0);
    background-position-x: 0%, center;
    background-position-y: calc(50% + 0px);
    background-repeat: no-repeat;
    background-attachment: scroll, scroll;
    background-image: url("../img/contact-hero.webp");
    background-size: 1700px , auto;
    background-origin: padding-box, padding-box;
    background-clip: border-box, border-box;
    height: 30vh;
  }

  .hero-section.dusu {
    background-image: url('../img/okolie-hero.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 900px auto;
    height: 30vh;
  }

  .container {
    padding-left: .9em;
    padding-right: .9em;
  }

  .btn-outlined {
    display: block;
    margin: 0 auto;
    text-align: center;
    width: 50%;
  }
  .references-section {
    padding: 40px 0;
  }
  .reference-title {
    font-size: 2rem;
    margin-top: 3rem;
  }
  .reference-text {
    font-size: 0.9rem;
  }
  .star-rating {
    font-size: 1rem;
  }
  .reference-signature {
    width: 100px;
  }
  .space-section {
    padding: 0 0 60px;
  }
  .space-section .container {
    background-size: 600px auto;
  }
  .space-content {
    max-width: 90%;
    text-align: center;
  }
  .space-title {
    font-size: 2.5rem;
  }
  .page-section {
    padding: 40px 0;
  }
  .page-title {
    font-size: 2rem;
  }
  .page-content {
    font-size: 1rem;
  }
  .footer-content {
    flex-direction: column;
    gap: 30px;
  }
  .footer-column {
    text-align: center;
  }
  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .social-links {
    justify-content: center;
  }
  .footer-bottom {
    font-size: 0.8rem;
  }
  .gallery-carousel {
    padding: 20px 0;
  }
  .carousel-wrapper {
    padding: 0 10px;
  }
  .carousel-image {
    width: 240px;
    height: 170px;
    margin-right: 20px;
  }
  .carousel-track {
    width: calc(200% + 20px);
    animation: scroll-left 20s linear infinite;
  }
  @keyframes scroll-left {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-100% - 10px));
    }
  }
}

@media (min-width: 769px) {
  .hamburger-menu {
    display: none;
  }
  .top-bar .contact-info {
    display: block;
  }
}

/* Inline Styles for Fade-In Animation */
.fade-in-section {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}
.fade-in-section.is-visible {
  opacity: 1;
}
.animate-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-section.is-visible .animate-element:nth-child(1) {
  transition-delay: 0.3s;
}
.fade-in-section.is-visible .animate-element:nth-child(2) {
  transition-delay: 0.5s;
}
.fade-in-section.is-visible .animate-element:nth-child(3) {
  transition-delay: 0.7s;
}
.fade-in-section.is-visible .animate-element {
  opacity: 1;
  transform: translateY(0);
}

/* --- Extracted from inline styles in PHP files --- */

/* For <p class="lead mx-auto" style="max-width: 800px;"> in reservationbox.php */
.lead-max-800 {
  max-width: 800px;
}

/* For <img ... style="max-height: 500px; object-fit: cover;"> in reservationbox.php */
.img-maxh-500-cover {
  max-height: 500px;
  object-fit: cover;
}

/* For <i ... style="font-size: 1.5rem;"> in reservationbox.php */
.icon-1-5rem {
  font-size: 1.5rem;
}

/* For <img ... style="opacity: 1; max-height: 70px;"> in front-page.php and front-pageorig._php.php */
.img-maxh-70 {
  opacity: 1;
  max-height: 70px;
}

/* For <hr style="width: 50px;margin-left: 514px;margin-bottom: 50px;"> in front-pageorig._php.php */
.hr-50-ml514-mb50 {
  width: 50px;
  margin-left: 514px;
  margin-bottom: 50px;
}

/* For <p style="font-size: 0.9em; padding-left: 2.3em; color:#bbb;"> in template-services.php modals */
.modal-note {
  font-size: 0.9em;
  padding-left: 2.3em;
  color: #bbb;
}

/* Startitup logo hover effect on front page */
a[href*="startitup.sk"] .img-maxh-70 {
  transition: transform 0.35s cubic-bezier(.4,2,.6,1), box-shadow 0.35s;
  will-change: transform, box-shadow;
}
a[href*="startitup.sk"]:hover .img-maxh-70,
a[href*="startitup.sk"]:focus .img-maxh-70 {
  transform: scale(1.08) rotate(-2deg);
  filter: brightness(1.08);
}