/* Landing */
.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.photo-tile {
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: linear-gradient(135deg, rgba(56, 185, 236, 0.20), rgba(15, 23, 42, 0.06));
    display: grid;
    place-items: center;
    color: #6b7280;
    font-weight: 600;
    overflow: hidden;
}

.photo-tile img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

@media (max-width: 900px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }
}

/* Week-group schedule layout (supervisor dashboard + calendar) */
.week-groups {
    display: grid;
    gap: 1.25rem;
}

.week-group {
    padding-left: 1rem;
    border-left: 4px solid var(--accent);
}

.week-title {
    margin: 0 0 0.75rem;
}

.day-group {
    margin-top: 1rem;
}

.day-group:first-child {
    margin-top: 0;
}

.day-title {
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.assignment-list,
.booking-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.assignment-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eef2f7;
}

.assignment-item:last-child {
    border-bottom: none;
}

.assignment-main {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    flex-wrap: wrap;
}

.assignment-date {
    font-weight: 600;
}

.assignment-time {
    color: #374151;
}

.booking-list {
    margin-top: 0.5rem;
    padding-left: 1rem;
}

.booking-item,
.booking-empty {
    padding: 0.25rem 0;
    color: #4b5563;
}

.booking-empty {
    font-style: italic;
}

.booking-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: lowercase;
    margin-right: 0.25rem;
}

.assignment-meta {
    color: #6b7280;
    font-size: 0.9rem;
}

.assignment-sub {
    margin-top: 0.35rem;
    padding-left: 1rem;
}

.assignment-line {
    color: #4b5563;
}

/* Calendar: week view */
.week-calendar {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 1000px) {
    .week-calendar {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

.calendar-day {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.75rem;
    background: #fff;
    min-width: 0;
}

.calendar-day-title {
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.calendar-day .assignment-item {
    padding: 0.6rem 0;
}

@media (max-width: 800px) {
    .week-groups {
        gap: 0.85rem;
    }

    .week-group {
        padding-left: 0.75rem;
        border-left-width: 3px;
    }

    .week-title {
        margin: 0 0 0.5rem;
    }

    .day-group {
        margin-top: 0.75rem;
    }

    .assignment-item {
        padding: 0.6rem 0;
    }

    .calendar-day {
        padding: 0.6rem;
    }
}

/* Join / pricing cards */
.join-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.join-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
}

.join-card-title {
    margin-top: 0;
}

.join-list,
.join-steps {
    margin: 0.5rem 0 0;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.plan-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
}

.plan-card--featured {
    border-color: rgba(56, 185, 236, 0.6);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.plan-title {
    margin-top: 0;
}

.plan-list {
    margin: 0.5rem 0 0;
}

.plan-price {
    margin-top: 0.75rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    .join-grid {
        grid-template-columns: 1fr;
    }

    .plan-grid {
        grid-template-columns: 1fr;
    }
}

/* Equipment */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.tool-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
}

.tool-card-title {
    margin: 0 0 0.5rem;
}

.tool-card-list {
    margin: 0;
    padding-left: 1.15rem;
}

.tool-card-list ul {
    margin-top: 0.4rem;
}

@media (max-width: 900px) {
    .tool-grid {
        grid-template-columns: 1fr;
    }
}

.equipment-cta {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.equipment-cta-text {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Opening hours week calendar */
.oh-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.oh-nav-btn {
    margin-top: 0;
}

.oh-week-label {
    font-weight: 600;
    font-size: 1rem;
}

.oh-cal-wrap {
    overflow-x: auto;
}

.oh-cal {
    min-width: 560px;
}

.oh-headers,
.oh-grid-row {
    display: grid;
    grid-template-columns: 3.5rem repeat(7, minmax(0, 1fr));
}

.oh-time-spacer {
    border-right: 1px solid #e5e7eb;
}

.oh-col-header {
    padding: 0.45rem 0.25rem;
    text-align: center;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    border-left: none;
    background: #f9fafb;
}

.oh-col-header:first-of-type {
    border-left: 1px solid #e5e7eb;
}

.oh-col-header.oh-col-today {
    background: rgba(56, 185, 236, 0.12);
    border-top-color: var(--accent);
    border-right-color: var(--accent);
}

.oh-day-name {
    font-weight: 700;
    font-size: 0.875rem;
}

.oh-day-date {
    font-size: 0.78rem;
    color: #6b7280;
}

.oh-grid-row {
    height: 600px;
    overflow: hidden;
}

.oh-time-labels {
    position: relative;
    border-right: 1px solid #e5e7eb;
}

.oh-hour-label {
    position: absolute;
    right: 0.3rem;
    font-size: 0.68rem;
    color: #9ca3af;
    line-height: 1;
    transform: translateY(-50%);
    white-space: nowrap;
}

.oh-day-col {
    position: relative;
    border: 1px solid #e5e7eb;
    border-left: none;
    border-top: none;
    background: #fff;
}

.oh-day-col.oh-col-today {
    background: rgba(56, 185, 236, 0.04);
    border-right-color: var(--accent);
}

.oh-hour-line {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px solid #f0f0f0;
    pointer-events: none;
}

.oh-open-block {
    position: absolute;
    left: 3px;
    right: 3px;
    background: rgba(56, 185, 236, 0.18);
    border-left: 3px solid var(--accent);
    border-radius: 3px;
    overflow: hidden;
    padding: 2px 5px;
    box-sizing: border-box;
    min-height: 1rem;
}

.oh-block-time {
    font-size: 0.7rem;
    font-weight: 600;
    color: #0369a1;
    overflow-wrap: break-word;
}

.oh-closed-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    color: #d1d5db;
    font-style: italic;
    white-space: nowrap;
}

/* Shift block (background layer) */
.oh-shift-block {
    position: absolute;
    left: 0;
    right: 0;
    background: rgba(56, 185, 236, 0.08);
    border-top: 1px solid;
    border-left: 3px solid;
    border-color: rgba(56, 185, 236, 0.4);
    z-index: 1;
    padding: 2px 4px;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.oh-shift-block--vacant {
    background: rgba(156, 163, 175, 0.08);
    border-left-color: rgba(156, 163, 175, 0.4);
}

.oh-shift-time {
    font-size: 0.68rem;
    font-weight: 700;
    color: #0369a1;
    white-space: nowrap;
}

.oh-shift-supervisors {
    font-size: 0.68rem;
    color: #374151;
    overflow-wrap: break-word;
}

.oh-shift-schedule {
    font-size: 0.62rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Open-hours sub-block (within a shift, shows publicly open period) */
.oh-open-sub-block {
    position: absolute;
    left: 3px;
    right: 3px;
    background: rgba(165, 206, 162, 0.389);
    /* border-left: 3px solid rgba(159, 187, 178, 0.7); */
    border-radius: 2px;
    z-index: 0;
    pointer-events: none;
}

/* Booking block (top layer) */
.oh-booking-block {
    position: absolute;
    left: 4px;
    right: 4px;
    background: rgba(245, 158, 11, 0.22);
    border-left: 3px solid #f59e0b;
    border-radius: 3px;
    z-index: 3;
    padding: 2px 4px;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-height: 1rem;
}

.oh-booking-member {
    font-size: 0.68rem;
    font-weight: 700;
    color: #92400e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oh-booking-time {
    font-size: 0.65rem;
    color: #78350f;
    white-space: nowrap;
}

/* Legend */
.oh-legend {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.oh-legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #374151;
}

.oh-legend-item::before {
    content: '';
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 2px;
    flex-shrink: 0;
}

.oh-legend-shift::before {
    background: rgba(56, 185, 236, 0.2);
    border-left: 3px solid rgba(56, 185, 236, 0.6);
}

.oh-legend-open::before {
    background: rgba(165, 206, 162, 0.389);
    border-left: 3px solid rgb(165, 206, 162);
}

.oh-legend-booking::before {
    background: rgba(245, 158, 11, 0.28);
    border-left: 3px solid #f59e0b;
}

@media (max-width: 800px) {
    .oh-cal {
        min-width: 440px;
    }

    .oh-headers,
    .oh-grid-row {
        grid-template-columns: 2.75rem repeat(7, minmax(0, 1fr));
    }

    .oh-day-name {
        font-size: 0.78rem;
    }

    .oh-day-date {
        font-size: 0.7rem;
    }

    .oh-grid-row {
        height: 360px;
    }
}
