/* Acuamundo Premium Styles */
:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --accent: #0f172a;
  /* deep navy blue */
  --accent-2: #10b981;
  /* modern emerald for whatsapp */
  --muted: #64748b;
  --radius: 16px;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  color: #0f172a;
  background: var(--bg)
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh
}

/* Hero Section with Header merged */
.hero-section {
  position: relative;
  background-image: url('../images/hero2.png');
  background-size: cover;
  background-position: center;
  width: 100%;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.3) 100%);
  z-index: 1;
}

.site-header {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 24px 0;
}

.brand {
  display: flex;
  align-items: center;
}

.logo {
  width: 220px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
}

.logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.95rem;
}

.container {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 24px;
  flex: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px;
  color: #fff;
}

.hero-content h2 {
  margin: 0 0 12px;
  font-size: 2.8rem;
  line-height: 1.1;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-content .lead {
  margin: 0 0 32px;
  font-size: 1.15rem;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.search-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  padding: 14px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 700px;
}

.search-row input[type="search"] {
  flex: 1;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  outline: none;
  background: white
}

.search-row select {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: white
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none
}

.catalog {
  margin-top: 28px
}

.section-title {
  margin: 12px 0 18px;
  font-size: 1.125rem
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 18px
}

.boat-card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column
}

.boat-media {
  height: 160px;
  background-size: cover;
  background-position: center
}

.boat-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.boat-title {
  margin: 0;
  font-size: 1.05rem
}

.boat-meta {
  color: var(--muted);
  font-size: 0.9rem
}

.boat-desc {
  margin: 0;
  color: #374151;
  font-size: 0.95rem;
  white-space: pre-line;
}

.boat-features {
  margin: 10px 0 0 0;
  padding-left: 22px;
  color: #475569;
  font-size: 0.9rem
}

.boat-features li {
  margin-bottom: 4px;
  line-height: 1.4
}

.boat-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px
}

.price {
  font-weight: 700;
  color: var(--accent-2)
}

.btn-whatsapp {
  background: var(--accent-2);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-family: inherit;
  font-size: 1rem;
  border: none;
}

.btn-share {
  background: #ffffff;
  color: var(--accent);
  border: 1px solid #cbd5e1;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.btn-share:hover {
  background: #f8fafc;
}

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.04);
  padding: 18px 24px;
  background: #fff
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px
}

/* gallery thumbnails inside card */
.thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px
}

.thumb {
  position: relative;
  width: 48px;
  height: 36px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s
}

.thumb.active {
  border-color: var(--accent)
}

.thumb.is-video::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px
}

.thumb.is-video:hover::after {
  background: rgba(0, 0, 0, 0.5)
}

/* filter/sort bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px
}

.filter-bar select {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.06)
}

.filter-bar label {
  color: var(--muted);
  font-size: 0.95rem
}

@media (max-width:800px) {
  .hero-inner {
    padding: 28px
  }

  .boat-media {
    height: 220px
  }

  .contact {
    align-items: flex-start
  }
}

@media (max-width:420px) {
  .search-row {
    flex-direction: column;
    align-items: stretch
  }

  .hero-content h2 {
    font-size: 1.8rem
  }

  .logo {
    width: 160px;
  }
}

/* Modal / lightbox */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px
}

.modal {
  background: var(--card);
  width: 100%;
  max-width: 1000px;
  max-height: calc(100vh - 40px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.6);
  display: flex;
  gap: 20px
}

.modal-media {
  flex: 1;
  min-height: 360px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #000
}

.modal-body {
  width: 420px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.modal-title {
  font-size: 1.25rem;
  margin: 0
}

.modal-meta {
  color: var(--muted);
  font-size: 0.95rem
}

.modal-desc {
  color: #374151;
  white-space: pre-line
}

.modal-price {
  font-weight: 700;
  color: var(--accent-2);
  font-size: 1.05rem
}

.modal-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px
}

.modal-thumb {
  position: relative;
  width: 72px;
  height: 54px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s
}

.modal-thumb.active {
  border-color: var(--accent)
}

.modal-thumb.is-video::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px
}

.modal-thumb.is-video:hover::after {
  background: rgba(0, 0, 0, 0.5)
}

.modal-video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000
}

.modal-actions {
  margin-top: auto;
  display: flex;
  gap: 10px
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 22px;
  cursor: pointer
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 28px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer
}

.modal-prev {
  left: 18px
}

.modal-next {
  right: 18px
}

@media (max-width:900px) {
  .modal {
    flex-direction: column
  }

  .modal-media {
    min-height: 280px;
    height: 45vh;
    flex: none;
  }

  .modal-body {
    width: 100%;
  }
}

/* image loader spinner and placeholder */
.modal-media {
  position: relative
}

.img-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.18);
  border-top-color: #ffffff;
  border-right-color: rgba(255, 255, 255, 0.6);
  animation: spin 1s linear infinite;
  display: none;
  z-index: 10
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg)
  }
}

.modal-media.loading {
  background-color: #111;
  background-size: cover;
  filter: brightness(0.85)
}

.img-placeholder {
  background: linear-gradient(90deg, #e6eef6, #f7fcff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.95rem
}

/* Language Selector Styles */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-selector {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.lang-selector:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.2);
}

.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.lang-btn:hover {
  color: #fff;
}

.lang-btn.active {
  background: #ffffff;
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    gap: 16px;
    padding: 16px 0;
  }
  
  .contact {
    align-items: center;
    width: 100%;
  }

  .header-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
}