/*
Theme Name: Bungalow Bay
Template: twentytwentyfive
Description: Child theme of Twenty Twenty-Five for bungalowbaybnb.com. Colors, fonts and the home page layout live here; the parent theme keeps receiving updates.
Author: Georg Beyer
Version: 1.0.0
Requires at least: 6.7
Text Domain: bungalow-bay
*/

/* Sticky header */
header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar header.wp-block-template-part { top: 46px; } }
.bb-header { background: rgba(255,255,255,0.94); backdrop-filter: blur(8px); border-bottom: 1px solid #E6EAEF; }

/* Logo: three stripes before the site title */
.bb-logo { font-family: Archivo, sans-serif; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: center; gap: 12px; margin: 0; }
.bb-logo a { text-decoration: none; color: inherit; }
.bb-logo::before { content: ""; width: 36px; height: 22px; flex: none; background: linear-gradient(90deg, #D62828 0 10px, transparent 10px 13px, #F2B300 13px 23px, transparent 23px 26px, #1B3FA0 26px 36px); }
.bb-nav a { text-decoration: none; font-weight: 500; }

/* Sections */
.bb-section { padding-top: clamp(64px, 10vw, 120px); padding-bottom: clamp(64px, 10vw, 120px); }
.bb-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin: 0; }
.bb-lede { font-size: 19px; }
:where(.bb-section, .bb-hero) p { margin-top: 0; }

/* Images */
.bb-rounded img { border-radius: 16px; }
.bb-hero-image img { border-radius: 20px; height: clamp(320px, 50vw, 680px); width: 100%; object-fit: cover; object-position: center 60%; }

/* Stats */
.bb-stats { border-top: 2px solid #0E1B2C; padding-top: 22px; }
.bb-stat-number { font-family: Archivo, sans-serif; font-weight: 800; font-size: 40px; letter-spacing: -0.03em; line-height: 1.2; margin: 0; }
.bb-stat-label { color: #4A5868; font-size: 15px; margin: 0; }

/* Small colour stripe above features */
.bb-stripe { width: 28px; height: 6px; min-height: 6px; padding: 0 !important; }

/* Dark bungalow section */
.bb-dark a:not(.wp-element-button) { color: #FFFFFF; }
.bb-layout-box { border: 1px solid #33455C; border-radius: 14px; padding: 18px 22px; }
.bb-card { border-radius: 18px; overflow: hidden; height: 100%; }
.bb-card > .wp-block-image { margin: 0; }
.bb-card > .wp-block-image img { height: 240px; width: 100%; object-fit: cover; }
.bb-card-body { padding: 26px; flex-grow: 1; }
.bb-card-body .wp-block-buttons { margin-top: auto; }
.bb-group-cta { border: 1px solid #33455C; border-radius: 18px; padding: 28px 32px; }

/* Badges */
.bb-badge { display: inline-block; font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; margin: 0; line-height: 1.3; background: #E8EDFA; color: #1B3FA0; }
.bb-badge--gold { background: #FFF1C2; color: #6B4E00; }
.bb-badge--red { background: #FDE7E7; color: #A11D1D; }
.bb-flag { font-size: 13px; font-weight: 600; background: #FFF1C2; color: #6B4E00; padding: 3px 8px; border-radius: 6px; }

/* Packages placeholders */
.bb-package { border: 1.5px dashed #B8C2CE; border-radius: 18px; padding: 28px; }

/* Facts grid */
.bb-facts { border-top: 1px solid #D5DCE4; padding-top: 22px; }
.bb-facts p { margin: 0; }

/* FAQ */
.bb-faq .wp-block-details { border-bottom: 1px solid #C9D2DC; padding: 22px 0; margin: 0; }
.bb-faq .wp-block-details:first-of-type { border-top: 1px solid #C9D2DC; }
.bb-faq summary { font-weight: 600; font-size: 19px; list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; }
.bb-faq summary::-webkit-details-marker { display: none; }
.bb-faq summary::after { content: "+"; font-size: 26px; line-height: 1; transition: transform .2s; }
.bb-faq details[open] summary::after { transform: rotate(45deg); }
.bb-faq details p { color: #3D4B5C; margin: 12px 0 0; }

/* Closing banner */
.bb-cta-cover { border-radius: 20px; overflow: hidden; }

/* Card details */
.bb-card h3 { font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.bb-specs { font-weight: 600; margin: 0; }
.bb-card-desc { flex-grow: 1; font-size: 16px; }
.bb-layout-box h3 { font-size: 18px; margin: 0; }
.bb-dark .bb-layout-box p { margin: 0; }

/* Polish after first render */
.bb-stats { margin-top: 40px; }
.bb-stat-number { white-space: nowrap; }
.bb-cta-cover .wp-block-cover__background { background-color: #0E1B2C !important; }
footer.wp-block-template-part a { text-decoration: none; }
footer.wp-block-template-part a:hover { text-decoration: underline; }
@media (max-width: 600px) {
	.bb-header .wp-block-buttons { display: none; }
	.bb-header .alignwide { flex-wrap: nowrap; }
	.bb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; row-gap: 20px; }
	.bb-stat-number { font-size: 32px; white-space: normal; }
	.bb-dark .is-content-justification-right { justify-content: flex-start; }
	.bb-hero { padding-top: 40px !important; }
}

/* Nearby: map and places */
.bb-map { position: sticky; top: 100px; border-radius: 16px; overflow: hidden; background: #F3F5F8; aspect-ratio: 4 / 5; }
.bb-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.bb-nearby-group + .bb-nearby-group { margin-top: 36px; }
.bb-nearby-group h3 { margin: 0; }
.bb-place { border-top: 1px solid #E6EAEF; padding-top: 14px; }
.bb-place p { margin: 0; }
.bb-mm { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: #1B3FA0; background: #E8EDFA; padding: 2px 8px; border-radius: 999px; vertical-align: 2px; }
@media (max-width: 781px) { .bb-map { position: static; aspect-ratio: 4 / 3; } }

/* Round 2: stats bar, bold text, alignment */
strong, b { font-weight: 700; }
.bb-stats { gap: 0 !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
.bb-stats > .wp-block-group { padding: 4px 24px 0; border-left: 1px solid #D5DCE4; justify-content: flex-start; }
.bb-stats > .wp-block-group:first-child { padding-left: 0; border-left: 0; }
.bb-stat-number { font-size: clamp(34px, 3.4vw, 48px); line-height: 1.1; }
.bb-stat-label { margin-top: 6px; line-height: 1.4; max-width: 18ch; }
.bb-host-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.bb-host-stats > .wp-block-group { padding-left: 24px; border-left: 1px solid #D5DCE4; }
.bb-host-stats > .wp-block-group:first-child { padding-left: 0; border-left: 0; }
.bb-host-stats .bb-stat-number { font-size: clamp(28px, 3vw, 40px); }
.bb-section .are-vertically-aligned-bottom .wp-block-column > :last-child { margin-bottom: 0; }
.bb-cta-cover .wp-block-cover__background { opacity: 0.7 !important; }
@media (max-width: 900px) and (min-width: 601px) {
	.bb-stats { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; row-gap: 28px !important; }
	.bb-stats > .wp-block-group:nth-child(4) { padding-left: 0; border-left: 0; }
}
@media (max-width: 600px) {
	.bb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; row-gap: 24px !important; }
	.bb-stats > .wp-block-group { padding-left: 16px; }
	.bb-stats > .wp-block-group:nth-child(odd) { padding-left: 0; border-left: 0; }
	.bb-stats > .wp-block-group:last-child { grid-column: 1 / -1; }
	.bb-stat-number { font-size: 34px; }
	.bb-host-stats > .wp-block-group { padding-left: 14px; }
	.bb-host-stats .bb-stat-number { font-size: 26px; }
	.bb-host-stats .bb-stat-label { font-size: 13px; }
}
.bb-host-stats > * { margin-block-start: 0 !important; }
.bb-host-stats .bb-stat-number { white-space: nowrap; }
@media (max-width: 600px) { .bb-host-stats .bb-stat-number { font-size: 22px; } .bb-host-stats > .wp-block-group { padding-left: 10px; } .bb-host-stats > .wp-block-group:first-child { padding-left: 0; } }

/* Line drawing next to the features */
.bb-sketch { margin: 0; }
.bb-sketch img { border-radius: 16px; box-shadow: 0 1px 0 rgba(14,27,44,0.06), 0 12px 32px rgba(14,27,44,0.08); width: 100%; height: auto; }

/* Palm tree logo replaces the three stripes */
.bb-logo { position: relative; gap: 0; }
.bb-logo::before { width: 132px; height: 44px; background: url("assets/images/bungalow-bay-logo.png") left center / contain no-repeat; }
.bb-logo a { position: absolute; inset: 0; font-size: 0; color: transparent; }
footer .bb-logo::before { width: 108px; height: 36px; }

/* Floor plans on the navy section */
.bb-plan { margin: 0; background: #FFFFFF; border-radius: 16px; padding: 18px 18px 6px; }
.bb-plan img { width: 100%; height: auto; border-radius: 6px; }
.bb-plan a { display: block; cursor: zoom-in; }
.bb-plan figcaption { color: #3D4B5C; font-size: 14px; font-weight: 600; text-align: left; margin: 12px 2px 10px; }
.bb-logo::before { width: 170px; height: 56px; }
footer .bb-logo::before { width: 130px; height: 44px; }
@media (max-width: 600px) { .bb-logo::before { width: 140px; height: 46px; } }
/* Pencil plans sit on their own paper tone */
.bb-plan { background: #F3EFE8; padding: 10px 10px 4px; }
.bb-plan img { border-radius: 10px; }
.bb-plan figcaption { margin: 10px 8px 10px; }

/* Footer */
.bb-footer { margin-top: 64px; padding-top: 72px; padding-bottom: 32px; }
.bb-footer-cols { gap: 48px 64px; margin-bottom: 56px; }
.bb-footer-cols p { margin: 0; }
.bb-footer-cols .wp-block-column > * + * { margin-top: 16px; }
.bb-footer-logo { display: block; width: 168px; height: 56px; margin: 0 0 4px; }
.bb-footer-logo::before { display: block; width: 168px !important; height: 56px !important; background-position: left top; }
.bb-footer-heading { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #0E1B2C; }
.bb-footer-links a { text-decoration: none; color: #0E1B2C; }
.bb-footer-links a:hover { color: #1B3FA0; text-decoration: underline; }
.bb-footer-phone a { font-family: Archivo, sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -0.02em; text-decoration: none; color: #0E1B2C; }
.bb-footer-phone a:hover { color: #1B3FA0; }
.bb-footer-bottom { border-top: 1px solid #D5DCE4; padding-top: 20px; }
.bb-footer-bottom p { margin: 0; }
@media (max-width: 781px) { .bb-footer { padding-top: 56px; } .bb-footer-cols { margin-bottom: 40px; } }
/* Hero: pre-cropped original, show it whole */
.bb-hero-image img { object-position: center center; aspect-ratio: 1311 / 700; height: auto; max-height: 680px; }

/* Sea creature icons on the bungalow cards */
.bb-unit-icon { margin: 0; flex: none; }
.bb-unit-icon img { display: block; width: 44px; height: 44px; }
.bb-unit-name { align-items: center; }

/* Star rating next to the 4.9 */
.bb-stars { position: relative; display: inline-block; margin-left: 10px; font-family: Arial, sans-serif; font-size: 0.42em; letter-spacing: 2px; line-height: 1; vertical-align: 0.35em; color: #D5DCE4; white-space: nowrap; }
.bb-stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; color: #F2B300; }
@media (max-width: 600px) { .bb-stars { display: block; margin: 4px 0 0; font-size: 14px; vertical-align: 0; } }

/* Packages: price cards */
.bb-packages .bb-package { border: 1px solid #E6EAEF; border-style: solid; background: #FFFFFF; }
.bb-package-kind { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #4A5868; }
.bb-package-price { margin: 0; font-family: Archivo, sans-serif; font-weight: 800; font-size: 36px; letter-spacing: -0.03em; line-height: 1.1; }
.bb-package-price span { display: block; font-family: Inter, sans-serif; font-size: 15px; font-weight: 500; letter-spacing: 0; color: #4A5868; margin-top: 4px; }

/* Rates pop-up */
.bb-rates { display: none; }
.bb-rates.is-open { display: flex; position: fixed; inset: 0; z-index: 100000; margin: 0 !important; padding: 24px; align-items: center; justify-content: center; background: rgba(14, 27, 44, 0.62); backdrop-filter: blur(4px); }
html.bb-modal-open { overflow: hidden; }
.bb-rates-panel { background: #FFFFFF; border-radius: 20px; width: 100%; max-width: 1040px; max-height: calc(100vh - 48px); overflow-y: auto; padding: 36px 40px 28px; box-shadow: 0 24px 80px rgba(14, 27, 44, 0.35); outline: none; }
.bb-rates-panel > * + * { margin-top: 24px; }
.bb-rates-head { position: sticky; top: -36px; background: #FFFFFF; padding: 4px 0 16px; margin-top: -4px; border-bottom: 1px solid #E6EAEF; z-index: 2; }
.bb-rates-head h2, .bb-rates-head p { margin: 0; }
.bb-rates-head .wp-block-button__link { padding: 10px 18px; font-size: 14px; }
.bb-rates-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.bb-rates-grid > * { margin: 0 !important; }
.bb-rates-block--wide { grid-column: 1 / -1; background: #F3F5F8; border-radius: 14px; padding: 22px 26px; }
.bb-rates-block h3 { font-size: 19px; margin: 0 0 10px; }
.bb-rates-block h3 + * { margin-top: 0; }
.bb-rates-block > p { margin: 10px 0 0; }
.bb-rate-table { margin: 0; }
.bb-rate-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.bb-rate-table td { border: 0; border-bottom: 1px solid #E6EAEF; padding: 9px 0; vertical-align: top; }
.bb-rate-table td:last-child { text-align: right; font-weight: 600; white-space: nowrap; padding-left: 16px; }
.bb-rate-table tr:last-child td { border-bottom: 0; }
.bb-rates-list { margin: 0 0 14px; padding-left: 0; list-style: none; font-size: 15px; color: #3D4B5C; }
.bb-rates-list li { position: relative; padding-left: 24px; margin: 6px 0; }
.bb-rates-list li::before { content: "✓"; position: absolute; left: 0; color: #1B3FA0; font-weight: 700; }
.bb-rates-list--not li::before { content: "×"; color: #A11D1D; }
.bb-rates-foot { border-top: 1px solid #E6EAEF; padding-top: 18px; align-items: center; }
.bb-rates-foot p { margin: 0; }
@media (max-width: 781px) {
	.bb-rates.is-open { padding: 0; align-items: stretch; }
	.bb-rates-panel { border-radius: 0; max-height: 100vh; padding: 24px 20px; }
	.bb-rates-head { top: -24px; }
	.bb-rates-grid { grid-template-columns: 1fr; }
	.bb-rate-table td:last-child { white-space: normal; }
}
