/* Copied from theme to ensure plugin-provided templates have the same base styles */
.course-holes {
    list-style: none;
    padding: 0;
    margin: 0
}

.course-hole-item {
    margin: 0 0 12px
}

.hole-link {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: inherit
}

.hole-thumb {
    flex: 0 0 128px;
    margin-right: 16px;
    overflow: hidden;
}

.hole-thumb img {
    width: 128px;
    height: 86px;
    max-width: 128px;
    max-height: 86px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.hole-info {
    flex: 1
}

.hole-title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    text-align: left;
}

.hole-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.hole-stat {
    font-size: 0.95rem
}

.hole-stat strong {
    font-weight: 700;
    margin-right: 4px
}

.stat-value {
    font-weight: 400
}

.fgt-holes-columns {
    display: flex;
    justify-content: center;
    margin: 30px 0
}

.fgt-holes-columns.single {
    justify-content: center
}

.fgt-holes-columns .col {
    width: 40%;
}

.fgt-holes-columns .col ul {
    list-style: none;
    padding: 0;
    margin: 0
}

.fgt-hole-item {
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04)
}

.fgt-hole-item a {
    color: #2a7f2a;
    text-decoration: none
}

.fgt-hole-meta {
    font-size: 0.95rem;
    color: #333
}

.fgt-hole-meta strong {
    font-weight: 700;
    margin-right: 6px
}

@media(max-width:800px) {
    .fgt-holes-columns {
        flex-direction: column
    }

    .fgt-holes-columns .col {
        width: 100%
    }
}

.hole-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px
}

.hole-image-placeholder img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    opacity: 0.9
}

.hole-meta {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 16px
}

.hole-stats {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.hole-title-main {
    font-size: 1.5rem;
    margin-bottom: 12px
}

.back-to-course {
    margin-top: 18px
}

/* Course top layout: featured image left, content + fields right */
.course-top {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}
.course-top-left {
    flex: 0 0 340px; /* reasonable image column width */
}
.course-top-left .course-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}
/* Limit hole images to 550px max height on single-hole pages */
.single-hole .course-top-left img.fgt-course-top-image {
    max-height: 550px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Video embed styles */
.fgt-video-embed {
    margin: 1rem 0;
    max-width: 100%;
}

/* Responsive YouTube embed container */
.fgt-video-youtube .fgt-video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 6px;
}

.fgt-video-youtube .fgt-video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Local video styling */
.fgt-video-local video {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.course-top-right {
    flex: 1 1 auto;
}
.course-desc-heading {
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.course-description {
    margin-bottom: 0.75rem;
    text-align: justify;
}

/* Course fields block: each field is a horizontal row (label left, value right) */
.course-field-block {
    display: flex;
    flex-direction: column;
    /* Reduce vertical spacing between adjacent fields so Par and Stroke Index sit closer together */
    gap: 0.25rem;
    margin-top: 0.5rem;
}
.course-field {
    display: flex;
    align-items: center;
    gap: 0.6rem; /* small padding between label and value */
    /* reduce vertical padding so rows are tighter */
    padding: 0.12rem 0;
    border-bottom: 1px dashed rgba(0,0,0,0.04);
}

/* Ensure hole-length section has a clear separation from the preceding fields
   — keep a similar visual gap to the previous default spacing. */
.fgt-hole-tees {
    margin-top: 0.5rem;
}
.course-field strong {
    font-weight: 700;
    margin-right: 0.25rem;
}
.course-field.course-field-image img {
    max-width: 220px;
    height: auto;
    border-radius: 4px;
}

/* Visual separator between course info and holes list */
.course-holes-separator {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.08);
}

@media (max-width: 800px) {
    .course-top { flex-direction: column; }
    .course-top-left { flex: 0 0 auto; }
    .course-field.course-field-image img { max-width: 100%; }
}

/* Admin: Tee colours settings table styling */
.fgt-tee-table {
    width: calc(100% - 120px);
    max-width: 1200px;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}
.fgt-tee-table thead th { text-align: center; }
.fgt-tee-table th.col-tee { width: 180px; }
.fgt-tee-table th.col-desc { width: 260px; }
/* Make Common Usage about 50% wider relative to previous value */
.fgt-tee-table th.col-usage { width: 48%; }
.fgt-tee-table th.col-enabled { width: 120px; }
.fgt-tee-table td { vertical-align: top; }
.fgt-tee-table td.tee-label { padding: 8px 10px; }
.fgt-tee-label-wrap { display:flex; align-items:center; gap:8px; }
.fgt-tee-handle { cursor:move; display:inline-block; margin-right:6px; }
.fgt-tee-label-input { font-weight:700; width:100%; box-sizing:border-box; }
.fgt-tee-enabled-label { display:inline-block; }

@media (max-width:800px) {
    .fgt-tee-table { width: 100%; }
    .fgt-tee-table th.col-usage { width: auto; }
}
