/* Ryley Castles – front-end styles. Override the variables in your theme to re-colour. */
.rc-grid, .rc-booking, .rc-gallery, .rc-details {
	--rc-primary: #1565c0;
	--rc-primary-dark: #0d47a1;
	--rc-accent: #ffb300;
	--rc-ink: #1d2433;
	--rc-muted: #5b6475;
	--rc-line: #e3e7ee;
	--rc-soft: #f4f7fb;
	--rc-free: #e7f6ec;
	--rc-free-ink: #1b6b3a;
	--rc-booked: #f3f4f6;
	--rc-booked-ink: #a0a7b4;
	--rc-radius: 14px;
	box-sizing: border-box;
	color: var(--rc-ink);
}
.rc-grid *, .rc-booking *, .rc-gallery * { box-sizing: border-box; }

/* ---------- buttons ---------- */
.rc-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .8em 1.5em; border: 0; border-radius: 999px; background: var(--rc-primary); color: #fff !important; font: inherit; font-weight: 700; text-decoration: none !important; cursor: pointer; transition: background .15s, transform .15s; }
.rc-btn:hover { background: var(--rc-primary-dark); }
.rc-btn:active { transform: translateY(1px); }
.rc-btn:disabled { opacity: .6; cursor: wait; }
.rc-btn-small { padding: .5em 1em; font-size: .9em; }
.rc-btn-ghost { background: transparent; color: var(--rc-primary) !important; box-shadow: inset 0 0 0 2px var(--rc-primary); }
.rc-btn-ghost:hover { background: var(--rc-soft); }

/* ---------- castle cards ---------- */
.rc-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 1.5em 0; }
.rc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rc-line); border-radius: var(--rc-radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.rc-card:hover { box-shadow: 0 12px 30px rgba(20, 40, 80, .12); transform: translateY(-3px); }
.rc-card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--rc-soft); overflow: hidden; }
.rc-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-card-noimg { display: grid; place-items: center; height: 100%; font-size: 64px; }
.rc-badge { position: absolute; top: 12px; left: 12px; background: var(--rc-accent); color: #3a2a00; font-weight: 700; font-size: .8em; padding: .3em .8em; border-radius: 999px; }
.rc-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.rc-card-title { margin: 0 0 .3em; font-size: 1.25em; line-height: 1.25; }
.rc-card-title a { color: inherit; text-decoration: none; }
.rc-card-meta { margin: 0 0 .6em; color: var(--rc-muted); font-size: .92em; }
.rc-card-excerpt { margin: 0 0 1em; color: var(--rc-muted); font-size: .95em; }
.rc-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rc-price { font-weight: 800; line-height: 1.3; color: var(--rc-primary-dark); }
.rc-empty { padding: 2em; text-align: center; background: var(--rc-soft); border-radius: var(--rc-radius); }

/* ---------- castle page ---------- */
.rc-gallery { margin: 0 0 1.5em; }
.rc-gallery-main { border-radius: var(--rc-radius); overflow: hidden; background: var(--rc-soft); aspect-ratio: 16 / 10; }
.rc-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.rc-thumb { flex: 0 0 76px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; cursor: pointer; opacity: .7; }
.rc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-thumb.is-active, .rc-thumb:hover { border-color: var(--rc-primary); opacity: 1; }
.rc-details { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 0 0 1.5em; padding: 0; }
.rc-details > div { background: var(--rc-soft); border-radius: 12px; padding: 12px 16px; }
.rc-details dt { font-size: .8em; text-transform: uppercase; letter-spacing: .05em; color: var(--rc-muted); margin: 0; }
.rc-details dd { margin: .2em 0 0; font-weight: 700; }

/* ---------- booking widget ---------- */
.rc-booking [hidden] { display: none !important; }
.rc-booking { margin: 2em 0; padding: clamp(18px, 4vw, 32px); background: #fff; border: 1px solid var(--rc-line); border-radius: calc(var(--rc-radius) + 4px); box-shadow: 0 10px 30px rgba(20, 40, 80, .06); scroll-margin-top: 90px; }
.rc-booking-title { margin: 0 0 .3em; }
.rc-intro { color: var(--rc-muted); margin: 0 0 1.2em; }
.rc-booking-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 40px); align-items: start; }
@media (max-width: 760px) { .rc-booking-grid { grid-template-columns: 1fr; } }
.rc-booking-off { background: var(--rc-soft); }

.rc-cal { background: var(--rc-soft); border-radius: var(--rc-radius); padding: 14px; min-height: 300px; }
.rc-cal.is-disabled { display: grid; place-items: center; }
.rc-cal-msg { text-align: center; color: var(--rc-muted); margin: 2em 1em; }
.rc-err { color: #b3261e; }
.rc-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.rc-cal-title { font-size: 1.1em; }
.rc-nav { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--rc-ink); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.rc-nav:disabled { opacity: .3; cursor: default; }
.rc-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.rc-dow { text-align: center; font-size: .75em; font-weight: 700; color: var(--rc-muted); text-transform: uppercase; padding: 4px 0; }
.rc-day { aspect-ratio: 1; min-height: 38px; border: 0; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; padding: 0; transition: transform .1s; }
.rc-day.rc-pad { background: none; }
.rc-day.is-free { background: var(--rc-free); color: var(--rc-free-ink); }
.rc-day.is-free:hover { transform: scale(1.06); box-shadow: 0 0 0 2px var(--rc-primary); }
.rc-day.is-booked, .rc-day.is-unavail { background: var(--rc-booked); color: var(--rc-booked-ink); text-decoration: line-through; cursor: not-allowed; }
.rc-day.is-out { background: transparent; color: #c3c8d1; cursor: default; }
.rc-day.is-sel { background: var(--rc-primary); color: #fff; text-decoration: none; }
.rc-day.is-extra { background: #bcd6f5; color: var(--rc-primary-dark); text-decoration: none; }
.rc-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 12px 0 0; padding: 0; font-size: .85em; color: var(--rc-muted); }
.rc-legend li { display: flex; align-items: center; gap: 6px; margin: 0; }
.rc-key { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.rc-key-free { background: var(--rc-free); box-shadow: inset 0 0 0 1px #b6e2c4; }
.rc-key-booked { background: var(--rc-booked); box-shadow: inset 0 0 0 1px #d8dce3; }
.rc-key-sel { background: var(--rc-primary); }
.rc-rules { margin: 12px 0 0; padding: 10px 14px 10px 30px; background: #fff8e1; border-radius: 10px; font-size: .88em; color: #6b4e00; }
.rc-rules:empty { display: none; }
.rc-rules li { margin: .15em 0; }

.rc-selection { margin-bottom: 1em; }
.rc-sel-empty { margin: 0; padding: 12px 16px; background: var(--rc-soft); border-radius: 10px; color: var(--rc-muted); }
.rc-sel { margin: 0; padding: 14px 16px; background: #e8f1fc; border-radius: 10px; display: grid; gap: 8px; }
.rc-sel div { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.rc-sel dt { font-weight: 700; min-width: 130px; margin: 0; }
.rc-sel dd { margin: 0; }
.rc-sel small { display: block; color: var(--rc-muted); }

.rc-field { margin: 0 0 14px; }
.rc-field label { display: block; font-weight: 600; font-size: .92em; margin-bottom: 5px; }
.rc-field input[type=text], .rc-field input[type=email], .rc-field input[type=tel], .rc-field textarea, .rc-field select {
	width: 100%; padding: .7em .85em; border: 1.5px solid var(--rc-line); border-radius: 10px; background: #fff; font: inherit; color: inherit;
}
.rc-field input:focus, .rc-field textarea:focus, .rc-field select:focus { outline: none; border-color: var(--rc-primary); box-shadow: 0 0 0 3px rgba(21, 101, 192, .15); }
.rc-field .is-invalid, .rc-field input.is-invalid { border-color: #b3261e; }
.rc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 520px) { .rc-row { grid-template-columns: 1fr; } }
.rc-check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.rc-check input { margin-top: .3em; }
.rc-picker { max-width: 420px; }
.rc-form-error { background: #fdecea; color: #8c1d18; padding: 10px 14px; border-radius: 10px; }
.rc-small { font-size: .85em; color: var(--rc-muted); }
.rc-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }

.rc-success { text-align: center; padding: 1.5em 1em; }
.rc-success-icon { font-size: 52px; }
.rc-success h3 { max-width: 34em; margin: .4em auto .8em; }
