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

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

.dive-spots-map-toolbar {
    margin-bottom: 14px;
    max-width: 620px;
}

.dive-spots-map-toolbar-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.dive-spots-map-toolbar-row .dive-spots-map-filter-input {
    flex: 1 1 auto;
}

.dive-spots-map-filter-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #c8d4df;
    border-radius: 14px;
    background: #fff;
    color: #183247;
    box-sizing: border-box;
}

.dive-spots-map-more-button,
.dive-spots-map-secondary-button {
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid #c8d4df;
    border-radius: 14px;
    background: #fff;
    color: #12324a;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.dive-spots-map-modal[hidden] {
    display: none;
}

.dive-spots-map-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
}

body.dive-spots-modal-open {
    overflow: hidden;
}

.dive-spots-map-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 23, 38, 0.56);
}

.dive-spots-map-modal-dialog {
    position: relative;
    width: min(1080px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    margin: 16px auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(8, 23, 38, 0.28);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dive-spots-map-modal-head,
.dive-spots-map-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid #e4ecf3;
}

.dive-spots-map-modal-actions {
    border-top: 1px solid #e4ecf3;
    border-bottom: 0;
    justify-content: flex-end;
}

.dive-spots-map-modal-head h3 {
    margin: 0;
    color: #12324a;
}

.dive-spots-map-modal-close {
    border: none;
    background: transparent;
    color: #12324a;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.dive-spots-map-modal-body {
    padding: 24px;
    overflow: auto;
}

.dive-spots-map-filter-section + .dive-spots-map-filter-section {
    margin-top: 28px;
}

.dive-spots-map-filter-section h4 {
    margin: 0 0 16px;
    color: #12324a;
}

.dive-spots-map-filter-grid,
.dive-admin-criteria-section,
.dive-criteria-field {
    display: grid;
    gap: 12px;
}

.dive-criteria-label-content {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.dive-criteria-label-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 11px;
    background: linear-gradient(135deg, #dff2ff 0%, #f8fbff 100%);
    border: 1px solid #cfe0ec;
    font-size: 17px;
    line-height: 1;
    flex: 0 0 32px;
}

.dive-spots-map-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dive-criteria-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 12px;
    padding: 12px 14px;
    border: 1px solid #c8d4df;
    border-radius: 14px;
    background: #fff;
}

.dive-criteria-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 400;
    color: #183247;
}

.dive-spots-map-filter-input:focus {
    outline: none;
    border-color: #0b6bcb;
    box-shadow: 0 0 0 3px rgba(11, 107, 203, 0.14);
}

.dive-spots-map-filter-status {
    margin: 8px 0 0;
    color: #4a657b;
    font-size: 14px;
}

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

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

.dive-native-select {
    display: none !important;
}

.dive-custom-select {
    position: relative;
    width: 100%;
}

.dive-custom-select-trigger {
    width: 100%;
    min-height: 50px;
    padding: 12px 44px 12px 14px;
    border: 1px solid #c8d4df;
    border-radius: 14px;
    box-sizing: border-box;
    color: #183247;
    background: #fff;
    font: inherit;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    position: relative;
}

.dive-custom-select-trigger:focus {
    outline: none;
    border-color: #0b6bcb;
    box-shadow: 0 0 0 3px rgba(11, 107, 203, 0.14);
}

.dive-custom-select-label {
    display: block;
}

.dive-custom-select-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    line-height: 1;
    color: #183247;
}

.dive-custom-select-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    border: 1px solid #c8d4df;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(8, 25, 40, 0.14);
    overflow: hidden;
    max-height: 320px;
    overflow-y: auto;
}

.dive-custom-select.is-open .dive-custom-select-menu {
    display: block;
}

.dive-custom-select.is-open .dive-custom-select-trigger {
    border-color: #0b6bcb;
    box-shadow: 0 0 0 3px rgba(11, 107, 203, 0.14);
}

.dive-custom-select-option {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid #eef3f8;
    background: #fff;
    color: #183247;
    font: inherit;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}

.dive-custom-select-option:last-child {
    border-bottom: 0;
}

.dive-custom-select-option:hover,
.dive-custom-select-option:focus,
.dive-custom-select-option.is-selected {
    background: #eef6ff;
    outline: none;
}

.dive-spot-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #12324a;
}

.dive-spot-form input[type="text"],
.dive-spot-form input[type="number"],
.dive-spot-form select,
.dive-spot-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #c8d4df;
    border-radius: 14px;
    box-sizing: border-box;
    color: #183247;
    background: #fff;
    font: inherit;
    font-family: inherit !important;
    font-size: 16px;
    line-height: 1.4;
}

.dive-spot-form select {
    appearance: auto;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
}

.dive-spot-form select option,
.dive-spot-form select optgroup {
    font: inherit;
    font-family: inherit !important;
    font-size: 16px;
    line-height: 1.4;
}

.dive-spot-form input[type="text"]:focus,
.dive-spot-form input[type="number"]:focus,
.dive-spot-form select:focus,
.dive-spot-form textarea:focus {
    outline: none;
    border-color: #0b6bcb;
    box-shadow: 0 0 0 3px rgba(11, 107, 203, 0.14);
}

.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;
}

@media (max-width: 767px) {
    .dive-spots-map-toolbar {
        max-width: 100%;
    }

    .dive-spots-map-toolbar-row {
        flex-direction: column;
    }

    .dive-spots-map-filter-grid,
    .dive-criteria-options,
    .dive-criteria-form-grid {
        grid-template-columns: 1fr;
    }

    .dive-spot-coordinates-row {
        grid-template-columns: 1fr;
    }

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

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

.dive-spot-coordinates-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: flex-start;
}

.dive-criteria-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.dive-spot-coordinate-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

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

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

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

.dive-spot-image-frame {
    position: relative;
    flex: 0 0 168px;
    width: 168px;
    height: 168px;
    border: 1px solid #cfdae5;
    border-radius: 22px;
    background: linear-gradient(180deg, #f6f9fc 0%, #edf3f8 100%);
    overflow: hidden;
    padding: 0;
    cursor: grab;
    box-shadow: 0 10px 22px rgba(13, 34, 52, 0.08);
    box-sizing: border-box;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dive-spot-image-frame:not(.has-image) {
    cursor: default;
}

.dive-spot-image-frame:hover {
    border-color: #0b6bcb;
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(11, 52, 92, 0.16);
}

.dive-spot-image-frame:not(.has-image):hover {
    border-color: #cfdae5;
    transform: none;
    box-shadow: 0 10px 22px rgba(13, 34, 52, 0.08);
}

.dive-spot-image-frame.is-dragging {
    opacity: 0.45;
    cursor: grabbing;
}

.dive-spot-image-frame.is-drag-over {
    border-color: #0b6bcb;
    box-shadow: 0 0 0 4px rgba(11, 107, 203, 0.18);
    transform: translateY(-2px);
}

.dive-spot-image-frame-index {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(18, 50, 74, 0.84);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
    box-shadow: 0 6px 14px rgba(8, 22, 34, 0.16);
}

.dive-spot-image-frame-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #eef3f8;
}

.dive-spot-image-frame-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.dive-spot-image-drag-handle {
    position: absolute;
    right: 46px;
    top: 10px;
    z-index: 3;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(18, 50, 74, 0.78);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
    cursor: grab;
    box-shadow: 0 6px 14px rgba(8, 22, 34, 0.16);
}

.dive-spot-image-add {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    color: #88a0b5;
    font-size: 96px !important;
    font-weight: 300;
    line-height: 1 !important;
    padding: 0;
    margin: 0;
    transform: none;
    cursor: pointer;
}

.dive-spot-image-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(18, 50, 74, 0.88);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(8, 22, 34, 0.16);
}

.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-submit-button:disabled,
.dive-spot-submit-button.is-loading {
    opacity: 0.7;
    cursor: wait;
    background: #6f95b8;
}

.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;
}

.leaflet-popup-content-wrapper {
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(11, 34, 59, 0.2);
}

.leaflet-popup-content {
    margin: 0;
}

.leaflet-popup-tip {
    box-shadow: 0 10px 22px rgba(11, 34, 59, 0.12);
}

.dive-spots-popup-card {
    min-width: 240px;
    max-width: 280px;
    padding: 18px 18px 16px;
    color: #16324b;
}

.dive-spots-popup-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e8f2ff;
    color: #1259a7;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dive-spots-popup-eyebrow-spot {
    background: #e8f2ff;
    color: #1259a7;
}

.dive-spots-popup-eyebrow-center {
    background: #e7f8ef;
    color: #12724c;
}

.dive-spots-map-marker-shell {
    background: transparent;
    border: none;
}

.dive-spots-map-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 2px solid #ffffff;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(10, 36, 56, 0.28);
}

.dive-spots-map-marker-spot {
    background: linear-gradient(135deg, #0b63c8 0%, #14a0f5 100%);
}

.dive-spots-map-marker-center {
    background: linear-gradient(135deg, #178f57 0%, #42be78 100%);
}

.dive-spots-map-marker-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.dive-spots-popup-title {
    display: block;
    color: #0d2740;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
    margin-bottom: 12px;
}

.dive-spots-popup-title:hover,
.dive-spots-popup-title:focus {
    color: #0b63c8;
}

.dive-spots-popup-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.dive-spots-popup-rating-stars {
    color: #d39a18;
    font-size: 16px;
    letter-spacing: 1px;
}

.dive-spots-popup-rating-text {
    color: #16324b;
    font-size: 14px;
    font-weight: 700;
}

.dive-spots-popup-rating-count {
    color: #5e768c;
    font-size: 13px;
    font-weight: 600;
}

.dive-spots-popup-rating-empty .dive-spots-popup-rating-text {
    color: #5e768c;
}

.dive-spots-popup-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f4f8fc;
}

.dive-spots-popup-meta-label {
    color: #4e6a82;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dive-spots-popup-country {
    color: #1d3f5f;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
}

.dive-spots-popup-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0b63c8 0%, #0e7be9 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(11, 99, 200, 0.28);
    color: #ffffff !important;
}

.dive-spots-popup-link:hover,
.dive-spots-popup-link:focus {
    color: #ffffff !important;
    filter: brightness(1.05);
}

.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-meta-label .dive-criteria-label-content {
    align-items: center;
}

.dive-spot-detail-bottom-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #12324a;
}

.dive-spot-detail-bottom-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #dff2ff 0%, #f8fbff 100%);
    border: 1px solid #cfe0ec;
    font-size: 18px;
    line-height: 1;
    flex: 0 0 36px;
}

.dive-spot-detail-bottom-description {
    margin: 10px 0 0;
    color: #466173;
    line-height: 1.6;
}

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

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

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

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

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

.dive-center-logo-field {
    margin-bottom: 18px;
}

.dive-center-logo-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px solid #d7dee7;
    border-radius: 20px;
    background: #f7fbff;
}

.dive-center-logo-preview-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #dbe5ee;
    overflow: hidden;
    flex: 0 0 120px;
}

.dive-center-logo-preview-image,
.dive-center-logo-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dive-center-logo-preview-remove {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #355168;
    font-weight: 600;
}

.dive-center-logo-section {
    margin-bottom: 28px;
}

.dive-center-logo-card {
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid #d7dee7;
    background: #fff;
    box-shadow: 0 16px 38px rgba(10, 36, 56, 0.08);
}

.dive-center-logo-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    max-width: 100%;
    height: 180px;
    border-radius: 20px;
    background: #f7fbff;
    border: 1px solid #dbe5ee;
    overflow: hidden;
}

.dive-subscription-shell {
    margin: 32px 0;
}

.dive-subscription-hero {
    margin-bottom: 18px;
    padding: 28px 30px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(38, 148, 255, 0.22), transparent 32%),
        linear-gradient(135deg, #0f2d46 0%, #123f67 56%, #0b6bcb 100%);
    color: #fff;
    box-shadow: 0 20px 48px rgba(10, 36, 56, 0.2);
}

.dive-subscription-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #d9ecff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dive-subscription-hero h2 {
    margin: 16px 0 10px;
    color: #fff;
}

.dive-subscription-lead {
    margin: 0;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.dive-subscription-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.dive-subscription-status-card {
    background: linear-gradient(180deg, #f9fcff 0%, #eef6fd 100%);
}

.dive-subscription-status-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.dive-subscription-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e6eef5;
    color: #355168;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.dive-subscription-status-badge.is-active {
    background: #dbf4e6;
    color: #157347;
}

.dive-subscription-benefits {
    margin: 18px 0 0;
    padding-left: 18px;
    color: #355168;
    line-height: 1.7;
}

.dive-subscription-benefits li + li {
    margin-top: 8px;
}

.dive-subscription-plan-card {
    position: relative;
    overflow: hidden;
}

.dive-subscription-plan-card.is-current {
    border-color: #0b6bcb;
    box-shadow: 0 18px 42px rgba(11, 107, 203, 0.18);
}

.dive-subscription-plan-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 107, 203, 0.06), transparent 40%);
    pointer-events: none;
}

.dive-subscription-plan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.dive-subscription-plan-card h3 {
    margin: 0 0 12px;
    color: #12324a;
}

.dive-subscription-plan-copy {
    margin: 0 0 18px;
    color: #466173;
    line-height: 1.7;
}

.dive-subscription-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 20px;
}

.dive-subscription-metric {
    padding: 14px 16px;
    border-radius: 18px;
    background: #f5f9fd;
    border: 1px solid #dfe9f2;
}

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

.dive-subscription-metric strong {
    color: #12324a;
    font-size: 18px;
}

.dive-spots-limit-notice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #eef6fd;
    border: 1px solid #d7e6f2;
    color: #23445c;
    font-size: 14px;
}

.dive-spots-limit-notice.is-full {
    background: #fff2f0;
    border-color: #f2c7c0;
    color: #8a2f20;
}

.dive-spots-limit-notice-label {
    font-weight: 700;
}

.dive-spots-limit-notice-value {
    font-size: 15px;
}

.dive-nearby-card-title {
    margin: 0 0 10px;
    color: #12324a;
}

.dive-nearby-card-meta {
    margin: 0 0 10px;
    color: #466173;
    line-height: 1.6;
}

.dive-nearby-empty {
    text-align: center;
}

.dive-nearby-map-popup {
    min-width: 180px;
}

.dive-nearby-map-popup strong {
    display: block;
    margin-bottom: 6px;
    color: #12324a;
}

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

.dive-nearby-map-link:visited,
.dive-nearby-map-link:hover,
.dive-nearby-map-link:focus,
.dive-nearby-map-link:active {
    color: #fff !important;
}

.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-premium-grid {
        grid-template-columns: 1fr;
    }

    .dive-subscription-grid {
        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-subscription-hero {
        padding: 22px 20px;
    }

    .dive-subscription-metrics {
        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;
}

.dive-spots-my-list {
    margin: 32px 0;
}

.dive-spots-my-table-wrap {
    overflow-x: auto;
    border: 1px solid #d7dee7;
    border-radius: 20px;
    background: #fff;
}

.dive-spots-my-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.dive-spots-my-table th,
.dive-spots-my-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #e8eef4;
    text-align: left;
    color: #183247;
}

.dive-spots-my-table th {
    background: #f5f9fd;
    font-weight: 700;
}

.dive-spots-my-table tbody tr:last-child td {
    border-bottom: none;
}

.dive-spots-my-table a {
    color: #0b6bcb;
    font-weight: 700;
    text-decoration: none;
}

.dive-spots-my-table a:hover {
    text-decoration: underline;
}

.dive-spots-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.dive-spots-status-badge.is-publish {
    background: #e7f6ee;
    color: #1d6b41;
}

.dive-spots-status-badge.is-pending {
    background: #fff3dd;
    color: #8c6200;
}

.dive-spots-status-badge.is-draft,
.dive-spots-status-badge.is-future,
.dive-spots-status-badge.is-private {
    background: #e9eef5;
    color: #476176;
}

.dive-spot-rating-section {
    margin-top: 32px;
    padding: 24px;
    border: 1px solid #d7dee7;
    border-radius: 24px;
    background: #fff;
}

.dive-spot-visibility-section,
.dive-spot-temperature-section {
    margin-top: 32px;
    padding: 24px;
    border: 1px solid #d7dee7;
    border-radius: 24px;
    background: #fff;
}

.dive-spot-visibility-summary,
.dive-spot-temperature-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.dive-spot-visibility-summary-card,
.dive-spot-temperature-summary-card {
    padding: 16px 18px;
    border-radius: 18px;
    background: #f5f9fd;
}

.dive-spot-visibility-summary-label,
.dive-spot-temperature-summary-label {
    display: block;
    margin-bottom: 8px;
    color: #4a657b;
    font-size: 14px;
}

.dive-spot-visibility-summary-value,
.dive-spot-temperature-summary-value {
    display: block;
    color: #12324a;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 800;
}

.dive-spot-temperature-indicator {
    display: inline-block;
    margin-right: 8px;
    font-size: 24px;
    line-height: 1;
    vertical-align: -2px;
}

.dive-spot-visibility-indicator {
    display: inline-block;
    margin-right: 8px;
    font-size: 24px;
    line-height: 1;
    vertical-align: -2px;
}

.dive-spot-visibility-summary-meta,
.dive-spot-temperature-summary-meta {
    display: block;
    margin-top: 6px;
    color: #4a657b;
    font-size: 13px;
}

.dive-spot-premium-fields {
    padding: 18px 20px;
    margin-bottom: 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f6fbff 0%, #eef6ff 100%);
    border: 1px solid #d5e5f4;
}

.dive-spot-premium-fields-title {
    margin: 0 0 12px;
    color: #12324a;
    font-weight: 800;
}

.dive-spot-premium-fields textarea,
.dive-spot-premium-fields select,
.dive-spot-premium-fields input[type="number"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #c8d4df;
    border-radius: 14px;
    box-sizing: border-box;
    color: #183247;
    background: #fff;
}

.dive-spot-premium-fields-note {
    margin: 0;
    color: #4a657b;
}

.dive-spot-visibility-form,
.dive-spot-temperature-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.dive-spot-visibility-form p,
.dive-spot-temperature-form p {
    margin: 0;
}

.dive-spot-visibility-form p:last-child,
.dive-spot-temperature-form p:last-child {
    grid-column: 1 / -1;
}

.dive-spot-visibility-form label,
.dive-spot-temperature-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #12324a;
}

.dive-spot-visibility-form input[type="date"],
.dive-spot-visibility-form input[type="number"],
.dive-spot-temperature-form input[type="date"],
.dive-spot-temperature-form input[type="number"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #c8d4df;
    border-radius: 14px;
    box-sizing: border-box;
    color: #183247;
    background: #fff;
}

.dive-spot-visibility-form-note,
.dive-spot-temperature-form-note {
    display: block;
    margin-top: 8px;
    color: #4a657b;
    font-size: 14px;
}

.dive-spot-visibility-chart-shell,
.dive-spot-temperature-chart-shell {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.dive-spot-visibility-chart-scale,
.dive-spot-temperature-chart-scale {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #4a657b;
    font-size: 13px;
    padding: 6px 0 24px;
}

.dive-spot-visibility-chart-wrap,
.dive-spot-temperature-chart-wrap {
    min-width: 0;
    padding-bottom: 8px;
}

.dive-spot-visibility-chart,
.dive-spot-temperature-chart {
    display: grid;
    grid-template-columns: repeat(365, minmax(0, 1fr));
    gap: 1px;
    align-items: end;
    height: 260px;
    width: 100%;
    min-width: 0;
    padding: 14px 10px 28px;
    border-radius: 20px;
    background:
        linear-gradient(to top, rgba(18, 50, 74, 0.08) 1px, transparent 1px) 0 0 / 100% 33.333%,
        linear-gradient(180deg, #f8fbfe 0%, #eef5fb 100%);
    border: 1px solid #d7dee7;
}

.dive-spot-visibility-bar-slot,
.dive-spot-temperature-bar-slot {
    position: relative;
    height: 100%;
    display: flex;
    align-items: end;
    justify-content: center;
}

.dive-spot-visibility-bar,
.dive-spot-temperature-bar {
    width: 100%;
    border-radius: 999px 999px 4px 4px;
    background: #d7dee7;
    min-height: 2px;
}

.dive-spot-visibility-bar.has-data {
    background: linear-gradient(180deg, #0f7b6c 0%, #25b59c 100%);
    box-shadow: 0 8px 16px rgba(37, 181, 156, 0.18);
}

.dive-spot-temperature-bar.has-data {
    background: linear-gradient(180deg, #d96c1a 0%, #f2a33a 100%);
    box-shadow: 0 8px 16px rgba(242, 163, 58, 0.18);
}

.dive-spot-visibility-bar.is-empty,
.dive-spot-temperature-bar.is-empty {
    height: 2px;
    opacity: 0.7;
}

.dive-spot-visibility-month-label,
.dive-spot-temperature-month-label {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%) rotate(-65deg);
    transform-origin: center;
    color: #4a657b;
    font-size: 9px;
    white-space: nowrap;
}

.dive-spot-visibility-chart-note,
.dive-spot-temperature-chart-note {
    margin: 12px 0 0;
    color: #4a657b;
    font-size: 14px;
}

.dive-spot-rating-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.dive-spot-rating-average {
    font-size: 44px;
    line-height: 1;
    font-weight: 800;
    color: #12324a;
}

.dive-spot-rating-stars,
.dive-spot-rating-item-stars {
    color: #d39a18;
    letter-spacing: 1px;
    font-size: 18px;
}

.dive-spot-rating-count {
    margin: 6px 0 0;
    color: #4a657b;
}

.dive-spot-rating-form {
    margin-bottom: 24px;
}

.dive-spot-rating-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #c8d4df;
    border-radius: 14px;
    box-sizing: border-box;
    color: #183247;
    background: #fff;
}

.dive-spot-rating-picker {
    display: inline-flex;
    gap: 6px;
    margin-top: 8px;
}

.dive-spot-rating-picker.is-invalid {
    padding: 6px 8px;
    border: 1px solid #d93025;
    border-radius: 14px;
    background: #fff5f4;
}

.dive-spot-rating-star {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 34px;
    line-height: 1;
    color: #c8d4df;
    cursor: pointer;
    transition: transform 0.15s ease, color 0.15s ease;
}

.dive-spot-rating-star:hover {
    transform: scale(1.08);
}

.dive-spot-rating-star.is-active,
.dive-spot-rating-star.is-hover {
    color: #d39a18;
}

.dive-spot-rating-picker-note {
    display: block;
    margin-top: 8px;
    color: #4a657b;
    font-size: 14px;
}

.dive-spot-rating-picker.is-invalid + .dive-spot-rating-picker-note {
    color: #b42318;
}

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

.dive-spot-rating-item {
    padding: 16px 18px;
    border-radius: 18px;
    background: #f5f9fd;
}

.dive-spot-rating-item-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.dive-spot-rating-item-comment {
    margin: 10px 0 0;
    color: #304a5f;
}

.dive-spot-rating-user-result {
    margin-bottom: 24px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #f5f9fd;
}

.dive-spot-rating-user-title {
    margin: 0 0 8px;
    font-weight: 700;
    color: #12324a;
}

@media (max-width: 900px) {
    .dive-spot-visibility-summary,
    .dive-spot-temperature-summary,
    .dive-spot-visibility-form,
    .dive-spot-temperature-form {
        grid-template-columns: 1fr;
    }

    .dive-spot-visibility-chart-shell,
    .dive-spot-temperature-chart-shell {
        grid-template-columns: 1fr;
    }

    .dive-spot-visibility-chart-scale,
    .dive-spot-temperature-chart-scale {
        flex-direction: row;
        padding: 0;
    }

    .dive-spot-visibility-chart,
    .dive-spot-temperature-chart {
        gap: 1px;
        padding: 12px 6px 24px;
    }

    .dive-spot-visibility-month-label,
    .dive-spot-temperature-month-label {
        font-size: 8px;
    }
}

.dive-admin-gallery-copy {
    margin: 0 0 12px;
    color: #304a5f;
}

.dive-admin-gallery-help {
    min-height: 20px;
    margin: 0 0 12px;
    color: #4a657b;
    font-weight: 600;
}

.dive-admin-gallery-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 10px 4px 14px;
    align-items: stretch;
}

.dive-admin-gallery-frame {
    position: relative;
    flex: 0 0 168px;
    width: 168px;
    height: 168px;
    border: 1px solid #cfdae5;
    border-radius: 22px;
    background: linear-gradient(180deg, #f6f9fc 0%, #edf3f8 100%);
    overflow: hidden;
    padding: 0;
    cursor: grab;
    box-shadow: 0 10px 22px rgba(13, 34, 52, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dive-admin-gallery-frame:not(.has-image) {
    cursor: pointer;
}

.dive-admin-gallery-frame:hover {
    border-color: #0b6bcb;
    box-shadow: 0 16px 28px rgba(11, 52, 92, 0.16);
    transform: translateY(-2px);
}

.dive-admin-gallery-frame:not(.has-image):hover {
    border-color: #cfdae5;
    box-shadow: 0 10px 22px rgba(13, 34, 52, 0.08);
    transform: none;
}

.dive-admin-gallery-frame.is-dragging {
    opacity: 0.45;
    cursor: grabbing;
}

.dive-admin-gallery-frame.is-drag-over {
    border-color: #0b6bcb;
    box-shadow: 0 0 0 4px rgba(11, 107, 203, 0.18);
    transform: translateY(-2px);
}

.dive-admin-gallery-index {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(18, 50, 74, 0.84);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
    box-shadow: 0 6px 14px rgba(8, 22, 34, 0.16);
}

.dive-admin-gallery-drag-handle {
    display: none;
}

.dive-admin-gallery-frame.is-dragging .dive-admin-gallery-drag-handle {
    cursor: grabbing;
}

.dive-admin-gallery-frame-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.dive-admin-gallery-plus {
    font-size: 56px;
    line-height: 1;
    color: #88a0b5;
    transform: translateY(-4px);
}

.dive-admin-gallery-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 28px;
    height: 28px;
    padding: 0 !important;
    border: none;
    border-radius: 999px !important;
    background: rgba(18, 50, 74, 0.88);
    color: #fff;
    font-size: 13px !important;
    font-weight: 700;
    line-height: 28px !important;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(8, 22, 34, 0.16);
}

.dive-admin-gallery-remove.is-hidden {
    visibility: hidden;
}
