.dive-spot-location-picker {
    margin: 20px 0;
}

.dive-spot-search-wrap {
    position: relative;
    z-index: 50;
    margin-bottom: 12px;
    max-width: 620px;
}

.dive-spot-field-label {
    display: block;
    margin-bottom: 6px;
}

.dive-spot-field-full {
    width: 100%;
}

.dive-spot-search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border: 1px solid #d7dee7;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(8, 25, 40, 0.12);
    margin-top: 8px;
    max-height: 260px;
    overflow: auto;
}

.dive-spot-map-canvas {
    position: relative;
    z-index: 1;
    width: 100%;
    border: 1px solid #d7dee7;
    border-radius: 12px;
    overflow: hidden;
}

.dive-spot-map-canvas.form-map {
    height: 360px;
}

.dive-spot-map-canvas.main-map {
    height: 560px;
}

.dive-spot-coordinates-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.dive-spot-coordinate-field {
    flex: 1 1 220px;
}

.dive-spot-images {
    margin: 20px 0;
}

.dive-spot-images-help {
    margin: 8px 0 12px;
}

.dive-spot-images-preview {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0 10px;
}

.dive-spot-submit-button,
.dive-spots-map-cta-link {
    display: inline-block;
    padding: 12px 20px;
    border: none;
    border-radius: 999px;
    background: #0b6bcb;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
}

.dive-spot-hidden-input,
.dive-spot-existing-gallery-source {
    display: none;
}

.dive-spots-map-form {
    display: none;
}

.dive-spot-images-title {
    display: block;
    margin-bottom: 6px;
}

.dive-spot-images-copy {
    margin-top: 0;
}

.dive-spot-search-results,
.dive-spot-search-results button,
.dive-spot-search-results div {
    color: #183247;
}

.dive-spots-popup-card {
    min-width: 200px;
}

.dive-spots-popup-title {
    display: inline-block;
    color: #12324a;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 6px;
}

.dive-spots-popup-country {
    color: #4a657b;
    margin-bottom: 10px;
}

.dive-spots-popup-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #0b6bcb;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.dive-spot-detail-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 0 40px;
}

.dive-spot-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.dive-spot-detail-kicker {
    margin: 0 0 8px;
    color: #4a657b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
}

.dive-spot-detail-title {
    margin: 0;
    color: #12324a;
}

.dive-spot-detail-country {
    margin: 10px 0 0;
    color: #4a657b;
    font-size: 18px;
}

.dive-spot-detail-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid #c8d8e6;
    border-radius: 999px;
    color: #12324a;
    text-decoration: none;
    font-weight: 700;
    background: #fff;
}

.dive-spot-detail-gallery {
    margin-bottom: 28px;
}

.dive-spot-detail-gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
}

.dive-spot-detail-gallery-item {
    grid-column: span 4;
    min-height: 180px;
    border-radius: 18px;
    overflow: hidden;
    background: #dce8f2;
    box-shadow: 0 14px 34px rgba(10, 36, 56, 0.12);
}

.dive-spot-detail-gallery-item.is-featured {
    grid-column: span 12;
    min-height: 420px;
}

.dive-spot-detail-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dive-spot-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.dive-spot-detail-content,
.dive-spot-detail-sidebar {
    background: #fff;
    border: 1px solid #d7dee7;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 16px 38px rgba(10, 36, 56, 0.08);
}

.dive-spot-detail-text {
    color: #183247;
    line-height: 1.7;
}

.dive-spot-detail-map {
    height: 320px;
    margin-top: 14px;
}

.dive-spot-detail-coordinates {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 14px 0 0;
    color: #4a657b;
}

@media (max-width: 900px) {
    .dive-spot-detail-gallery-item,
    .dive-spot-detail-gallery-item.is-featured {
        grid-column: span 12;
        min-height: 220px;
    }

    .dive-spot-detail-layout {
        grid-template-columns: 1fr;
    }
}

.dive-spot-detail-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 0 48px;
}

.dive-spot-detail-hero {
    margin-bottom: 28px;
}

.dive-spot-detail-hero-media {
    border-radius: 28px;
    overflow: hidden;
    min-height: 420px;
    background: linear-gradient(135deg, #dbe9f5, #b6d4eb);
    box-shadow: 0 24px 56px rgba(10, 36, 56, 0.16);
}

.dive-spot-detail-hero-image {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
}

.dive-spot-detail-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.dive-spot-detail-info {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
    gap: 24px;
    margin-bottom: 28px;
}

.dive-spot-detail-copy,
.dive-spot-detail-meta,
.dive-spot-detail-map-section {
    background: #fff;
    border: 1px solid #d7dee7;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 16px 38px rgba(10, 36, 56, 0.08);
}

.dive-spot-detail-copy h2,
.dive-spot-detail-meta h2,
.dive-spot-detail-map-section h2,
.dive-spot-detail-gallery-tail h2 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #12324a;
}

.dive-spot-detail-meta-list {
    display: grid;
    gap: 14px;
}

.dive-spot-detail-meta-item {
    padding: 14px 16px;
    border-radius: 18px;
    background: #f5f9fc;
    border: 1px solid #dbe5ee;
}

.dive-spot-detail-meta-label {
    display: block;
    margin-bottom: 6px;
    color: #5a7388;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.dive-spot-detail-section-head {
    margin-bottom: 14px;
}

.dive-spot-detail-map-section {
    margin-bottom: 28px;
}

.dive-spot-detail-map {
    height: 380px;
    margin-top: 0;
}

.dive-spot-detail-gallery-tail {
    margin-top: 8px;
}

.dive-spot-detail-gallery-tail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.dive-spot-detail-gallery-tail-item {
    display: block;
    min-height: 220px;
    border-radius: 22px;
    overflow: hidden;
    background: #dce8f2;
    box-shadow: 0 14px 34px rgba(10, 36, 56, 0.12);
}

.dive-spot-detail-gallery-tail-image {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}

@media (max-width: 980px) {
    .dive-spot-detail-info {
        grid-template-columns: 1fr;
    }

    .dive-spot-detail-gallery-tail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .dive-spot-detail-hero-media,
    .dive-spot-detail-hero-image {
        min-height: 260px;
    }

    .dive-spot-detail-gallery-tail-grid {
        grid-template-columns: 1fr;
    }
}

.dive-spot-detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.dive-spot-detail-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: #0b6bcb;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.dive-spot-detail-edit-section {
    margin-top: 32px;
    background: #fff;
    border: 1px solid #d7dee7;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 16px 38px rgba(10, 36, 56, 0.08);
}

.dive-spot-detail-edit-form-wrap {
    margin-top: 16px;
}

.dive-spot-detail-edit-section {
    border: none;
    box-shadow: none;
    background: transparent;
    padding-left: 0;
    padding-right: 0;
}
