/* ========== RESET & VARIABLES ========== */
:root {
  --navy: #0b1f3a;
  --navy-light: #1e3a5f;
  --gold: #b8965a;
  --gold-light: #d4b07a;
  --white: #ffffff;
  --snow: #f8f9fb;
  --text-dark: #1a2e45;
  --text-mid: #4a6280;
  --gray-light: #e2e8f0;
  --shadow-sm: 0 8px 20px rgba(11,31,58,0.08);
  --shadow-md: 0 12px 35px rgba(11,31,58,0.12);
  --shadow-lg: 0 25px 50px -12px rgba(11,31,58,0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Raleway', sans-serif;
  background: var(--snow);
  color: var(--text-dark);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

a {
  text-decoration: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ========== HEADER & NAVIGATION ========== */
header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--gray-light);
  width: 100%;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 16px 24px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
}

.logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.desktop-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.desktop-nav a {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-mid);
  transition: color 0.2s;
}

.desktop-nav a:hover {
  color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switch {
  display: flex;
  gap: 8px;
}

.lang-btn {
  background: transparent;
  border: none;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 20px;
  transition: 0.2s;
}

.lang-btn.active {
  background: var(--gold);
  color: white;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 101;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: 0.2s;
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-nav-inner a {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-nav-inner a:hover {
  color: var(--gold);
}

/* ========== PAGE TITLE ========== */
.page-title-section {
  padding: 80px 0 40px;
  text-align: center;
  background: linear-gradient(to bottom, var(--snow), white);
  width: 100%;
}

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.title-divider {
  width: 80px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.yacht-tagline {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  word-break: break-word;
}

/* ========== MAIN LAYOUT ========== */
.yacht-section {
  padding: 40px 0 80px;
  width: 100%;
}

.yacht-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  width: 100%;
}

@media (max-width: 992px) {
  .yacht-layout {
    flex-direction: column;
  }
}

.yacht-left {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  min-width: 0;
}

/* ========== GALLERY ========== */
.main-image-wrap {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 0;
  padding-bottom: 65%; /* 65% от ширината → пропорционална височина */
  width: 100%;
}

.main-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  width: 100%;
}

.thumbs img {
  border-radius: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.2s;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.thumbs img:hover,
.thumbs img.active {
  border-color: var(--gold);
  transform: scale(1.02);
}

/* MOBILE THUMBS - адаптивни, без счупване */
@media (max-width: 768px) {
  .thumbs {
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  }
  .thumbs img {
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .thumbs {
    gap: 8px;
    grid-template-columns: repeat(3, 1fr); /* 3 на ред за малки телефони */
  }
}

/* ========== DESCRIPTION & REVIEWS ========== */
.yacht-description,
.reviews-section {
  background: var(--white);
  padding: 32px 36px;
  border-radius: 28px;
  box-shadow: var(--shadow-md);
  width: 100%;
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .yacht-description,
  .reviews-section {
    padding: 24px 20px;
  }
}

.desc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--gold-light);
  padding-bottom: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.yacht-description h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--navy);
}

@media (max-width: 480px) {
  .yacht-description h2 {
    font-size: 1.5rem;
  }
}

.desc-icon {
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.7;
}

.desc-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-mid);
}

/* ========== REVIEWS CAROUSEL ========== */
.reviews-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.reviews-section h2:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--gold);
}

@media (max-width: 480px) {
  .reviews-section h2 {
    font-size: 1.4rem;
  }
}

.reviews-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.carousel-track-container {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-out;
  list-style: none;
}

.carousel-slide {
  flex: 0 0 100%;
  padding: 0 10px;
}

.review-card {
  background: var(--snow);
  border-radius: 24px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(184,150,90,0.2);
  width: 100%;
}

@media (max-width: 480px) {
  .review-card {
    padding: 20px 16px;
  }
}

.stars {
  color: var(--gold);
  font-size: 1.2rem;
  letter-spacing: 4px;
  margin-bottom: 16px;
}

.review-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-dark);
  font-style: italic;
  word-break: break-word;
}

.review-text::before {
  content: "“";
  color: var(--gold);
  margin-right: 4px;
}
.review-text::after {
  content: "”";
  color: var(--gold);
  margin-left: 4px;
}

.reviewer {
  font-weight: 600;
  color: var(--navy);
  margin-top: 16px;
}

.carousel-btn {
  background: var(--white);
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  cursor: pointer;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-mid);
  opacity: 0.4;
  cursor: pointer;
}

.dot.active {
  opacity: 1;
  background: var(--gold);
  transform: scale(1.2);
}

/* ========== STICKY BOOKING SIDEBAR ========== */
.booking-sticky {
  flex: 1.2;
  position: sticky;
  top: 100px;
  align-self: flex-start;
  width: 100%;
}

@media (max-width: 992px) {
  .booking-sticky {
    position: static;
    margin-top: 32px;
  }
}

.form-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(184,150,90,0.2);
  width: 100%;
}

@media (max-width: 768px) {
  .form-card {
    padding: 24px 20px;
  }
}

.form-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--navy);
  text-align: center;
  margin-bottom: 12px;
  word-break: break-word;
}

@media (max-width: 480px) {
  .form-card-title {
    font-size: 1.5rem;
  }
}

.form-card-sub {
  font-size: 0.75rem;
  color: var(--text-mid);
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.form-group {
  margin-bottom: 24px;
  width: 100%;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--snow);
  border: 1px solid var(--gray-light);
  border-radius: 20px;
  padding: 12px 16px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  transition: 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(184,150,90,0.2);
}

.duration-wrapper {
  margin-bottom: 24px;
  width: 100%;
}

.dur-label-row {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.duration-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
}

@media (min-width: 769px) and (max-width: 992px) {
  .duration-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .duration-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.dur-card {
  background: var(--snow);
  border: 1px solid var(--gray-light);
  border-radius: 20px;
  padding: 16px 8px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
  position: relative;
  width: 100%;
}

.dur-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.dur-card.selected {
  background: var(--navy);
  border-color: var(--navy);
}

.dur-card.selected .dur-hrs,
.dur-card.selected .dur-unit {
  color: white;
}

.dur-card.selected .dur-price {
  color: var(--gold-light);
}

.dur-hrs {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

@media (max-width: 480px) {
  .dur-hrs {
    font-size: 1.5rem;
  }
}

.dur-unit {
  font-size: 0.55rem;
  text-transform: uppercase;
  color: var(--text-mid);
  display: block;
  margin: 5px 0;
}

.dur-price {
  font-weight: 700;
  color: var(--gold);
  font-size: 0.8rem;
}

.checkmark {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 16px;
  height: 16px;
  background: var(--gold);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.6rem;
}

.dur-card.selected .checkmark {
  display: flex;
}

.price-box {
  background: var(--navy);
  border-radius: 24px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

@media (max-width: 480px) {
  .price-box {
    flex-direction: column;
    text-align: center;
  }
}

.p-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.p-note {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

.price-amount {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

@media (max-width: 480px) {
  .price-amount {
    font-size: 1.8rem;
  }
}

.price-dash {
  color: rgba(255,255,255,0.3);
}

.btn-reserve {
  width: 100%;
  padding: 16px;
  border-radius: 40px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.8rem;
  cursor: pointer;
  transition: 0.2s;
}

.err {
  color: #c0392b;
  font-size: 0.65rem;
  margin-top: 6px;
  display: none;
}

.field-error input {
  border-color: #c0392b !important;
}

.field-error .err {
  display: block;
}

.dur-error {
  color: #c0392b;
  font-size: 0.7rem;
  margin-top: 8px;
  display: none;
}

.confirm-box {
  display: none;
  text-align: center;
  padding: 30px 20px;
  width: 100%;
}

.confirm-box.show {
  display: block;
}

.confirm-ring {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--gold);
  animation: ringpop 0.4s ease-out;
}

@keyframes ringpop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ========== FULL MOBILE UI (≤ 480px) – всичко е оправено ========== */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .container {
    padding: 0 16px;
  }

  .header-container {
    padding: 12px 16px;
  }

  .logo-img {
    width: 40px;
    height: 40px;
  }

  .logo-name {
    font-size: 1rem;
  }

  .logo-sub {
    font-size: 0.5rem;
  }

  .burger {
    display: flex;
  }

  .desktop-nav {
    display: none;
  }

  .page-title-section {
    padding: 40px 0 20px;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .title-divider {
    width: 50px;
  }

  .yacht-tagline {
    font-size: 0.65rem;
  }

  .yacht-section {
    padding: 20px 0 50px;
  }

  .yacht-left {
    gap: 20px;
  }

  .main-image-wrap {
    border-radius: 20px;
  }

  .desc-text {
    font-size: 0.9rem;
  }

  .review-text {
    font-size: 0.85rem;
  }

  .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 1.3rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 10px 14px;
    font-size: 0.8rem;
  }

  .dur-card {
    padding: 12px 6px;
  }

  .dur-price {
    font-size: 0.7rem;
  }

  .price-amount {
    font-size: 1.6rem;
  }

  .btn-reserve {
    padding: 14px;
    font-size: 0.7rem;
  }
}

/* ========== LARGE SCREENS ========== */
@media (min-width: 1600px) {
  .container {
    max-width: 1440px;
  }
  .yacht-layout {
    gap: 64px;
  }
  .form-card {
    padding: 40px 36px;
  }
}

/* Discount badge */
.discount-badge {
  background: linear-gradient(135deg, rgba(184,150,90,0.12) 0%, rgba(184,150,90,0.05) 100%);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  text-align: center;
  letter-spacing: 0.3px;
  backdrop-filter: blur(2px);
  transition: all 0.2s ease;
}

@media (max-width: 480px) {
  .discount-badge {
    font-size: 0.75rem;
    padding: 10px 12px;
    margin-bottom: 16px;
  }
}
