/* Boat Gallery Styles */
.boat-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.boat-gallery a {
    display: block;
    width: 200px;
    height: 150px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.boat-gallery a:hover {
    transform: scale(1.02);
}

.boat-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Archive Grid Styles */
.boats-archive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

@media (min-width: 600px) {
    .boats-archive {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .boats-archive {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .boats-archive {
        grid-template-columns: repeat(4, 1fr);
    }
}

.boat-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.boat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.boat-card .entry-header {
    padding: 1.5rem 1.5rem 0;
}

.boat-card .entry-title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    line-height: 1.3;
}

.boat-card .entry-title a {
    text-decoration: none;
    color: inherit;
}

.boat-card .entry-title a:hover {
    color: #0073aa;
}

.boat-card .entry-thumbnail {
    margin: 0;
    overflow: hidden;
}

.boat-card .entry-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.boat-card:hover .entry-thumbnail img {
    transform: scale(1.05);
}

.boat-card .entry-summary {
    padding: 1.5rem;
    padding-top: 1rem;
}

.boat-card .entry-summary p {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: #666;
}

.boat-card .entry-summary p:last-child {
    margin-bottom: 0;
    margin-top: 1rem;
}

.boat-card .entry-summary p:last-child a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.boat-card .entry-summary p:last-child a:hover {
    text-decoration: underline;
}


/* Striped table if not inherited from WP */

.is-style-stripes {
  border-collapse: collapse; /* Removes gaps between borders */
  width: 100%;
}

/* Apply background color to every even row */
.is-style-stripes tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* Optional: Add padding and border for a cleaner look */
.is-style-stripes th, 
.is-style-stripes td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

/* Front-end Form Styles */
.boat-form-wrapper {
    margin: 0 auto;
    padding: 2rem;
    background-color:#ffffff;
}

@media (min-width: 768px) {
    .boat-form-wrapper {
        width: 1000px !important;
    }
}

.boat-form-wrapper .acf-form {
    width: 100% !important;
}

.boat-form-wrapper .acf-fields {
    width: 100% !important;
}

.boat-form-wrapper .acf-field {
    width: 100% !important;
    margin-bottom: 1.5rem;
}

.boat-form-wrapper .acf-field input[type="text"],
.boat-form-wrapper .acf-field textarea,
.boat-form-wrapper .acf-field select {
    width: 100%;
    max-width: none;
}

/* hide gallery "bulk actions" dropdown */

.acf-gallery-sort{
    display:none;
}