html, body, * {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  /* scroll-behavior: smooth; */ /* Removed to prevent conflict with GSAP */
}

body {
  color: white;
  font-family: 'Cormorant Garamond', serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  width: 100%;
  height: 100%;
  /* Removed animation as it was for the metallic gradient */
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('photos/gallery.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

body.home-page {
}

html, body {
  height: 100%;
}
main {
  flex: 1;
  position: relative;
  z-index: 1;
}

body.lightbox-open {
  overflow: hidden;
}

@keyframes metallicWave {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}


.header {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid gold;
  padding: 20px 1%; /* Adjusted padding to be half of the previous value */
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 5px; /* Further reduced gap */
}

.nav-center {
    display: none;
}


.nav-left a, .nav-right a {
  color: white;
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1em; /* Adjusted font size */
  letter-spacing: 1px;
  padding: 0 15px; /* Adjusted padding */
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-logo {
  height: 40px;
  width: auto;
}

.mobile-logo {
  display: none;
}

.nav-right {
  display: flex;
  gap: 8px; /* Further reduced gap */
  align-items: center; /* Align items vertically in the center */
}

.social-icon img {
  width: 20px; /* Reduced size for social icons */
  height: 20px;
  transition: transform 0.3s ease;
}

.social-icon img:hover {
  transform: scale(1.2);
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: white;
  transition: 0.4s;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  flex-direction: column;
  align-items: center;
}

.mobile-nav a {
  padding: 15px;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid gold;
  color: white;
  text-decoration: none;
}

.mobile-nav.active {
  display: flex;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.footer {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 10px; /* Adjusted padding */
    display: flex;
    justify-content: center; /* Center the columns */
    flex-wrap: wrap;
    position: relative;
    width: 100%;
    border-top: 1px solid gold;
    box-sizing: border-box;
    backdrop-filter: blur(5px);
}

.footer-column {
    flex: 1 1 220px; /* Allow grow, shrink, with a basis of 220px */
    min-width: 220px;
    margin: 20px 15px; /* Vertical and horizontal margin for spacing */
    text-align: left;
}

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:before {
    content: '>';
    margin-right: 10px;
    color: #ccc;
}

.footer-column ul li a:hover {
    color: white;
}

.footer-logo {
    width: 180px; /* Increased size */
    margin-bottom: 20px;
    border-radius: 50%; /* Make it round */
}

.working-hours p {
    margin: 0;
    color: #ccc;
}

.footer-social-icons {
    margin-top: 20px;
}

.footer-social-icons img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
    background-color: #1a1a3d;
    padding: 5px;
}

.contact-info .contact-item {
    margin-bottom: 15px;
    color: #ccc;
}

.contact-info .contact-item:before {
    content: '★'; /* Star icon */
    margin-right: 10px;
    color: pink;
}

.contact-info .contact-item.address::before {
    content: '';
    background-image: url('photos/map.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 27px;
    height: 27px;
    display: inline-block;
    vertical-align: middle;
    color: transparent; /* Hide the original star color */
}

.contact-info .contact-item.phone::before {
    content: '';
    background-image: url('photos/call.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 50px;
    height: 50px;
    display: inline-block;
    vertical-align: middle;
    color: transparent; /* Hide the original star color */
}

.contact-info .employee-contact {
    margin-left: 25px;
    color: #ccc;
}

.pin-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.welcome-text {
  position: relative;
  text-align: center;
  z-index: 2;
  width: 90%;
  margin: 20px auto 0;
}

.welcome-text h2 {
  font-size: 36px;
  color: gold;
  margin-bottom: 30px;
  text-shadow: 1px 1px 5px #000;
}

.welcome-text p {
    color: gold;
    text-shadow: 1px 1px 1px #000;
	font-size: 26px;
}

/* Main content sections */
.index-page main {
  width: 100%;
  padding-top: 60px; /* Move padding from body to main content */
  margin-top: 0; /* Full-screen sections will handle their own spacing */
}

.index-page .full-screen-section {
  min-height: 100vh; /* Ensure it's at least full viewport height, but can expand */
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Align content to the top */
  align-items: center;
  text-align: center;
  position: relative;
}

.index-page .full-screen-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.01); /* Made overlay more transparent */
  z-index: 1;
}

#services-section {
  position: relative;
  overflow: hidden;
}

.index-page .section-content {
  position: relative;
  z-index: 2; /* Ensure content is above overlay */
  max-width: 800px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.00); /* Slightly transparent background for content box */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  box-sizing: border-box; /* Add this to contain padding */
}

.index-page .full-screen-section h2 {
  font-size: 36px;
  color: gold;
  margin-bottom: 30px;
  text-shadow: 1px 1px 5px #000;
}

/* Specific section backgrounds */
.index-page #home-section {
  /* Removed background-image as it's now a separate <img> element */
  background-image: none; /* Explicitly remove */
  background-color: transparent; /* Ensure no background color */
  min-height: auto;
  justify-content: flex-start;
}

.home-logo {
  width: 100%;
  height: auto;
  max-height:100vh;
  z-index: 1;
  position: relative;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

/* Adjustments for existing section styles to fit new full-screen structure */
.section { /* This class is no longer directly used on the main sections, but might be on inner elements */
  padding: 0; /* Remove padding as full-screen-section handles it */
  margin-bottom: 0; /* Remove margin */
  background-color: transparent; /* Remove background */
  box-shadow: none; /* Remove shadow */
}

/* Services Section */
.services-container {
  background-color: rgba(255, 255, 255, 0.01); /* Same as .section background */
  border-radius: 10px; /* Same as .section border-radius */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.01); /* Same as .section box-shadow */
  padding: 20px; /* Padding inside the box */
  max-width: 800px; /* Limit width for the "one box" effect */
  margin: 40px auto; /* Center the box and add vertical margin */
  text-align: center; /* Center all text within this container */
}

.service-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 0 20px;
}

.service-item {
  flex: 0 1 300px; /* Allow shrinking, but don't grow, with a basis of 300px */
  background-color: rgba(0, 0, 0, 0.6);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
  text-decoration: none; /* Remove underline from the entire service-item link */
  color: white; /* Ensure text color is inherited */
  border: 1px solid gold;
}

.service-item:hover {
  transform: translateY(-10px);
  background-color: rgba(0, 0, 0, 0.8);
}

.service-item h3 {
  color: gold;
  font-size: 24px;
  margin-bottom: 10px;
}

.service-item p {
  font-size: 1em; /* Use em for relative font size */
  line-height: 1.6;
}

/* Specific style for service-grid inside services-details.php's container */
.services-container .service-grid {
  display: block; /* Override to block for single column layout */
  padding: 0; /* Remove padding */
  gap: 0; /* Remove gap */
  max-width: 600px; /* Set a max-width to allow centering */
  margin: 0 auto; /* Center the grid within its container */
}


.gallery-row {
    position: relative;
    margin-bottom: 20px;
}

.gallery-slider {
    width: 100%;
    overflow: hidden;
}

.gallery-grid {
    display: flex;
    gap: 10px;
}

.gallery-item {
    flex: 0 0 calc(25% - 7.5px);
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.1);
}

.gallery-prev-button, .gallery-next-button {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
    z-index: 10;
}

.gallery-prev-button {
    left: -50px;
}

.gallery-next-button {
    right: -50px;
}

.gallery-prev-button:hover, .gallery-next-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* --- Final Custom Lightbox Styles --- */
.custom-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.custom-lightbox-content {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#custom-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    transform-origin: center center;
    transition: transform 0.2s ease-out;
    cursor: grab;
}

#custom-lightbox-img:active {
    cursor: grabbing;
}

.custom-lightbox-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 45px;
    color: white;
    cursor: pointer;
    z-index: 2001;
}

.custom-lightbox-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    padding: 5px;
    z-index: 2001;
}

.custom-lightbox-controls button {
    background: none;
    border: 1px solid white;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    cursor: pointer;
}

/* Contact Section */
.section#contact p {
  font-size: 1.1em; /* Use em for relative font size */
  margin-bottom: 0.5em; /* Use em for relative margin */
}

.map-placeholder {
  width: 100%; /* Increased width for better responsiveness */
  max-width: 1200px; /* Added max-width */
  height: 400px; /* Adjusted height for responsiveness */
  background-color: rgba(255, 255, 255, 0.1);
  margin: 2em auto 0; /* Use em for relative margin */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

#contact-section .section-content {
  max-width: 1200px;
}

#contact-section p {
  color: black;
  font-weight: bold;
  font-size: 1.2em;
}
/* Services Details Page Specific Styles */
.services-page-section {
  padding: 40px 20px; /* Adjust padding for this specific section */
}

.services-page-section h2 {
  margin-bottom: 40px; /* More space below title */
}

.gender-filter {
  text-align: center;
  margin: 1.5em 0 2.5em; /* Use em for relative margins */
  font-size: 2em; /* Use em for relative font size */
  color: gold; /* Match header/title color */
  text-shadow: 1px 1px 3px #000;
}

.gender-filter label {
  margin: 0 20px;
  cursor: pointer;
  font-weight: 700;
  transition: color 0.3s ease;
}

.gender-filter label:hover {
  color: white;
}

.gender-filter input[type="radio"] {
  margin-right: 0.5em; /* Use em for relative margin */
  transform: scale(1.2); /* Slightly larger radio buttons */
}

.category-wrapper { /* New class for category container */
  margin-bottom: 10px; /* Space between category wrappers */
  /* Remove box-like styles from here */
  text-align: center; /* Center content within category wrapper */
}

.category-title {
  font-size: 24px;
  color: gold;
  margin-bottom: 10px;
  cursor: pointer;
  padding: 10px 0; /* Reduced padding */
  background-color: transparent; /* Remove background */
  border-radius: 0; /* Remove border-radius */
  box-shadow: none; /* Remove box-shadow */
  transition: color 0.3s ease; /* Only color transition */
  text-align: center;
}

.category-title:hover {
  color: white; /* Change color on hover */
  transform: none; /* Remove transform */
  background-color: transparent; /* Ensure no background change */
}

.subcategory-list {
  display: none; /* Hidden by default, controlled by JS */
  margin-top: 5px; /* Reduced margin */
  padding-left: 0; /* Remove indent */
  border-left: none; /* Remove visual separator */
}

.subcategory-item {
  padding: 0.5em 0; /* Use em for relative padding */
  font-size: 1em; /* Use em for relative font size */
  color: white; /* Default text color */
  position: relative;
  line-height: 1.6;
  transition: color 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05); /* Light background for service items */
  border-radius: 5px;
  margin-bottom: 0.5em; /* Use em for relative margin */
}

.subcategory-item:hover {
  color: gold; /* Highlight on hover */
}

.subcategory-item p {
  margin: 0; /* Remove default paragraph margin */
  text-align: center; /* Center the service name and price */
}

.subcategory-list {
  display: none; /* Hidden by default, controlled by JS */
  margin-top: 5px; /* Reduced margin */
  padding-left: 0; /* Remove indent */
  border-left: none; /* Remove visual separator */
  text-align: center; /* Center the subcategory items */
}


.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 60%;
  margin: 0 auto;
}

.category-grid-item {
  position: relative;
  height: 200px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.category-grid-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.category-grid-item:hover .category-grid-item-overlay {
  background-color: rgba(0, 0, 0, 0.7);
}

.category-grid-item h3 {
  font-size: 24px;
  text-align: center;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.category-grid-item {
  box-shadow: none;
  transition: box-shadow 0.3s ease;
}

.category-grid-item:hover {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.category-grid-item .subcategory-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 0 0 8px 8px;
    z-index: 10;
}

.category-grid-item:hover .subcategory-list {
    display: block;
}

.services-details-main {
    width: 100%;
    padding-top: 80px;
    text-align: center;
    padding-bottom: 50px;
}

.services-details-title {
    font-size: 36px;
    color: gold;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px #000;
}

.category-details-main {
    width: 100%;
    padding: 100px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 80%;
    margin-bottom: 40px;
}

.category-info {
    text-align: center;
}

.category-info h1 {
    font-size: 36px;
    color: gold;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px #000;
}

.category-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid gold;
}

.category-description-bubble {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 15px;
    max-width: 50%;
    color: white;
    text-align: justify;
}

.promotion-details-content {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.promotion-details-content h1 {
    font-size: 2.5em;
    color: gold;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px dashed white;
    padding-bottom: 20px;
    text-shadow:
        1px 1px 0 #fff,   /* горе вляво – светлина */
        -1px -1px 0 #555; /* долу дясно – сянка */
}

.promotion-details-content .promotion-description {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
    border-bottom: 1px dashed white;
    padding-bottom: 20px;
}

.promotion-details-content .promotion-description a {
    color: lightgreen;
    font-style: italic;
    text-decoration: none;
}

.promotion-details-content .promotion-price,
.promotion-details-content .promotion-dates {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.promotion-details-content .promotion-price strong,
.promotion-details-content .promotion-dates strong {
    color: gold;
}

.services-section {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.service-list {
    width: 100%;
}

.service-list ul {
    list-style: none;
    padding: 0;
    margin-left: 0;
}

.service-list li {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.service-list li:hover, .service-list li.selected {
    background-color: rgba(0, 0, 0, 0.8);
}

.service-list h3 {
  color: black;
  font-size: 1.5em;
}

.services-section {
    display: flex;
    width: 80%;
    justify-content: space-between;
}


.back-button {
    display: inline-block;
    margin-top: 10px; /* Reduced margin-top to move the button upwards */
    padding: 10px 20px;
    background-color: gold;
    color: black;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #ffd700;
}


/* Responsive adjustments */
@media (max-width: 768px) {
  body::before {
    background-image: url('photos/gallery-mobile.png');
  }
  .desktop-link {
    display: none;
  }
  .mobile-logo {
    display: block;
  }
  .mobile-logo .nav-logo {
    border-radius: 50%;
  }
  .header {
    padding: 20px 1%; /* Adjusted padding to be half */
  }
  .main-title {
    font-size: 20px;
    margin-bottom: 2px;
  }
  .navbar {
    justify-content: space-between;
    align-items: center;
  }
  .nav-left {
      display: none;
  }
  .nav-center {
      display: block;
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
  }
  .nav-right {
      margin-left: auto;
  }
  .hamburger {
      display: block;
      margin-left: 10px;
  }
  .nav-left a, .nav-right a {
    font-size: 1em; /* Adjusted font size */
    padding: 5px 10px; /* Adjusted padding */
  }
  main {
    padding: 10px;
    padding-top: 70px;
    margin-top: 0; /* Full-screen sections will handle their own spacing */
  }
  .section {
    padding: 30px 10px;
    margin-bottom: 20px;
  }
  .section h2 {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .gallery-slider {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
  }
  .gallery-slider::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
  }
  .gallery-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .gallery-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
  }
  .gallery-prev-button, .gallery-next-button,
  .lightbox .prev-button, .lightbox .next-button {
    display: none; /* Hide arrows on mobile */
  }
  .service-grid {
    grid-template-columns: 1fr; /* Single column for small screens */
    gap: 20px;
    padding: 0 10px;
  }
  .services-container {
    max-width: 95%; /* Adjust max-width for smaller screens */
    margin: 20px auto;
    padding: 15px;
  }
  .category-title {
    font-size: 20px;
    padding: 10px;
  }
  .subcategory-item p {
    font-size: 16px;
  }
  .gender-filter {
    font-size: 36px;
    margin: 15px 0 30px;
  }
  .gender-filter label {
    margin: 0 10px;
  }
  .category-grid {
    max-width: 100%;
    padding: 10px;
  }
  .map-placeholder {
    width: 95%;
    height: 200px;
  }
    .custom-lightbox-controls {
        display: none;
    }

    .category-header {
        flex-direction: column;
        width: 90%;
    }

    .category-description-bubble {
        max-width: 100%;
        max-width: 100%;
    }

    .services-section {
        width: 90%;
    }


  /* --- Modified Footer Rules for Mobile --- */
  .footer {
    flex-wrap: wrap; /* Ensure wrapping is enabled */
    justify-content: center; /* Center columns */
  }
  .footer-column {
    flex: 1 1 100%; /* Default stacking for columns 1 and 4 */
    min-width: unset;
    margin: 20px 0;
    text-align: center; /* Center content */
  }
  /* Specific rules for Row 2 (columns 2 and 3) to stay side-by-side */
  .footer-column:nth-child(2),
  .footer-column:nth-child(3) {
    flex: 1 1 calc(50% - 30px); /* Allow them to sit side-by-side */
    min-width: 150px; /* Give them a minimum width */
    margin: 10px 15px; /* Adjust margins for side-by-side */
    text-align: center; /* Center content within these columns */
  }
  /* Ensure columns 1 and 4 stack */
  .footer-column:nth-child(1),
  .footer-column:nth-child(4) {
      flex: 1 1 100%; /* Ensure they take full width and stack */
      min-width: unset;
      margin: 20px 0;
      text-align: center; /* Center content */
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 60px; /* Adjusted padding-top to be half */
  }

  .header {
    padding: 20px 0.5%; /* Adjusted padding-top to be half */
  }

  .main-title {
    font-size: 16px;
    margin-bottom: 1px;
  }

  .nav-left a, .nav-right a {
    font-size: 0.9em; /* Adjusted font size */
    padding: 4px 8px; /* Adjusted padding */
  }

  .social-icon img {
    width: 20px; /* Smaller social icons for very small screens */
    height: 20px;
  }

  .service-item p, .subcategory-item p {
    font-size: 14px;
  }

  .gender-filter {
    font-size: 28px;
  }
}


/* New Button Styles from Uiverse.io by satyamchaudharydev */
#new-book-appointment-btn {
  width: fit-content;
  display: flex;
  padding: 0.8em 1.1em;
  gap: 0.4rem;
  border: none;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  text-shadow: 2px 2px 3px rgb(136 0 136 / 50%);
  background: linear-gradient(
      15deg,
      #880088,
      #aa2068,
      #cc3f47,
      #de6f3d,
      #f09f33,
      #de6f3d,
      #cc3f47,
      #aa2068,
      #880088
    )
    no-repeat;
  background-size: 300%;
  background-position: left center;
  transition: background 0.3s ease;
  color: #fff;
}

#new-book-appointment-btn:hover {
  background-size: 320%;
  background-position: right center;
}

#new-book-appointment-btn:hover svg {
  fill: #fff;
}

#new-book-appointment-btn svg {
  width: 23px;
  fill: #f09f33;
  transition: 0.3s ease;
}

#book-appointment-btn.button {
  width: fit-content;
  display: flex;
  padding: 0.8em 1.1em;
  gap: 0.4rem;
  border: none;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  text-shadow: 2px 2px 3px rgb(136 0 136 / 50%);
  background: linear-gradient(
      15deg,
      #880088,
      #aa2068,
      #cc3f47,
      #de6f3d,
      #f09f33,
      #de6f3d,
      #cc3f47,
      #aa2068,
      #880088
    )
    no-repeat;
  background-size: 300%;
  background-position: left center;
  transition: background 0.3s ease;
  color: #fff;
}

#book-appointment-btn.button:hover {
  background-size: 320%;
  background-position: right center;
}

.news-button-container {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.news-button {
    text-decoration: none;
}

.news-button .group {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: #4a5568;
}

.news-button .group .absolute {
    position: absolute;
}

.news-button .group .opacity-0 {
    opacity: 0;
}

.news-button .group:hover .opacity-100 {
    opacity: 1;
}

.news-button .group:hover .group-hover\:-translate-y-\[150\%\] {
    --transform-translate-y: -150%;
}

.news-button .group .duration-500 {
    transition-duration: 500ms;
}

.news-button .group:hover .group-hover\:delay-500 {
    transition-delay: 500ms;
}

.news-button .group .skew-y-\[20deg\] {
    transform: skewY(20deg);
}

.news-button .group:hover .group-hover\:skew-y-0 {
    transform: skewY(0);
}

.news-button .group .shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.news-button .group .bg-lime-200 {
    background-color: #d9f99d;
}

.news-button .group .flex {
    display: flex;
}

.news-button .group .items-center {
    align-items: center;
}

.news-button .group .gap-1 {
    gap: 0.25rem;
}

.news-button .group .p-2 {
    padding: 0.5rem;
}

.news-button .group .rounded-md {
    border-radius: 0.375rem;
}

.news-button .group .stroke-zinc-600 {
    stroke: #52525b;
}

.news-button .group .bottom-0 {
    bottom: 0;
}

.news-button .group .translate-y-1\/2 {
    --transform-translate-y: 50%;
}

.news-button .group .left-1\/2 {
    left: 50%;
}

.news-button .group .translate-x-full {
    --transform-translate-x: 100%;
}

.news-button .group .rotate-45 {
    transform: rotate(45deg);
}

.news-button .group .p-1 {
    padding: 0.25rem;
}

.news-button .group .bg-white {
    background-color: #fff;
}

.news-button .group:hover .group-hover\:opacity-0 {
    opacity: 0;
}

.news-button .group:hover .group-hover\:scale-\[115\%\] {
    transform: scale(1.15);
}

.news-button .group:hover .group-hover\:delay-700 {
    transition-delay: 700ms;
}

.news-button .group .w-full {
    width: 100%;
}

.news-button .group .h-full {
    height: 100%;
}

.news-button .group .top-0 {
    top: 0;
}

.news-button .group .left-0 {
    left: 0;
}

.news-button .group .border-b {
    border-bottom-width: 1px;
}

.news-button .group .border-r {
    border-right-width: 1px;
}

.news-button .group .border-white {
    border-color: #fff;
}

.news-button .group:hover .group-hover\:gap-2 {
    gap: 0.5rem;
}

.news-button .group .bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.news-button .group .from-lime-200 {
    --tw-gradient-from: #d9f99d;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(217, 249, 157, 0));
}

.news-button .group .to-yellow-200 {
    --tw-gradient-to: #fef08a;
}

.news-button .group .p-3 {
    padding: 0.75rem;
}

.news-button .group .rounded-full {
    border-radius: 9999px;
}

.news-button .group .cursor-pointer {
    cursor: pointer;
}

.news-button .group .duration-300 {
    transition-duration: 300ms;
}

.news-button .group .fill-zinc-600 {
    fill: #52525b;
}

.news-button .group .text-\[0px\] {
    font-size: 0px;
}

.news-button .group:hover .group-hover\:text-sm,
.news-button .group.scrolled .text-\[0px\] {
    font-size: 1rem;
}

.news-button .group.scrolled .group-hover\:gap-2 {
    gap: 0.5rem;
}

/* 2D Carousel for Promotions */
.promotions-rotator-wrapper {
  width: 100%;
  max-width: 960px; /* Container width */
  height: 360px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px auto;
  overflow: hidden; /* This is crucial to create the "window" effect */
}

.promotions-rotator-inner {
  display: flex; /* Lay out cards in a row */
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  cursor: grab;
  touch-action: pan-y; /* Prevent vertical page scroll while swiping horizontally */
}

.promotions-rotator-card {
  width: 260px; /* Width of a single card */
  height: 300px; /* Height of a single card */
  margin: 0 15px; /* Space between cards */
  flex-shrink: 0; /* Prevent cards from shrinking */
  border: 2px solid rgba(var(--color-card));
  border-radius: 12px;
  background: #0000 radial-gradient( circle, rgba(var(--color-card), 0.2) 0%, rgba(var(--color-card), 0.6) 80%, rgba(var(--color-card), 0.9) 100% );
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center content vertically */
  align-items: center;
  padding: 5px 15px 15px; /* Reduced top padding */
  text-align: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: relative; /* For absolute positioning of the price */
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE10+/Edge */
  user-select: none; /* Standard */
}

.promotions-rotator-card h3 {
    font-size: 2em; /* Made headline bigger again */
    margin: 0;
    text-shadow: 2px 2px 4px #000000;
    line-height: 1.1; /* Adjust line height for wrapping */
    color: gold;
}

.promotions-rotator-card .promo-description {
    font-size: 1.3em;
    color: black;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: normal;
    text-shadow: none;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Limit to 4 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.promotions-rotator-card .promo-dates {
    font-size: 1.0rem !important; /* Decreased size */
    color: black;
    position: absolute;
    bottom: 1px; /* Set specific spacing */
    left: 5px;
    margin: 0;
}

.promotions-rotator-card .promo-price {
    font-weight: bold;
    position: absolute;
    bottom: 15px; /* Added more padding from bottom */
    right: 15px;
    margin: 0;
    font-size: 2.5em !important; /* Increased price font size and added !important */
    color: yellow;
    text-shadow: -1px -1px 1px rgba(0,0,0,0.7), 1px 1px 1px rgba(255,255,255,0.2); /* Inset shadow effect */
}

.promotions-rotator-card.expired {
    opacity: 0.6;
}

.expired-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    color: red;
    opacity: 0.7;
    font-size: 3.5em;
    font-weight: bold;
    text-shadow: 1px 1px 2px black;
    pointer-events: none; /* Allows clicking through the overlay */
}

/* Promotion Details Page */
.promotion-details .container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.back-button-container {
    text-align: center;
    margin-top: 40px;
}

.back-button-new {
    background-color: white;
    text-align: center;
    width: 12rem; /* w-48 */
    border-radius: 1rem; /* rounded-2xl */
    height: 3.5rem; /* h-14 */
    position: relative;
    color: black;
    font-size: 1.25rem; /* text-xl */
    font-weight: 600; /* font-semibold */
    cursor: pointer;
    border: none;
}

.back-button-new .button-inner-new {
    background-image: linear-gradient(to right, purple, pink);
    border-radius: 0.75rem; /* rounded-xl */
    height: 3rem; /* h-12 */
    width: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0.25rem; /* left-1 */
    top: 4px;
    z-index: 10;
    transition: width 500ms; /* duration-500 */
}

.back-button-new:hover .button-inner-new {
    width: 11.5rem; /* group-hover:w-[184px] */
}

.back-button-new .button-text-new {
    transform: translateX(0.5rem); /* translate-x-2 */
    margin: 0;
}

/* This is an example, feel free to delete this code */
.tooltip-container {
  background: transparent;
  position: relative;
  cursor: pointer;
  font-size: 17px;
  padding: 0.7em 0.7em;
  border-radius: 50px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}
.tooltip-container:hover {
  transition: all 0.6s;
}
.tooltip-container .text {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.tooltip-container .icon-background {
  fill: rgb(26,209,0);
}
.tooltip-container .icon-foreground {
  fill: #fff;
}
.tooltip-container:hover .text {
  transition: all 0.6s;
}
.tooltip-container:hover .icon-background {
  fill: #fff;
}
.tooltip-container:hover .icon-foreground {
  fill: rgb(26,209,0);
}
.tooltip-container .text::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: rgb(26,209,0);
  transition: width 0.3s ease-in-out;
}
.tooltip-container:hover .text::after {
  width: 80%;
}

/* Inicio do tooltip telegram*/
.tooltip1 {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  background: #fff;
  fill: #03a9f4;
  padding: 10px;
  border-radius: 50px;
  transition:
    opacity 0.3s,
    visibility 0.3s,
    top 0.3s,
    background 0.3s;
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tooltip-container:hover .tooltip1 {
  top: 150%;
  opacity: 1;
  visibility: visible;
  background: #fff;
  border-radius: 50px;
  transform: translate(-50%, -5px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tooltip-container:hover .tooltip1:hover {
  background: #03a9f4;
  fill: #fff;
}
/* Fim do tooltip telgram*/

/* Inicio do tooltip messinger*/
.tooltip2 {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  background: #fff;
  fill: #0084ff;
  padding: 10px;
  border-radius: 50px;
  transition:
    opacity 0.3s,
    visibility 0.3s,
    top 0.3s,
    background 0.3s;
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tooltip-container:hover .tooltip2 {
  top: -120%;
  opacity: 1;
  visibility: visible;
  background: #fff;
  transform: translate(-50%, -5px);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tooltip2 .messenger-bg {
  fill: #0084ff;
}

.tooltip2 .messenger-fg {
  fill: #fff;
}

.tooltip-container:hover .tooltip2:hover .messenger-bg {
  fill: #fff;
}

.tooltip-container:hover .tooltip2:hover .messenger-fg {
  fill: #0084ff;
}

.tooltip-container:hover .tooltip2:hover {
  background: #0084ff;
}
/* Fim do tooltip messinger*/

/* Inicio do tooltip whatsApp */
.tooltip3 {
  position: absolute;
  top: 100%;
  left: 60%;
  transform: translateX(80%);
  opacity: 0;
  visibility: hidden;
  background: #fff;
  fill: #1db954;
  padding: 10px;
  border-radius: 50px;
  transition:
    opacity 0.3s,
    visibility 0.3s,
    top 0.3s,
    background 0.3s;
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tooltip-container:hover .tooltip3 {
  top: 10%;
  opacity: 1;
  visibility: visible;
  background: #fff;
  transform: translate(85%, -5px);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tooltip-container:hover .tooltip3:hover {
  background: #1db954;
  fill: #fff;
}
/* Fim do tooltip whatsApp */

        /* Inicio do tooltip viber*/
        .tooltip4 {
          position: absolute;
          top: 100%;
          left: 30%;
          transform: translateX(-80%);
  opacity: 0;
  visibility: hidden;
  background: #fff;
  fill: #665CAC;
  padding: 10px;
  border-radius: 50px;
  transition:
    opacity 0.3s,
    visibility 0.3s,
    top 0.3s,
    background 0.3s;
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

        .tooltip-container:hover .tooltip4 {
          top: 10%;
          opacity: 1;
          visibility: visible;
          background: #fff;
          transform: translate(-85%, -5px);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tooltip-container:hover .tooltip4:hover {
  background: #665CAC;
  fill: #fff;
}
/* Fim do tooltip viber*/



/* --- Styles for Icons Inside the Contact Section ONLY --- */
#contact-section .tooltip-container:hover .tooltip2 { /* Messenger (Top) */
  top: -70%;
}
#contact-section .tooltip-container:hover .tooltip1 { /* Telegram (Bottom) */
  top: 105%;
}
#contact-section .tooltip-container:hover .tooltip4 { /* Viber (Left) */
  left: 50%;
  transform: translateX(-70px);
}
#contact-section .tooltip-container:hover .tooltip3 { /* WhatsApp (Right) */
  left: 50%;
  transform: translateX(30px);
}


/* --- Styles for Icons Inside the Booking Modal ONLY --- */
/* Hover position overrides for modal */
#booking-modal .tooltip-container:hover .tooltip2 { /* Messenger (Top) */
  top: -80%;
}

#booking-modal .tooltip-container:hover .tooltip1 { /* Telegram (Bottom) */
  top: 110%;
}

#booking-modal .tooltip-container:hover .tooltip4 { /* Viber (Left) */
  left: 15%;
  transform: translateX(-50%);
}

#booking-modal .tooltip-container:hover .tooltip3 { /* WhatsApp (Right) */
  left: 85%;
  transform: translateX(-50%);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

#confirmation-modal {
    z-index: 1001;
}
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.9);
  color: #fff;
  padding: 15px;
  text-align: center;
  font-size: 14px;
  z-index: 9999;
}

#cookie-banner button {
  margin-left: 10px;
  padding: 8px 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#acceptCookies {
  background-color: #28a745; /* зелено */
  color: #fff;
}

#declineCookies {
  background-color: #dc3545; /* червено */
  color: #fff;
}
