/* park.css */

.park-page {
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
}

.park-page > * {
    max-width: 100%;
    min-width: 0;
}

.park-page .wakely-list {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
}

.park-page .wakely-list-item {
    width: 100%;
    min-width: 0;
}

.park-page .item-row {
    flex-wrap: wrap;
    min-width: 0;
}

.park-page .friend-meta {
    min-width: 0;
    overflow-wrap: anywhere;
}

.park-specs-panel .wakely-panel-heading > div {
    min-width: 0;
}

.park-specs-panel .report-badge {
    flex-shrink: 0;
    max-width: 100%;
    white-space: normal;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.spec-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.spec-card:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: var(--shadow-md);
}

.spec-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spec-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    margin-top: 16px;
}

.report-badge {
    font-size: 11px;
    background: var(--surface-tint);
    color: var(--accent-dark);
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 600;
}

.rating-summary-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.big-rating {
    font-size: 26px;
    font-weight: 800;
    color: #d97706;
}

.rating-stars {
    display: inline-flex;
    gap: 2px;
    white-space: nowrap;
}

.rating-stars--session {
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef8f6;
    font-size: 15px;
    line-height: 1;
}

.rating-stars__star {
    color: #cbd5e1;
    line-height: 1;
}

.rating-stars__star--filled {
    color: #f59e0b;
}

.rating-stars__star--partial {
    color: transparent;
    background: linear-gradient(
        90deg,
        #f59e0b var(--star-fill),
        #cbd5e1 var(--star-fill)
    );
    background-clip: text;
}

.total-reviews-count {
    font-size: 13px;
    color: var(--muted);
}

.rating-bars-list {
    display: grid;
    gap: 8px;
}

.rating-bar-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text);
}

.rating-bar-item strong {
    color: #d97706;
}



/* Responsive tweaks */
@media (max-width: 720px) {
  .specs-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .spec-card {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .spec-label {
    font-size: 12px;
  }

  .spec-value {
    font-size: 15px;
  }
}


/* Layout for the main title panel */
.wakely-panel--header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.wakely-panel-content {
    flex: 1;
}

.park-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

/* Adjust the weather card for side placement */
.weather-card {
    background: var(--surface);
    /* border: 1px solid var(--border); */
    /* border-radius: 16px; */
    padding: 16px;
    margin-bottom: 0; /* Remove bottom margin inside flex parent */
    /* box-shadow: var(--shadow-sm); */
    width: 240px;
    flex-shrink: 0;
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.weather-main img {
    width: 44px;
    height: 44px;
}

.weather-temp {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.weather-condition {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: var(--muted);
}

.weather-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

.weather-meta strong {
    color: var(--text);
}

/* Responsive collapse for mobile viewports */
@media (max-width: 720px) {
    .park-public-layout-preview {
        height: 280px;
    }

    .park-specs-panel .wakely-panel-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .wakely-panel--header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .weather-card {
        width: 100%;
        margin-top: 0;
    }

    .specs-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .spec-card {
        padding: 12px 14px;
        border-radius: 14px;
    }

    .spec-label {
        font-size: 12px;
    }

    .spec-value {
        font-size: 15px;
    }
}

/* my-park.css */

.my-park-page {
    padding-bottom: 32px;
}

/* Header */
.my-park-title-section {
    align-items: center;
}

.my-park-title-section h1 {
    margin: 4px 0 8px;
    color: var(--text);
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.my-park-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.my-park-header-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 10px;
}

/* Status labels */
.my-park-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-tint);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.my-park-status--verified {
    border-color: rgba(15, 118, 110, 0.25);
    color: var(--accent-dark);
}

/* Overview panel */
.my-park-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.my-park-overview-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface);
}

.my-park-overview-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--surface-tint);
    font-size: 19px;
}

.my-park-overview-item > div {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.my-park-overview-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.my-park-overview-item strong {
    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
}

.my-park-overview-item p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

/* Feature panels */
.my-park-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.my-park-feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.my-park-feature-card:hover {
    border-color: rgba(15, 118, 110, 0.25);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.my-park-feature-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin-bottom: 16px;
}

.my-park-feature-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 13px;
    background: var(--surface-tint);
    color: var(--accent-dark);
    font-size: 20px;
    font-weight: 700;
}

.my-park-feature-card h3 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.4;
}

.my-park-feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

/* Analytics placeholder */
.my-park-analytics-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 34px 20px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.my-park-analytics-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 15px;
    background: var(--surface-tint);
    color: var(--accent-dark);
    font-size: 23px;
    font-weight: 700;
}

.my-park-analytics-placeholder h3 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 16px;
    font-weight: 750;
}

.my-park-analytics-placeholder p {
    max-width: 460px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

/* Responsive */
@media (max-width: 900px) {
    .my-park-overview-grid {
        grid-template-columns: 1fr;
    }

    .my-park-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .my-park-title-section {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .my-park-header-actions {
        justify-content: flex-start;
    }

    .my-park-feature-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .my-park-feature-card {
        padding: 16px;
    }

    .my-park-feature-top {
        margin-bottom: 12px;
    }

    .my-park-analytics-placeholder {
        padding: 26px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .my-park-feature-card {
        transition: none;
    }

    .my-park-feature-card:hover {
        transform: none;
    }
}

/* Park layout panel */

.park-layout-panel {
    overflow: hidden;
}

.park-public-layout-preview {
    position: relative;
    width: 100%;
    height: 360px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #e7edf0;
}

.park-public-layout-preview-canvas,
.park-public-layout-preview-canvas canvas {
    width: 100%;
    height: 100%;
}

.park-public-layout-preview-canvas canvas {
    display: block;
}

.park-public-layout-preview-message {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    color: #334155;
    text-align: center;
    background: rgba(231, 237, 240, 0.82);
    pointer-events: none;
}

.park-public-layout-preview-hint {
    margin: 0.85rem 0 0;
    color: var(--muted);
    font-size: 0.8rem;
    text-align: center;
}

.park-layout-preview {
    width: 100%;
    margin-top: 1rem;
}

.park-layout-placeholder {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    text-align: center;
    border: 1px dashed var(--border-color, #ccc);
    border-radius: 12px;
    background: var(--surface-secondary, #f7f8fa);
}

.park-layout-placeholder-icon {
    font-size: 2.5rem;
}

.park-layout-placeholder h3,
.park-layout-empty h3 {
    margin: 0;
}

.park-layout-placeholder p,
.park-layout-empty p {
    max-width: 560px;
    margin: 0;
    line-height: 1.6;
    color: var(--text-muted, #666);
}

.park-layout-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
}

.park-layout-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

@media (max-width: 576px) {
    .park-layout-placeholder {
        min-height: 220px;
        padding: 1.5rem 1rem;
    }

    .park-layout-actions {
        justify-content: stretch;
    }

    .park-layout-actions .btn {
        width: 100%;
        text-align: center;
    }
}

.park-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
}

@media (max-width: 576px) {
    .park-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .park-actions .btn {
        width: 100%;
        min-width: 0;
        padding-inline: 8px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .park-actions .btn:nth-child(3),
    .park-actions .btn:only-child {
        grid-column: 1 / -1;
    }
}

/* Add spacing above the park action buttons */
.park-specs-panel .park-actions {
    margin-top: 12px;
}