/**
 * Phantom Marine — Yacht Sale Page Styles
 * All selectors prefixed with .ys- to avoid conflicts
 */

:root {
  --ys-teal:   #1DADA8;
  --ys-teal-l: #EAF8F7;
  --ys-teal-d: #158480;
  --ys-navy:   #0C1322;
  --ys-ink:    #1A2332;
  --ys-body:   #F6F8FA;
  --ys-white:  #ffffff;
  --ys-muted:  #6B7A90;
  --ys-border: #E1E6EE;
  --ys-radius: 8px;
}

.ys-page { font-family: 'Montserrat', sans-serif; color: var(--ys-ink); font-size: 14px; line-height: 1.7; }

/* ═══ HERO ═══ */
.ys-hero { position: relative; height: 520px; overflow: hidden; }
.ys-hero-bg { width: 100%; height: 100%; object-fit: cover; display: block; }
.ys-hero-gradient { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.35) 100%); }
.ys-hero-nav { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; }
.ys-hero-btn { padding: 10px 28px; border-radius: 4px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: all 0.2s; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.4); color: #fff; backdrop-filter: blur(6px); }
.ys-hero-btn:hover { background: rgba(255,255,255,0.3); }
.ys-hero-btn-solid { background: var(--ys-teal); border-color: var(--ys-teal); color: #fff; }
.ys-hero-btn-solid:hover { background: var(--ys-teal-d); }

/* ═══ DESCRIPTION ═══ */
.ys-desc-section { background: var(--ys-white); padding: 60px 44px; }
.ys-desc-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.ys-title { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 600; color: var(--ys-ink); margin: 0 0 8px; }
.ys-subtitle { font-size: 14px; font-weight: 600; color: var(--ys-ink); margin: 0 0 20px; font-style: italic; }
.ys-body-text { font-size: 13px; color: #444; line-height: 1.8; }
.ys-body-text p { margin: 0 0 14px; }
.ys-desc-right-title { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 600; margin: 0 0 16px; color: var(--ys-ink); }
.ys-features { list-style: none; padding: 0; margin: 16px 0 0; }
.ys-features li { font-size: 13px; color: #444; padding: 6px 0 6px 22px; position: relative; line-height: 1.5; }
.ys-features li::before { content: '•'; position: absolute; left: 6px; color: var(--ys-teal); font-weight: 700; }

/* ═══ SPECIFICATIONS ═══ */
.ys-specs-section { position: relative; padding: 70px 44px; overflow: hidden; }
.ys-specs-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--ys-navy) 0%, #162035 100%); z-index: 0; }
.ys-specs-inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; }
.ys-section-heading { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 600; text-align: center; margin: 0 0 40px; color: var(--ys-ink); }
.ys-specs-section .ys-section-heading { color: #fff; }
.ys-specs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.ys-spec-card { text-align: center; }
.ys-spec-icon { width: 64px; height: 64px; margin: 0 auto 12px; color: var(--ys-teal); }
.ys-spec-icon svg { width: 100%; height: 100%; }
.ys-spec-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.6); margin-bottom: 4px; }
.ys-spec-value { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 500; color: #fff; }

/* ═══ GALLERY ═══ */
.ys-gallery-section { background: var(--ys-white); padding: 60px 44px; }
.ys-gallery-inner { max-width: 900px; margin: 0 auto; }
.ys-gallery-slider { position: relative; overflow: hidden; border-radius: var(--ys-radius); }
.ys-gallery-track { display: flex; transition: transform 0.4s ease; }
.ys-gallery-slide { min-width: 100%; cursor: pointer; }
.ys-gallery-slide img { width: 100%; height: 480px; object-fit: cover; display: block; }
.ys-gallery-prev, .ys-gallery-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.4); border: none; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; z-index: 2; transition: background 0.2s; }
.ys-gallery-prev { left: 14px; }
.ys-gallery-next { right: 14px; }
.ys-gallery-prev:hover, .ys-gallery-next:hover { background: rgba(0,0,0,0.7); }
.ys-gallery-dots { text-align: center; padding: 14px 0 4px; }
.ys-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ccc; margin: 0 4px; cursor: pointer; transition: background 0.2s; }
.ys-dot.active { background: var(--ys-teal); }

/* Lightbox */
.ys-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; }
.ys-lightbox.open { opacity: 1; visibility: visible; }
.ys-lb-close { position: absolute; top: 20px; right: 24px; background: none; border: none; color: #fff; font-size: 36px; cursor: pointer; opacity: 0.7; z-index: 10; }
.ys-lb-close:hover { opacity: 1; }
.ys-lb-stage { max-width: 90vw; max-height: 85vh; display: flex; align-items: center; justify-content: center; }
.ys-lb-stage img { max-width: 100%; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.ys-lb-prev, .ys-lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 50%; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; }
.ys-lb-prev { left: 20px; }
.ys-lb-next { right: 20px; }
.ys-lb-prev:hover, .ys-lb-next:hover { background: rgba(255,255,255,0.18); }
.ys-lb-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-size: 13px; color: rgba(255,255,255,0.6); }

/* ═══ HULL DETAILS + FORM ═══ */
.ys-hull-section { background: var(--ys-body); padding: 60px 44px; }
.ys-hull-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

/* Accordion cards */
.ys-hull-card { border: 1px solid var(--ys-border); border-radius: var(--ys-radius); margin-bottom: 8px; background: var(--ys-white); overflow: hidden; }
.ys-hull-card-header { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ys-ink); transition: background 0.15s; }
.ys-hull-card-header:hover { background: var(--ys-teal-l); }
.ys-hull-card-icon { width: 28px; height: 28px; color: var(--ys-teal); flex-shrink: 0; }
.ys-hull-card-icon svg { width: 100%; height: 100%; }
.ys-hull-chevron { margin-left: auto; transition: transform 0.2s; flex-shrink: 0; color: var(--ys-muted); }
.ys-hull-card.open .ys-hull-chevron { transform: rotate(180deg); }
.ys-hull-card-body { display: none; padding: 0 18px 16px; font-size: 13px; color: #444; line-height: 1.7; }
.ys-hull-card.open .ys-hull-card-body { display: block; }

/* Form */
.ys-form-card { background: var(--ys-white); border: 1px solid var(--ys-border); border-radius: var(--ys-radius); padding: 28px; }
.ys-form-title { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 600; color: var(--ys-ink); margin: 0 0 20px; }
.ys-ff { margin-bottom: 14px; }
.ys-ff label { display: block; font-size: 13px; font-weight: 600; color: var(--ys-ink); margin-bottom: 6px; }
.ys-ff input, .ys-ff textarea { width: 100%; border: 1px solid var(--ys-border); border-radius: 6px; padding: 10px 14px; font-family: 'Montserrat', sans-serif; font-size: 13px; color: var(--ys-ink); outline: none; transition: border-color 0.16s; }
.ys-ff input:focus, .ys-ff textarea:focus { border-color: var(--ys-teal); }
.ys-ff input::placeholder, .ys-ff textarea::placeholder { color: #B0BAC8; }
.ys-ff textarea { resize: vertical; min-height: 100px; }
.ys-form-submit { display: block; margin: 6px auto 0; background: var(--ys-teal); color: #fff; border: 2px solid var(--ys-teal); border-radius: 4px; padding: 12px 36px; font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: all 0.2s; }
.ys-form-submit:hover { background: var(--ys-teal-d); border-color: var(--ys-teal-d); }
.ys-form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.ys-form-success { display: none; text-align: center; padding: 30px 0; }
.ys-success-check { font-size: 36px; color: var(--ys-teal); margin-bottom: 12px; }
.ys-success-h { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--ys-ink); margin: 0 0 8px; }
.ys-success-p { font-size: 13px; color: var(--ys-muted); }

/* ═══ RELATED ═══ */
.ys-related-section { background: var(--ys-white); padding: 60px 44px; }
.ys-related-inner { max-width: 1100px; margin: 0 auto; }
.ys-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ys-related-card { text-decoration: none; color: var(--ys-ink); border: 1px solid var(--ys-border); border-radius: var(--ys-radius); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.ys-related-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }
.ys-related-img { height: 200px; overflow: hidden; background: #eee; }
.ys-related-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.ys-related-card:hover .ys-related-img img { transform: scale(1.04); }
.ys-related-info { padding: 16px; }
.ys-related-name { font-size: 15px; font-weight: 600; color: var(--ys-ink); }
.ys-related-maker { font-size: 12px; color: var(--ys-muted); margin-top: 3px; }

/* Toast */
.ys-toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(60px); background: var(--ys-ink); color: #fff; padding: 12px 22px; border-radius: 6px; font-size: 13px; opacity: 0; transition: all 0.25s; z-index: 999; }
.ys-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 820px) {
  .ys-hero { height: 320px; }
  .ys-desc-inner { grid-template-columns: 1fr; gap: 30px; }
  .ys-desc-section, .ys-specs-section, .ys-gallery-section, .ys-hull-section, .ys-related-section { padding: 40px 20px; }
  .ys-specs-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .ys-gallery-slide img { height: 280px; }
  .ys-hull-inner { grid-template-columns: 1fr; }
  .ys-related-grid { grid-template-columns: 1fr; }
  .ys-title { font-size: 24px; }
}
