/* Admin Controls Styles */
.admin-notice {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.sortable-images {
    position: relative;
}

.sortable-image {
    display: inline-block;
    width: 200px;
    position: relative;
    margin-bottom: 20px;
    border: 2px dashed transparent;
    transition: all 0.3s ease;
}

.sortable-image:hover {
    border-color: #007cba;
}

.admin-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    gap: 5px;
}

.delete-image {
    background: #dc3545;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.delete-image:hover {
    background: #c82333;
}

.drag-handle {
    background: #007cba;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: move;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    letter-spacing: -2px;
    transition: background-color 0.3s ease;
}

.drag-handle:hover {
    background: #005a87;
}

.sortable-placeholder {
    border: 2px dashed #007cba;
    background: rgba(0, 124, 186, 0.1);
    height: 200px;
    margin-bottom: 20px;
}

.ui-sortable-helper {
    opacity: 0.8;
    transform: rotate(2deg);
}

/* Notification Styles */
.admin-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    z-index: 9999;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.notification-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.notification-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.separate-containers .featured-image {
    margin-top: 0 !important;
}

.ytpp-main {
    margin-bottom: 0 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .admin-controls {
        top: 5px;
        right: 5px;
    }
    
    .delete-image,
    .drag-handle {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
}

h2,
h3 {
    font-weight: 400;
}

.breadcrumb {
	font-size: 12px;
	text-transform: capitalize;
}

.breadcrumb a {
	padding: 0 2px;
}

body.archive article.type-skate-park {
    float: left;
    clear: both;
    width: 100%;
}

/* Base Styles */
.star-ratings {
    float: left;
    unicode-bidi: bidi-override;
    color: #ccc;
    font-size: 16px;
    position: relative;
    margin: 0;
    padding: 0;
}
.star-ratings .fill-ratings {
    color: #e7711b;
    padding: 0;
    position: absolute;
    z-index: 1;
    display: block;
    top: 0;
    left: 0;
    overflow: hidden;
}
.star-ratings .fill-ratings span {
    display: inline-block;
}
.star-ratings .empty-ratings {
    padding: 0;
    display: block;
    z-index: 0;
}  

.page-header {
    margin-bottom: 3rem;
}

article.ground.type-skate-park {
    clear: both;
    float: left;
    width: 100%;
}

/* Skatepark grid layout for state/city term pages: 2 columns on mobile, 3 on tablet, 4 on desktop */
body.tax-state article.type-skate-park,
body.tax-city article.type-skate-park {
    float: left;
    clear: none;
    width: calc(50% - 0.375rem);
    margin-right: 0.75rem;
    margin-bottom: 0.75rem;
}

body.tax-state article.type-skate-park:nth-of-type(2n),
body.tax-city article.type-skate-park:nth-of-type(2n) {
    margin-right: 0;
}

@media (min-width: 768px) {
    body.tax-state article.type-skate-park,
    body.tax-city article.type-skate-park {
        width: calc(33.333% - 0.667rem);
        margin-right: 1rem;
        margin-bottom: 1rem;
    }

    body.tax-state article.type-skate-park:nth-of-type(2n),
    body.tax-city article.type-skate-park:nth-of-type(2n) {
        margin-right: 1rem;
    }

    body.tax-state article.type-skate-park:nth-of-type(3n),
    body.tax-city article.type-skate-park:nth-of-type(3n) {
        margin-right: 0;
    }
}

@media (min-width: 1024px) {
    body.tax-state article.type-skate-park,
    body.tax-city article.type-skate-park {
        width: calc(25% - 0.75rem);
        margin-right: 1rem;
    }

    body.tax-state article.type-skate-park:nth-of-type(3n),
    body.tax-city article.type-skate-park:nth-of-type(3n) {
        margin-right: 1rem;
    }

    body.tax-state article.type-skate-park:nth-of-type(4n),
    body.tax-city article.type-skate-park:nth-of-type(4n) {
        margin-right: 0;
    }
}

body.tax-state .paging-navigation,
body.tax-city .paging-navigation {
    clear: both;
}

/* Fixed height (0.875rem font-size * 1.3 line-height * 2 lines), not just
   `-webkit-line-clamp`'s max — line-clamp only limits height, it doesn't
   reserve it, so a one-line title next to a two-line title left neighbouring
   cards in the float grid below with different natural heights. Since
   floats pack into whatever gap is open based on each card's height at
   first layout (not a strict n-per-row grid), that unevenness was enough
   to make later cards skip past a taller neighbour and land in the wrong
   column instead of forming clean rows. Reserving the same height for
   every title regardless of line count removes that variance at the
   source. */
body.tax-state article.type-skate-park .entry-title,
body.tax-city article.type-skate-park .entry-title {
    margin: 0 0 0.125rem;
    height: 2.275rem;
    font-size: 0.875rem;
    line-height: 1.3;
    font-weight: 600;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

body.tax-state article.type-skate-park .entry-title a,
body.tax-city article.type-skate-park .entry-title a {
    color: #0b0d12;
    text-decoration: none;
}

body.tax-state article.type-skate-park .entry-title a:hover,
body.tax-city article.type-skate-park .entry-title a:hover {
    color: #e7711b;
}

.tax-province .entry-summary,
.tax-city .entry-summary,
.tax-district .entry-summary,
.tax-groundge .entry-summary {
    display: none;
}

.paging-navigation {
    margin-top: 3rem;
}

.inside-article .ground-meta {
    display: flex;
    flex-direction: row;
    font-size: .9em;
}

.inside-article .ground-meta .facility-col {
    flex: 50%;
}

.inside-article .ground-meta h6 {
    font-size: 12px;
    margin-top: 3px;
}

.inside-article .ground-meta span {
    font-size: 14px;
	margin-right: 0;
}

.inside-article .ground-meta span label {
	font-weight: 700;
}

.facility-col {
	display: inline-block;
    width: 47%;
    margin: 5px 20px 1rem 0;
}

body.archive .inside-article .ground-meta,
body.search .inside-article .ground-meta {
    display: inline-block;
    margin-left: 16px;
}

body.archive .inside-article .ground-meta .facility-col,
body.search .inside-article .ground-meta .facility-col {
    margin: 0 0 1rem 0;
}

/* The state/city grid cards above don't float their thumbnail, so the
   16px offset and 14px span size tuned for the floated archive/search
   layout would misalign them — reset back to plain block text. */
body.tax-state .inside-article .ground-meta,
body.tax-city .inside-article .ground-meta {
    display: block;
    margin-left: 0;
}

body.tax-state .inside-article .ground-meta span,
body.tax-city .inside-article .ground-meta span {
    font-size: inherit;
}

#primary form.search-form input.search-field,
.entry-content form.search-form input.search-field {
	width: 100%;
    position: relative;
    top: 2px;
}

.search-form > label {
	width: 81%;
}

dl.list-item {
	margin-bottom: 2rem;
}

dl.list-item dt,
dl.list-item dd {
	display: inline-block;
	width: 65%;
	border-bottom: 1px solid #dedede;
	margin: 0;
	padding: 10px;
}

dl.list-item dt {
	width: 34%;
	color: #6d6875 !important;
}

dl.list-item dd {
	margin-left: -3px;
}

dl.list-item dd+dt {
}

dl.list-item dd:before {
	content: ':' !important;
	color: #555 !important;
	margin-right: 20px;
}

#faq {
    margin-bottom: 1.5em;
}

@media only screen and (max-width: 600px) {
	.facility-col {
		width: 100%;
		margin: 0 0 20px 0;
	}
}

@media only screen and (max-width: 640px) {
	.leaflet-map,
	.leaflet-map * {
		pointer-events: none !important;
	}
}