/* HazelWood Child Theme — Global Styles */

/* Reset GeneratePress layout for custom templates */
body.hazelwood-template #page,
body.hazelwood-template .site-content,
body.hazelwood-template .content-area,
body.hazelwood-template #primary,
body.hazelwood-template #secondary,
body.hazelwood-template .generate-columns-container {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}

body.hazelwood-template .generate-wrap {
    padding: 0 !important;
    max-width: none !important;
}

body.hazelwood-template .inside-article,
body.hazelwood-template .entry-content {
    padding: 0 !important;
    margin: 0 !important;
}

body.hazelwood-template .site-header,
body.hazelwood-template .generate-header {
    display: none !important;
}

/* Material Symbols config */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    user-select: none;
}

/* Soft lift cards */
.soft-lift {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.soft-lift:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

/* Hero overlay */
.hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.6) 100%);
}

/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #bec8d2; border-radius: 10px; }

/* ── Map marker animations ──────────────────────────────────────────────────── */

@keyframes hw-pulse {
    0%   { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; }
}
@keyframes hw-pulse2 {
    0%   { transform: translate(-50%, -50%) scale(0.8); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; }
}
@keyframes hw-marker-pop {
    0%   { transform: translateY(0)   scale(1); }
    35%  { transform: translateY(-10px) scale(1.2); }
    65%  { transform: translateY(-4px)  scale(1.05); }
    100% { transform: translateY(0)   scale(1); }
}

/* Home / HazelWood branded pin */
.hw-home-marker {
    position: relative;
    width: 50px;
    height: 50px;
}
.hw-home-pin {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0D4A89, #0a3a6e);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(13,74,137,0.55);
    border: 3px solid #5AFFE7;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 2;
}
.hw-home-pin .material-symbols-outlined {
    transform: rotate(45deg);
    color: #5AFFE7;
    font-size: 22px;
    line-height: 1;
    display: block;
}
.hw-pulse-ring,
.hw-pulse-ring2 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(90, 255, 231, 0.7);
    pointer-events: none;
}
.hw-pulse-ring  { animation: hw-pulse  2s ease-out infinite; }
.hw-pulse-ring2 { animation: hw-pulse2 2s ease-out 1s infinite; }

/* Home pin hover */
.leaflet-marker-icon:hover .hw-home-pin {
    transform: rotate(-45deg) scale(1.15);
    box-shadow: 0 8px 28px rgba(13,74,137,0.7), 0 0 0 5px rgba(90,255,231,0.25);
}

/* POI markers */
.hw-poi-wrap {
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}
.leaflet-marker-icon:hover .hw-poi-wrap {
    transform: translateY(-9px) scale(1.2);
}
.leaflet-marker-icon.hw-bounce .hw-poi-wrap {
    animation: hw-marker-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.hw-poi-pin {
    width: 34px;
    height: 34px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(0,0,0,0.28);
    border: 2px solid rgba(255,255,255,0.45);
}
.hw-poi-pin .material-symbols-outlined {
    transform: rotate(45deg);
    color: #ffffff;
    font-size: 15px;
    line-height: 1;
    display: block;
}

/* Base font */
body.hazelwood-template {
    font-family: 'Gotham', 'Montserrat', sans-serif;
    background-color: #f7f9fb;
    color: #1A1610;
}

/* Override GeneratePress primary colour (#006591 → #0D4A89) */
a,
a:visited,
.entry-title a,
.site-branding a,
.main-navigation a,
.content-area a {
    color: #0D4A89;
}
a:hover,
a:focus {
    color: #0a3a6e;
}

/* Buttons — cyan bg (#5AFFE7), navy text (#0D4A89) */
button:not(.hw-map-filter):not(.hw-carousel-btn),
html input[type="button"],
input[type="reset"],
input[type="submit"],
a.button,
a.wp-block-button__link:not(.has-background),
a.bg-primary,
a[class*="bg-primary"] {
    background-color: #5AFFE7 !important;
    color: #0D4A89 !important;
    border-color: #5AFFE7 !important;
}

button:not(.hw-map-filter):not(.hw-carousel-btn):hover,
html input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
a.button:hover,
button:not(.hw-map-filter):not(.hw-carousel-btn):focus,
html input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus,
a.button:focus,
a.wp-block-button__link:not(.has-background):hover,
a.wp-block-button__link:not(.has-background):focus,
a.bg-primary:hover,
a[class*="bg-primary"]:hover {
    background-color: #3de8cf !important;
    color: #0D4A89 !important;
    border-color: #3de8cf !important;
}

/* Map POI filter buttons — active / inactive state */
.hw-map-filter {
    background-color: #ffffff !important;
    color: #3D4A5A !important;
    border-color: #C8C5BC !important;
}
.hw-map-filter[data-active="1"] {
    background-color: #0D4A89 !important;
    color: #ffffff !important;
    border-color: #0D4A89 !important;
}
.hw-map-filter[data-active="0"] {
    background-color: #ffffff !important;
    color: #3D4A5A !important;
    border-color: #C8C5BC !important;
}

/* Photo Carousel */
.hw-carousel-wrap {
    overflow: hidden;
    position: relative;
}
.hw-carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}
.hw-carousel-slide {
    flex: 0 0 100%;
    position: relative;
}
@media (min-width: 768px) {
    .hw-carousel-slide { flex: 0 0 33.333%; }
}
.hw-carousel-slide img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    border-radius: 0.75rem;
}
.hw-carousel-slide .hw-carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(13,74,137,0.7));
    color: #fff;
    padding: 12px 16px 10px;
    border-radius: 0 0 0.75rem 0.75rem;
    font-size: 13px;
    font-weight: 600;
}
.hw-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: #5AFFE7 !important;
    color: #0D4A89 !important;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: background 0.2s;
}
.hw-carousel-btn:hover {
    background: #3de8cf !important;
}
.hw-carousel-btn--prev { left: 8px; }
.hw-carousel-btn--next { right: 8px; }
.hw-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}
.hw-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #C8C5BC;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    padding: 0;
}
.hw-carousel-dot.active {
    background: #0D4A89;
}

/* Booking timer */
#hazelwood-lock-timer {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 14px;
    font-weight: 600;
    color: #856404;
}
