.location-details__table {
    border-collapse: collapse;
    width: 100%;
    max-width: 600px;
    margin-bottom: 1.5em;
}

.location-details__table th,
.location-details__table td {
    padding: 0.4em 0.8em;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e0e0e0;
}

.location-details__table th {
    font-weight: 600;
    width: 40%;
    color: #555;
}

.location-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 0.3em;
    cursor: pointer;
    vertical-align: middle;
}

.location-tooltip .dashicons {
    font-size: 1em;
    width: 1em;
    height: 1em;
    color: #888;
}

.location-tooltip__text {
    visibility: hidden;
    opacity: 0;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 0.4em 0.7em;
    border-radius: 4px;
    font-size: 0.85em;
    white-space: nowrap;
    position: absolute;
    left: 1.5em;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    transition: opacity 0.2s;
    pointer-events: none;
}

@media (max-width: 600px) {
    .location-tooltip__text {
        white-space: normal;
        width: 160px;
        max-width: calc(100vw - 3em);
        left: 50%;
        top: 1.8em;
        transform: translateX(-50%);
    }
}

.location-tooltip:hover .location-tooltip__text,
.location-tooltip:focus .location-tooltip__text {
    visibility: visible;
    opacity: 1;
}

.location-map-link .dashicons {
    font-size: 1.4em;
    width: 1.4em;
    height: 1.4em;
    color: #c00;
    transition: color 0.2s;
}

.location-map-link:hover .dashicons {
    color: #900;
}

.location-details__table thead th {
    width: auto;
    color: inherit;
    white-space: nowrap;
}

.location-similar {
    border-top: 1px solid #e0e0e0;
    margin-bottom: 1.5em;
}

.location-similar__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 0;
    border-bottom: 1px solid #e0e0e0;
}

.location-similar__image-col {
    width: 181px;
    flex-shrink: 0;
}

.location-similar__image-col img {
    width: 181px;
    height: auto;
    display: block;
    transition: opacity 0.2s;
}

.location-similar__image-col:hover img {
    opacity: 0.85;
}

.location-similar__name-col {
    flex: 1;
    padding-left: 1em;
}

.location-details__table--timeline {
    width: 100%;
    max-width: 100%;
}

.location-details__table--timeline th:last-child,
.location-details__table--timeline td:last-child {
    width: 100%;
}

.timeline-tooltip .location-tooltip__text {
    white-space: normal;
    width: 200px;
    max-width: calc(100vw - 3em);
    left: 0;
    top: 1.8em;
    transform: none;
}

.location-links {
    margin-bottom: 1.5em;
}

.location-links__item {
    padding: 0.3em 0;
}

.location-links__embed {
    margin: 1em 0;
}

.location-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5em;
    margin-bottom: 1.5em;
}

.location-gallery__item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    border-radius: 3px;
    transition: opacity 0.2s;
}

.location-gallery__item:hover img {
    opacity: 0.85;
}
