/* OwlB&B Homepage — [owlbb_homepage] shortcode styles */

.owlbb-homepage {
    /* Colours inherited from :root (set in auth.css, overridden by brand colour settings). */
    --owlbb-text: #2D2D3A;
    --owlbb-text-secondary: #6B7280;
    --owlbb-text-muted: #9CA3AF;
    --owlbb-border: #E5E7EB;
    --owlbb-white: #FFFFFF;
    --owlbb-bg: #FAFBFC;
    --owlbb-radius-sm: 10px;
    --owlbb-radius-lg: 24px;
    --owlbb-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --owlbb-shadow-card: 0 2px 16px rgba(0, 0, 0, 0.04);

    font-family: var(--owlbb-font, inherit);
    color: var(--owlbb-text);
    line-height: 1.6;
    overflow: hidden;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.owlbb-homepage h1,
.owlbb-homepage h2,
.owlbb-homepage h3,
.owlbb-homepage h4 {
    font-family: var(--owlbb-font-headings, var(--owlbb-font, inherit));
}

/* ── Hero Section ────────────────────────────────────────── */

.owlbb-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 1.5rem 6rem;
    background-color: var(--owlbb-dark);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.owlbb-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.55);
    z-index: 1;
}

.owlbb-hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.owlbb-hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--owlbb-white);
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.owlbb-hero__subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.owlbb-hero__search {
    position: relative;
    z-index: 2;
    margin-top: 2.5rem;
    width: 100%;
    max-width: 700px;
}

.owlbb-hero__search-form {
    display: flex;
    align-items: flex-end;
    gap: 0;
    background: var(--owlbb-white);
    border-radius: 60px;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.owlbb-hero__search-field {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    border-right: 1px solid var(--owlbb-border);
}

.owlbb-hero__search-field:last-of-type {
    border-right: none;
}

.owlbb-hero__search-field label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--owlbb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}

.owlbb-hero__search-field input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 0.85rem;
    color: var(--owlbb-text);
    background: transparent;
    padding: 0;
    font-family: var(--owlbb-font, inherit);
}

.owlbb-hero__search-field input::placeholder {
    color: var(--owlbb-text-secondary);
}

.owlbb-hero__search-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--owlbb-accent);
    color: var(--owlbb-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.owlbb-hero__search-btn:hover {
    background: var(--owlbb-accent-hover);
}

/* ── Shared section styles ───────────────────────────────── */

.owlbb-section {
    width: 100%;
    padding: 4rem 4rem;
}

.owlbb-locations,
.owlbb-stays {
    max-width: 100%;
}

.owlbb-locations__grid,
.owlbb-stays__grid {
    max-width: 100%;
}

.owlbb-section__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.owlbb-section__header h2 {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--owlbb-dark);
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}

.owlbb-section__header p {
    font-size: 0.95rem;
    color: var(--owlbb-text-secondary);
    max-width: 550px;
    margin: 0 auto;
}

/* ── Popular Locations ───────────────────────────────────── */

.owlbb-locations__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.owlbb-location-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 180px;
    border-radius: var(--owlbb-radius-sm);
    overflow: hidden;
    background-color: #2D2D3A;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.owlbb-location-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.owlbb-location-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}

.owlbb-location-card__content {
    position: relative;
    z-index: 1;
    padding: 1.25rem;
    color: var(--owlbb-white);
}

.owlbb-location-card__content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.15rem;
}

.owlbb-location-card__content span {
    font-size: 0.8rem;
    opacity: 0.75;
}

/* ── Popular Stays ───────────────────────────────────────── */

.owlbb-stays__grid {
    display: grid;
    grid-template-columns: repeat(var(--owlbb-stays-cols, 3), 1fr);
    gap: 1.5rem;
}

.owlbb-stay-card {
    background: var(--owlbb-white);
    border-radius: var(--owlbb-radius-sm);
    overflow: hidden;
    box-shadow: var(--owlbb-shadow-card);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.owlbb-stay-card:hover {
    box-shadow: var(--owlbb-shadow);
    transform: translateY(-2px);
}

/* Carousel */
.owlbb-stay-card__carousel {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f0f0;
}

.owlbb-stay-card__slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.35s ease;
}

.owlbb-stay-card__slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.owlbb-stay-card__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.owlbb-stay-card__slide--placeholder {
    background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 100%);
}

/* Nav arrows */
.owlbb-stay-card__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--owlbb-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.owlbb-stay-card:hover .owlbb-stay-card__nav {
    opacity: 1;
}

.owlbb-stay-card__nav:hover {
    background: var(--owlbb-white);
}

.owlbb-stay-card__nav--prev { left: 10px; }
.owlbb-stay-card__nav--next { right: 10px; }

/* Dots */
.owlbb-stay-card__dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 3;
}

.owlbb-stay-card__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: background 0.2s;
}

.owlbb-stay-card__dot--active {
    background: var(--owlbb-white);
}

/* Badges */
.owlbb-stay-card__badges {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    z-index: 3;
}

.owlbb-stay-card__badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.55);
    color: var(--owlbb-white);
    backdrop-filter: blur(4px);
}

/* Info */
.owlbb-stay-card__info {
    padding: 0.9rem 1rem;
}

.owlbb-stay-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: var(--owlbb-dark);
}

.owlbb-stay-card__title a {
    color: inherit;
    text-decoration: none;
}

.owlbb-stay-card__title a:hover {
    color: var(--owlbb-accent);
}

.owlbb-stay-card__price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--owlbb-dark);
}

/* ── Reads / Blog Section ────────────────────────────────── */

.owlbb-reads {
    background: var(--owlbb-dark);
    width: 100%;
    padding: 4rem 4rem;
}

.owlbb-reads__header {
    margin: 0 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.owlbb-reads__header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--owlbb-white);
    margin: 0;
}

.owlbb-reads__nav {
    display: flex;
    gap: 8px;
}

.owlbb-reads__nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.3);
    background: transparent;
    color: var(--owlbb-white);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}

.owlbb-reads__nav-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.owlbb-reads__track {
    width: 100%;
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
}

.owlbb-reads__track::-webkit-scrollbar {
    display: none;
}

.owlbb-read-card {
    flex: 0 0 280px;
    text-decoration: none;
    color: var(--owlbb-white);
    transition: transform 0.25s;
}

.owlbb-read-card:hover {
    transform: translateY(-3px);
}

.owlbb-read-card__image {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--owlbb-radius-sm);
    overflow: hidden;
    background: #3a3a50;
    margin-bottom: 0.75rem;
}

.owlbb-read-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.owlbb-read-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3a3a50, #2a2a40);
}

.owlbb-read-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--owlbb-accent);
    color: var(--owlbb-white);
}

.owlbb-read-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    line-height: 1.35;
    color: var(--owlbb-white);
}

.owlbb-read-card__excerpt {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.5;
}

/* ── CTA Section ─────────────────────────────────────────── */

.owlbb-cta {
    padding: 3rem 4rem 5rem;
}

.owlbb-cta__inner {
    width: 100%;
    margin: 0 auto;
    background: var(--owlbb-dark);
    border-radius: var(--owlbb-radius-lg);
    padding: 4rem 3rem;
    text-align: center;
}

.owlbb-cta__inner h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: var(--owlbb-white);
    margin: 0 0 0.75rem;
}

.owlbb-cta__inner p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.owlbb-cta__btn {
    display: inline-block;
    background: var(--owlbb-accent);
    color: var(--owlbb-white);
    padding: 0.85rem 2.25rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.owlbb-cta__btn:hover {
    background: var(--owlbb-accent-hover);
    transform: translateY(-1px);
    color: var(--owlbb-white);
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 900px) {
    .owlbb-locations__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .owlbb-stays__grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .owlbb-hero__search-form {
        flex-wrap: wrap;
        border-radius: var(--owlbb-radius-sm);
        padding: 1rem;
        gap: 0.5rem;
    }
    .owlbb-hero__search-field {
        flex: 1 1 40%;
        border-right: none;
        border-bottom: 1px solid var(--owlbb-border);
        padding-bottom: 0.75rem;
    }
    .owlbb-hero__search-field:nth-last-of-type(-n+2) {
        border-bottom: none;
    }
    .owlbb-hero__search-btn {
        width: 100%;
        border-radius: var(--owlbb-radius-sm);
        height: 44px;
    }
}

@media (max-width: 600px) {
    .owlbb-locations__grid {
        grid-template-columns: 1fr;
    }
    .owlbb-stays__grid {
        grid-template-columns: 1fr !important;
    }
    .owlbb-hero {
        min-height: 380px;
        padding: 3rem 1rem 4rem;
    }
    .owlbb-section {
        padding: 2.5rem 1rem;
    }
    .owlbb-reads {
        padding: 2.5rem 1rem;
    }
    .owlbb-cta {
        padding: 2.5rem 1rem 3rem;
    }
    .owlbb-cta__inner {
        padding: 2.5rem 1.5rem;
    }
    .owlbb-read-card {
        flex: 0 0 240px;
    }
    .owlbb-reads__header h2 {
        font-size: 1.3rem;
    }
}
