.slider {
  position: relative;
  width: 100%;
  max-width:100%;
  height: 500px;
  margin: auto;
  border-radius: 20px;
  overflow: hidden;
}

.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease-in-out;
  border-radius: 15px 15px 0 0;
}

.slide {
  min-width: 100%;
  height: 100%;
  width:100%;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
  flex-shrink: 0;
  user-select: none;
  pointer-events: none;
}

.slide.active {
  pointer-events: auto;
}

.bottom-center {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  background: #fff;
  padding: 15px 20px;
  padding-bottom: 0;
  text-align: center;
  box-shadow: 0px 0px 15px rgba(56, 152, 226, 0.3);
  z-index: 2;
  overflow: visible;
  border-radius: 10px 10px 0 0;
  transition:all 0.3s ease-in-out;
}

/* Outer radius using pseudo-elements */
.bottom-center::before,
.bottom-center::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 50px;
  height: 40px;
  background: #fff;
  border-radius: 0;
  z-index: -1;
}

.bottom-center::before {
  left: -30px;
  bottom: -10px;
  mask: radial-gradient(30px at top left, #0000 98%, #000);
}

.bottom-center::after {
  right: -30px;
  bottom: -10px;
  mask: radial-gradient(30px at top right, #0000 98%, #000);
}

.bottom-center h3 {
  margin: 5px 0;
  font-size: 18px;
  color: #333;
}

.bottom-center p {
  margin: 5px 0 10px;
  color: #666;
  font-size: 14px;
}

.luxury-heading {
  font-family: 'Geologica', sans-serif;
  font-weight: 700;
  font-size: 2.9rem;
  color: #2c2a29; /* deep charcoal */
  letter-spacing: 0.05em;
  margin-bottom: 0.3em;
  text-transform: capitalize;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.luxury-subtitle {
  font-family: 'Geologica', sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  color: #6b5b3b; /* warm gold-brown */
  letter-spacing: 0.04em;
  line-height: 1.5;
  margin-top: 0;
  opacity: 0.85;
}

.buttons {
  margin-top: 20px;
  margin-bottom: 12px;
  text-align: center;
}

.btn {
  font-family: 'Geologica', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75em 1.5em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  margin: 0 10px;
  user-select: none;
  margin-bottom:10px;
}

.btn.primary {
  background-color: #f5f5f5;
  color: #222;
  box-shadow: 0px 0px 25px rgba(56, 152, 226, 0.3);;
}

.btn.primary:hover {
  background-color: #3898e2;
  box-shadow: 0 6px 16px rgba(255, 180, 0, 0.5);
  transform: translateY(-2px);
}

.btn.secondary {
  background-color: transparent;
  color: #ffc727;
  border: 2px solid #ffc727;
}

.btn.secondary:hover {
  background-color: #fff8e1;
  color: #222;
  border-color: #ffb400;
  transform: translateY(-2px);
}

.indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.dot {
  height: 10px;
  width: 10px;
  background-color: #ccc;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #333;
}


@media(max-width:768px){
  .slider {
    width:95%;
    height:300px;
  }
  .slider{
    border-radius:10px;
  }
  .btn{
    margin:5px;
  }
  .bottom-center {
    width: 80%;
    border-radius:10px;
  }
  .bottom-center::before {
  left: -20px;
  bottom: -50px;
  mask: radial-gradient(20px at top left, #0000 98%, #000);
}

.bottom-center::after {
  right: -20px;
  bottom: -50px;
  mask: radial-gradient(20px at top right, #0000 98%, #000);
}
}

@media(max-width:414px){
  .bottom-center{
    border-radius:10px 10px 0 0;
  }
   .btn{
    width:100%;
    margin:5px 0;
  }
   .bottom-center::before,.bottom-center::after {
    display:none;
}

}












.cd-image-container {
  position: relative;
  width: 90%;
  max-width: 768px;
  margin: 0em auto;
}
.cd-image-container img {
  display: block;
}

.cd-image-label {
  position: absolute;
  bottom: 0;
  right: 0;
  color: #ffffff;
  padding: 1em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 0;
  -webkit-transform: translateY(20px);
  -moz-transform: translateY(20px);
  -ms-transform: translateY(20px);
  -o-transform: translateY(20px);
  transform: translateY(20px);
  -webkit-transition: -webkit-transform 0.3s 0.7s, opacity 0.3s 0.7s;
  -moz-transition: -moz-transform 0.3s 0.7s, opacity 0.3s 0.7s;
  transition: transform 0.3s 0.7s, opacity 0.3s 0.7s;
}


.cd-image-label.is-hidden {
  visibility: hidden;
}
.is-visible .cd-image-label {
  opacity: 1;
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
  transform: translateY(0);
}

.cd-resize-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  overflow: hidden;
  /* Force Hardware Acceleration in WebKit */
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -o-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.cd-resize-img img {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
}
.cd-resize-img .cd-image-label {
  right: auto;
  left: 0;
}
.is-visible .cd-resize-img {
  width: 50%;
  /* bounce in animation of the modified image */
  -webkit-animation: cd-bounce-in 0.7s;
  -moz-animation: cd-bounce-in 0.7s;
  animation: cd-bounce-in 0.7s;
}

@-webkit-keyframes cd-bounce-in {
  0% {
    width: 0;
  }
  60% {
    width: 55%;
  }
  100% {
    width: 50%;
  }
}
@-moz-keyframes cd-bounce-in {
  0% {
    width: 0;
  }
  60% {
    width: 55%;
  }
  100% {
    width: 50%;
  }
}
@keyframes cd-bounce-in {
  0% {
    width: 0;
  }
  60% {
    width: 55%;
  }
  100% {
    width: 50%;
  }
}
.cd-handle {
  position: absolute;
  height: 44px;
  width: 44px;
  /* center the element */
  left: 50%;
  top: 50%;
  margin-left: -22px;
  margin-top: -22px;
  border-radius: 50%;
  background: #3898e2 url("https://visitabay.kz/images/cd-arrows.svg") no-repeat center center;
  cursor: move;
  box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.2), 0 0 10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  opacity: 0;
  -webkit-transform: translate3d(0, 0, 0) scale(0);
  -moz-transform: translate3d(0, 0, 0) scale(0);
  -ms-transform: translate3d(0, 0, 0) scale(0);
  -o-transform: translate3d(0, 0, 0) scale(0);
  transform: translate3d(0, 0, 0) scale(0);
}
.cd-handle.draggable {
  /* change background color when element is active */
  background-color: #445b7c;
}
.is-visible .cd-handle {
  opacity: 1;
  -webkit-transform: translate3d(0, 0, 0) scale(1);
  -moz-transform: translate3d(0, 0, 0) scale(1);
  -ms-transform: translate3d(0, 0, 0) scale(1);
  -o-transform: translate3d(0, 0, 0) scale(1);
  transform: translate3d(0, 0, 0) scale(1);
  -webkit-transition: -webkit-transform 0.3s 0.7s, opacity 0s 0.7s;
  -moz-transition: -moz-transform 0.3s 0.7s, opacity 0s 0.7s;
  transition: transform 0.3s 0.7s, opacity 0s 0.7s;
}











/* === Loader === */
#loader {
  position: fixed;
  font-family: 'Geologica', sans-serif;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.logo {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.4rem;
  margin-bottom: 14px;
  color: #111;
}

/* Линия прогресса */
.progress {
  position: relative;
  width: 120px;
  height: 2px;
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.progress::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: #111;
  animation: load 1.8s ease-in-out forwards;
}

@keyframes load {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* Когда исчезает */
#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Контент */
#content {
  text-align: center;
  opacity: 0;
  animation: fadeIn 1.2s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}



/* TRAV FULL */
.trav-full {
    position: relative;
    overflow: hidden;
}

.trav-full:before {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(20,22,24,.65);
    z-index: 1;
}

.trav-full_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    max-width: 80%;
    height: 90vh;
    text-align: center;
    z-index: 3;
}

@media (max-width: 860px) {
    .trav-full_content {
        max-width: 100%;
    }
}

.trav-full > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.trav-full2 > img {
    position: absolute;
    inset: 0;
    width: 750px;
    height: 500px;
    object-fit: cover;
}

.trav-full_content > h1 {
    font-size: 45px;
    text-transform: uppercase;
    text-align: center;
}

@media (max-width: 860px) {
    .trav-full_content > h1 {
        font-size: 40px;
    }
}

.trav-full_content > span {
    color: #cccccc;
}

.trav-full_content > a {
    display: inline-block;
    background: #fff;
    color: #333;
    padding: 15px 30px;
    border-radius: var(--radius);
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 30px;
}

.trav-full_detal iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16/12;
    border-radius: var(--radius);
}

.trav-full_share {
    position: relative;
    background: #f8f8f8;
    border-radius: var(--radius);
    padding: 20px 30px;
    overflow: hidden;
    margin: 30px 0;
}

.trav-full_share:before {
    content: "";
    position: absolute;
    top: -150px;
    right: -20px;
    background: #dbefe4;
    width: 700px;
    height: 350px;
    border-radius: 50% 40%;
    transform: rotate(13deg);
}

@media (max-width: 860px) {
    .trav-full_share:before {
        right: -570px;
    }
}

.trav-full_share > span {
    display: block;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}



/* Gallery Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* Comparison Container */
.comparison-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comparison-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Comparison Slider */
.comparison-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

.image-after {
    z-index: 1;
}

.image-before {
    z-index: 2;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

/* Slider Controls */
.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: col-resize;
    z-index: 4;
}

.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: white;
    transform: translateX(-50%);
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.slider-button::before,
.slider-button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.slider-button::before {
    left: 12px;
    border-width: 8px 12px 8px 0;
    border-color: transparent #667eea transparent transparent;
}

.slider-button::after {
    right: 12px;
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent #667eea;
}

.comparison-slider:hover .slider-button {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Labels */
.labels {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background: #f8f9fa;
}

.label-before,
.label-after {
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.label-before {
    color: #dc3545;
}

.label-after {
    color: #28a745;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    h1 {
        font-size: 1.75rem;
        margin-bottom: 30px;
    }
    
    .slider-button {
        width: 40px;
        height: 40px;
    }
    
    .slider-button::before {
        left: 10px;
        border-width: 6px 10px 6px 0;
    }
    
    .slider-button::after {
        right: 10px;
        border-width: 6px 0 6px 10px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .gallery {
        gap: 15px;
    }
    
    .labels {
        padding: 12px 15px;
    }
    
    .label-before,
    .label-after {
        font-size: 0.8rem;
    }
    
    .slider-button {
        width: 35px;
        height: 35px;
    }
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
    .slider {
        cursor: grab;
    }
    
    .slider:active {
        cursor: grabbing;
    }
    
    .comparison-container:hover {
        transform: none;
    }
}

