/* Raadio kuulutused */
.rk-wrap {
	--rk-accent: #2b87da;
	--rk-accent-dark: #1f6fb8;
	--rk-text: #222;
	--rk-muted: #8a8a8a;
	--rk-border: #dcdcdc;
	--rk-bg: #fff;
	--rk-danger: #c62828;
	box-sizing: border-box;
}
.rk-wrap *, .rk-wrap *::before, .rk-wrap *::after { box-sizing: border-box; }
.rk-wrap a { color: var(--rk-accent); text-decoration: none; }
.rk-wrap a:hover { text-decoration: underline; }

/* Paigutus */
.rk-layout { display: grid; grid-template-columns: minmax(200px, 22%) 1fr; gap: 32px 40px; align-items: start; }
.rk-layout.rk-no-sidebar { grid-template-columns: 1fr; }
.rk-wrap .rk-col-title { margin: 0 0 18px; line-height: 1.2; color: #fff !important; font-weight: 500 !important; }
h2.rk-col-title { font-size: 2em; }
.rk-single-title { overflow-wrap: anywhere; }
.rk-box { background: var(--rk-bg); padding: 24px; color: var(--rk-text); }

/* Nupud */
.rk-wrap .rk-button,
.rk-wrap button.rk-button {
	display: inline-block; padding: 10px 18px; border: 0; border-radius: 4px;
	background: var(--rk-accent); color: #fff; font: inherit; font-weight: 600; line-height: 1.3;
	cursor: pointer; text-decoration: none; text-align: center;
}
.rk-wrap .rk-button:hover { background: var(--rk-accent-dark); color: #fff; text-decoration: none; }
.rk-wrap .rk-button-danger { background: var(--rk-danger); }
.rk-wrap .rk-button-danger:hover { background: #a31f1f; }
.rk-add-wrap { text-align: center; margin: 0 0 28px; }
.rk-button-add { text-transform: uppercase; padding: 12px 24px; font-size: 1em; }

/* Külgriba */
.rk-sidebar-text { margin-bottom: 16px; }
.rk-sidebar-text :first-child { margin-top: 0; }
.rk-cats ul { list-style: none; margin: 0; padding: 0; }
.rk-cats li { margin: 0 0 14px; font-size: 1.05em; }
.rk-cats .rk-cat-special a { text-transform: uppercase; font-weight: 700; }
.rk-cats a.rk-active { font-weight: 700; text-decoration: underline; }
.rk-count { color: var(--rk-text); }

/* Otsing */
.rk-search { margin: 0 0 32px; }
.rk-search input[type="search"] {
	display: block; width: 100%; padding: 14px 16px; margin: 0 0 18px;
	border: 1px solid var(--rk-border); border-radius: 2px; font: inherit; background: #fff; color: var(--rk-text);
}

/* Nimekiri */
.rk-list { list-style: none; margin: 0; padding: 0; background: var(--rk-bg); color: var(--rk-text); }
.rk-item { display: flex; gap: 24px; padding: 18px 16px; margin: 0; border-bottom: 2px solid #1d3d6b; }
.rk-item:last-child { border-bottom: 0; }
.rk-thumb { flex: 0 0 150px; height: 112px; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #d5d8dc; }
.rk-thumb img, .rk-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rk-placeholder { width: 72px; height: 72px; color: #d5d8dc; }
.rk-item-body { flex: 1; min-width: 0; }
.rk-item-title { margin: 0 0 18px; font-size: 1.3em; line-height: 1.3; }
.rk-item-title a { color: var(--rk-accent); }
.rk-excerpt { margin: 0 0 18px; overflow-wrap: anywhere; }
.rk-meta { margin: 0; color: var(--rk-muted); font-size: .9em; }
.rk-badge { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 3px; background: #f5b301; color: #222; font-size: .6em; font-weight: 700; vertical-align: middle; text-transform: uppercase; }
.rk-is-featured { background: #fffbea; }
.rk-empty { background: var(--rk-bg); color: var(--rk-text); padding: 24px; margin: 0; }

/* Lehekülgede navigeerimine */
.rk-pagination { margin: 24px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rk-pagination .page-numbers { display: inline-block; min-width: 40px; padding: 8px 12px; background: var(--rk-bg); color: var(--rk-accent); text-align: center; border-radius: 3px; }
.rk-pagination .page-numbers.current { background: var(--rk-accent); color: #fff; }
.rk-pagination .page-numbers.dots { background: transparent; color: inherit; }

/* Üksikvaade */
.rk-single { padding: 28px; }
.rk-price { margin: 0 0 16px; font-size: 1.4em; font-weight: 700; color: var(--rk-accent); }
.rk-details { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0 0 20px; padding: 0 0 20px; border-bottom: 1px solid var(--rk-border); }
.rk-details dt { font-weight: 700; margin: 0; }
.rk-details dd { margin: 0; overflow-wrap: anywhere; }
.rk-content { margin: 0 0 24px; overflow-wrap: anywhere; }
.rk-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0 0 24px; }
.rk-gallery-item { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f2f2f2; cursor: zoom-in; }
.rk-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.rk-gallery-item:hover img { transform: scale(1.03); }
.rk-gallery-single { grid-template-columns: 1fr; }
.rk-gallery-single .rk-gallery-item { aspect-ratio: auto; text-align: center; }
.rk-gallery-single .rk-gallery-item img { width: auto; max-width: 100%; height: auto; max-height: 600px; display: inline-block; }
.rk-edit-link { margin: 0; font-size: .95em; }

/* Teated */
.rk-notice { padding: 12px 16px; margin: 0 0 20px; border-left: 4px solid; background: #fff; color: var(--rk-text); }
.rk-notice ul { margin: 0; padding-left: 18px; }
.rk-notice-success { border-color: #2e7d32; background: #edf7ee; }
.rk-notice-warning { border-color: #ed6c02; background: #fff4e5; }
.rk-notice-error { border-color: var(--rk-danger); background: #fdecea; }

/* Vorm */
.rk-form { background: var(--rk-bg); padding: 28px; max-width: 820px; color: var(--rk-text); }
.rk-form h2 { margin-top: 0; color: var(--rk-text); }
.rk-form .rk-field { margin: 0 0 18px; }
.rk-form label, .rk-form legend { display: block; font-weight: 600; margin-bottom: 6px; }
.rk-form input[type="text"], .rk-form input[type="email"], .rk-form input[type="password"], .rk-form select, .rk-form textarea {
	display: block; width: 100%; padding: 10px 12px; border: 1px solid var(--rk-border); border-radius: 3px; font: inherit; background: #fff; color: var(--rk-text);
}
.rk-form textarea { resize: vertical; }
.rk-form small { display: block; margin-top: 4px; color: var(--rk-muted); }
.rk-form .rk-req { color: var(--rk-danger); }
.rk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

/* Piltide üleslaadimine */
.rk-tiles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.rk-tiles:not(:empty) { margin-bottom: 12px; }
.rk-tile { position: relative; width: 130px; height: 130px; margin: 0; border-radius: 4px; overflow: hidden; background: #eee; }
.rk-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rk-tile-badge { display: none; position: absolute; left: 6px; top: 6px; padding: 2px 6px; border-radius: 3px; background: var(--rk-accent); color: #fff; font-size: 12px; font-weight: 700; }
.rk-tile:first-child .rk-tile-badge { display: block; }
.rk-tile-actions { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 4px; padding: 4px; background: rgba(0,0,0,.55); }
.rk-wrap .rk-tile-actions button { padding: 3px 6px; border: 0; border-radius: 3px; background: rgba(255,255,255,.92); color: #222; font: inherit; font-size: 12px; line-height: 1.2; cursor: pointer; }
.rk-wrap .rk-tile-actions .rk-tile-remove { margin-left: auto; padding: 1px 8px; font-size: 18px; color: var(--rk-danger); }
.rk-tile:first-child .rk-tile-main { display: none; }
.rk-tile-uploading img { opacity: .45; }
.rk-tile-uploading .rk-tile-main { display: none; }
.rk-progress { position: absolute; left: 10px; right: 10px; top: 50%; height: 8px; margin-top: -4px; border-radius: 4px; background: rgba(255,255,255,.85); overflow: hidden; }
.rk-progress-bar { display: block; width: 0; height: 100%; background: var(--rk-accent); transition: width .15s; }
.rk-progress-text { position: absolute; left: 0; right: 0; top: 50%; margin-top: 8px; text-align: center; font-size: 13px; font-weight: 700; color: #222; }
.rk-tile:not(.rk-tile-uploading) .rk-progress, .rk-tile:not(.rk-tile-uploading) .rk-progress-text { display: none; }
.rk-tile-uploading .rk-progress-bar { background-image: linear-gradient(90deg, var(--rk-accent), var(--rk-accent-dark)); }
.rk-dropzone { position: relative; padding: 28px 16px; border: 2px dashed #b9c3cd; border-radius: 6px; background: #f7f9fb; text-align: center; transition: border-color .15s, background .15s; }
.rk-dropzone input[type="file"] { display: block; margin: 0 auto 10px; }
.rk-uploader-js .rk-dropzone { cursor: pointer; }
.rk-uploader-js .rk-dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rk-dropzone-text { display: block; font-weight: 600; }
.rk-dropzone-link { color: var(--rk-accent); text-decoration: underline; }
.rk-dropzone-over { border-color: var(--rk-accent); background: #e8f2fc; }
.rk-dropzone-full { display: none; }
.rk-uploader > label { cursor: default; }

/* Pildivaade */
html.rk-lb-open { overflow: hidden; }
.rk-lightbox { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.92); }
.rk-lb-img { max-width: calc(100vw - 140px); max-height: calc(100vh - 80px); object-fit: contain; cursor: zoom-out; user-select: none; }
.rk-lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; border-radius: 50%; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; padding: 0; }
.rk-lightbox button:hover, .rk-lightbox button:focus-visible { background: rgba(255,255,255,.28); }
.rk-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.rk-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.rk-lb-close { right: 16px; top: 16px; font-size: 34px; }
.rk-lb-single .rk-lb-prev, .rk-lb-single .rk-lb-next { display: none; }
.rk-lb-counter { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #fff; font-size: 15px; }
@media (max-width: 600px) {
	.rk-lb-img { max-width: 100vw; max-height: calc(100vh - 120px); }
	.rk-lb-prev, .rk-lb-next { top: auto; bottom: 8px; transform: none; }
	.rk-tile { width: calc(50% - 6px); height: 140px; }
}
.rk-file-error { display: block; color: var(--rk-danger); margin-top: 4px; }
.rk-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin: 0; }
.rk-muted { color: var(--rk-muted); }
.rk-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Esiletõstetud */
.rk-featured ul { list-style: none; margin: 0; padding: 0; }
.rk-featured-heading { margin: 0 0 16px; }
.rk-featured-grid ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.rk-featured-item { margin: 0; background: var(--rk-bg); color: var(--rk-text); }
.rk-featured-link { display: flex; flex-direction: column; height: 100%; color: var(--rk-text); }
.rk-wrap .rk-featured-link:hover { text-decoration: none; }
.rk-featured-link:hover .rk-featured-title { text-decoration: underline; }
.rk-featured-thumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; overflow: hidden; background: #f2f2f2; }
.rk-featured-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rk-featured-body { display: block; padding: 12px 14px; }
.rk-featured-title { display: block; font-weight: 700; color: var(--rk-accent); line-height: 1.3; }
.rk-featured-price { display: block; margin-top: 4px; font-weight: 700; }
.rk-featured-list li { border-bottom: 1px solid var(--rk-border); }
.rk-featured-list .rk-featured-link { flex-direction: row; gap: 14px; align-items: center; padding: 10px; }
.rk-featured-list .rk-featured-thumb { flex: 0 0 90px; height: 68px; aspect-ratio: auto; }
.rk-featured-list .rk-featured-body { padding: 0; }

/* Mobiil */
@media (max-width: 860px) {
	.rk-layout { grid-template-columns: 1fr; }
	.rk-item { gap: 16px; }
	.rk-thumb { flex-basis: 120px; height: 96px; }
	.rk-placeholder { width: 60px; height: 60px; }
}
@media (max-width: 560px) {
	.rk-row { grid-template-columns: 1fr; }
	.rk-item { flex-direction: column; }
	.rk-thumb { flex-basis: auto; width: 100%; height: 200px; }
	.rk-box, .rk-form, .rk-single { padding: 18px; }
	.rk-details { grid-template-columns: 1fr; gap: 2px; }
	.rk-details dd { margin-bottom: 8px; }
}
