/**
 * Booking Form - Extras Grid Styles
 * Contains: .extras-grid, .extra-item, .extra-thumb, .extra-content, .extra-title
 */

/* Extras Grid */
.extras-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.extra-item {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    padding: 0.75rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    position: relative;
    min-height: 140px;
    width: 100%;
}

.extra-item:hover {
    border-color: #006db2;
    background: #006db2;
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(0,175,163,0.12);
}

.extra-item.selected {
    border-color: #006db2;
    background: #006db2;
    box-shadow: 0 12px 24px rgba(0,175,163,0.18);
}

.extra-item.locked {
    border-color: rgba(34,197,94,0.45);
    box-shadow: 0 12px 32px rgba(34,197,94,0.16);
    cursor: not-allowed;
}

.extra-item.locked .extra-title::after {
    content: 'Free';
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.extra-thumb {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    border: 1px solid rgba(203, 213, 225, 0.8);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.extra-thumb img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.extra-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.extra-title {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

/* Tooltip */
.extra-item::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, -6px);
    background: rgba(15,23,42,0.92);
    color: #f8fafc;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    line-height: 1.3;
    width: max-content;
    max-width: 220px;
    box-shadow: 0 12px 24px rgba(15,23,42,0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: normal;
    z-index: 5;
}

.extra-item::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, -2px);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(15,23,42,0.92) transparent transparent transparent;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 5;
}

.extra-item:hover:not([data-tooltip=""])::after,
.extra-item:focus:not([data-tooltip=""])::after {
    opacity: 1;
    transform: translate(-50%, -14px);
}

.extra-item:hover:not([data-tooltip=""])::before,
.extra-item:focus:not([data-tooltip=""])::before {
    opacity: 1;
    transform: translate(-50%, -6px);
}

.extra-item:focus-visible {
    outline: 3px solid rgba(0,175,163,0.45);
    outline-offset: 4px;
}

/* Responsive - Tablet: 3 columns */
@media (min-width: 769px) and (max-width: 1024px) {
    .extras-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Responsive - Mobile: 2 columns */
@media (max-width: 768px) {
    .extras-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Responsive - Small Mobile: 2 columns with smaller gap */
@media (max-width: 420px) {
    .extras-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }
}
