/* ============================================================================
  1. VESSEL CARD GRID
  ============================================================================ */
.essentials-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.p-reset {
  padding: 0 !important;
}
.vessels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
  transition: filter 0.3s ease;
  scroll-margin-top: 150px;
}

.vessels-card {
  background: #f9f9f7;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.vessels-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.vessels-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.4s ease-out;
  will-change: transform;
}

.vessels-card:hover img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.vessels-content {
  padding: 25px 25px 25px 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background-color: #f9f9f7;
  container-type: inline-size;
}

.vessels-content h2 {
  font-size: clamp(14px, 7cqw, 22px);
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--color-text-dark);
  line-height: 1.4;
  text-align: left;
  min-height: 2.8em;
}
.vessels-content h3 {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 15px;
  color: var(--color-text-muted);
  line-height: 1.4;
  text-align: left;
}

.vessels-content p {
  font-weight: 500;
  line-height: 1.6;
  margin: 0 0 20px;
  flex-grow: 1;
  font-size: 14px;
  color: var(--color-text-muted);
}
.specs-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 400px;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 500;
}

.spec-item i {
  font-size: 17px;
  width: 24px;
  text-align: center;
}

/* Vessel Image & Specification Badge */
.vessels-image-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px; /* Matches the rounded corners in your image */
  overflow: hidden; /* Keeps everything neatly tucked inside the corners */
  background-color: var(
    --color-primary-gold
  ); /* Optional: a background color for when the image is loading */
}

.badge-specs {
  position: absolute;
  top: 16px; /* Distance from the top edge of the image */
  right: 16px; /* Distance from the right edge of the image */
  z-index: 10; /* Ensures it sits physically above the image layer */

  /* Styling to match your design */
  background-color: var(--color-primary-gold); /* Vibrant yellow */
  color: #333; /* Dark text */
  padding: 8px 16px;
  font-weight: bold;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  border-radius: 20px; /* Pill shape */
  text-transform: uppercase;
}

/* ============================================================================
  2. VESSEL DETAILS DIALOG
  ============================================================================ */
dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

dialog {
  /* Positioning */
  position: fixed;
  top: 50%;
  left: 50%;
  margin: 0; /* Remove default browser dialog margins */

  /* Layout & Sizing */
  border: none;
  border-radius: 8px;
  width: 90%;
  max-width: 900px;
  overflow-x: hidden;
  box-sizing: 0px 0px 15px 1px rgba(0, 0, 0, 0.49);
  /* Closed State (Hidden & Scaled Down) */
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.95);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    display 0.3s allow-discrete;
}

/* Open State (Visible & Full Size) */
dialog[open] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Entry Animation Starting State */
@starting-style {
  dialog[open] {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }
}

/* Vessel Specification Table */
.spec-background {
  max-width: 100%;
  height: 100%;
  z-index: -1;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
}

.spec-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  background: #fff;
  border: 2px solid #f0ede4;
}
.spec-card-header {
  background: var(--color-primary-gold);
  padding: 14px 20px;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.6), /* Top inset highlight */
    inset 0 -1px 2px rgba(0, 0, 0, 0.15),   /* Bottom inset shadow */
    0 4px 10px rgba(0, 0, 0, 0.25);          /* Outer drop shadow */
    
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.spec-card-header p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
    font-weight: 500;
}

.spec-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--color-table-primary);
}
.spec-row:hover {
  background-color: var(--color-table-primary-hover);
  border-radius: 6px; /* Softens the edges of the hover highlight */
}
.spec-row:nth-child(even) {
  background: var(--color-table-secondary);
}
.spec-row:nth-child(even):hover {
  background: var(
    --color-table-secondary-hover
  ); /* A slightly darker shade than #fdfaf0 */
}

.spec-row i {
  font-size: 0.8rem !important;
  color: var(--color-secondary-gold);
}
.spec-key {
  width: 38%;
  padding: 11px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-secondary-gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.spec-val {
  flex: 1;
  padding: 11px 16px;
  font-size: 0.77rem;
  color: #333;
  /* display: flex; */
  align-items: center;
  border-left: 2px solid var(--color-primary-gold);
  font-family: "Hind", sans-serif;
  text-align: right;
}

.spec-icons {
  display: flex;
  align-items: center;
  padding-left: 15px;
  margin-right: -7px;
  width: 34px;
  margin: auto;
}

.spec-container {
  display: flex;
  gap: 12px;
  padding: 5px;
  margin: 0 auto;
  padding: 20px 20px 20px 20px;
  position: relative;
}

.spec-column {
  flex: 1; /* Both columns take up equal space */
  padding: 5px;
  border-radius: 8px;
}


.vessel-title {
  font-weight: 800;
  color: var(--color-text-dark-secondary);
  letter-spacing: -0.5px;
  font-size: 1.2rem;
}

/* ============================================================================
  3. VESSEL RESPONSIVE LAYOUT
  ============================================================================ */
@media screen and (max-width: 800px) {
  .hero-container img {
    max-width: 100%; /* Shrinks down perfectly, never stretches up */
    height: auto;
  }
  .hero-container {
    height: auto;
  }
  .hero-carousel-container {
    height: auto;
  }
  .hero-carousel-container .carousel-item img {
    max-width: 100%; /* Shrinks down perfectly, never stretches up */
    height: auto;
  }
}
@media (max-width: 992px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .vessels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .vessels-grid {
    grid-template-columns: 1fr;
  }
  .spec-container {
    flex-direction: column-reverse;
  }
  .spec-background {
    display: none !important;
  }
}

/* Vessel Statistics */
.stats-container {
  display: flex;
  gap: 12px;
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
}

.stat-card {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-text-dark);
  margin: 4px 0 2px 0;
  line-height: 1.1;
}

.label {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Dialog Close Control */
.btn-close {
  position: absolute !important;
  top: 24px;
  right: 28px;
  color: #5c4400;
  opacity: 0.8;
  font-size: 28px;
  font-weight: 400;
  text-shadow: none;
  padding: 0;
  margin: 0;
  line-height: 1;
  z-index: 10;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
  cursor: pointer;
  outline: inherit;
}

/* ============================================================================
  4. VESSEL IMAGE SLIDER
  ============================================================================ */
/* Outer Gold Border Wrapper */
.slider-img-wrapper {
    position: relative;
    background-color: var(--color-primary-gold); /* Gold background */
    padding: 5px;
    border-radius: 15px; /* Outer border radius */
    box-sizing: border-box;
}

/* Fix Tiny Slider dynamic containers */
.tns-outer, 
.tns-ovh, 
.tns-inner {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    border-radius: 10px; /* Forces slider viewport to match inner radius */
}

/* Image styling */
.my-slider img {
    display: block;
    width: 100%;
    height: auto;

}

/* Force dots into absolute positioning so they don't add height */
.tns-nav {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
      margin-bottom: 10px;
}

/* Style and position the navigation arrows inside the image */
.tns-controls {
    position: absolute;
    /* Lock directly to the inner top/bottom edge of the wrapper */
    top: 5px;
    bottom: 5px;
    left: 5px;
    right: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center; /* True vertical alignment strictly across image height */
    padding: 0 10px;
    z-index: 10;
    pointer-events: none;
}

.tns-controls button {
    pointer-events: auto;
    background: var(--color-text-dark-secondary);
    opacity: 0.8;
    color: var(--color-text-light);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    
    /* Perfect flex centering for icon/text elements */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1; /* Strips vertical font baseline shift */
    padding: 0;
    margin: 0;
    
    transition: background 0.2s ease;
}

.tns-controls button:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Dots / Radio Navigation Styling */


.tns-nav button {
    width: 12px;
    height: 12px;
    margin: 0 4px;
    border-radius: 50%;
    border: 2px solid var(--color-primary-gold);
    background-color: transparent;
    padding: 0;
    cursor: pointer;
}

.tns-nav button.tns-nav-active {
    background-color: var(--color-primary-gold);
}
