/* Hero section */
.hero-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url("../images/hero1.webp");
    min-height: 70vh;
    width: auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    border-radius: 20px;
    margin-top: 80px;
    margin-left: 10px;
    margin-right: 10px;
}

.hero-text {
    margin-top: 4rem;
    color: white;
}

#output {
    margin-bottom: 30px;
}

/*Hero Header Sub text*/
.display-7 {
    color: white;
    margin-top: 10px;
}

/*Beach Hero Images*/
.hero-gwithian {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url("../images/gwithian.webp");
    height: 70vh;
    width: auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    border-radius: 20px;
    margin-top: 80px;
    margin-left: 10px;
    margin-right: 10px;
}

.hero-watergatebay {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url("../images/watergate.webp");
    height: 70vh;
    width: auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    border-radius: 20px;
    margin-top: 80px;
    margin-left: 10px;
    margin-right: 10px;
}

.hero-porthtowan {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url("../images/porthtowan.webp");
    height: 70vh;
    width: auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    border-radius: 20px;
    margin-top: 80px;
    margin-left: 10px;
    margin-right: 10px;
}

.hero-sennen {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url("../images/sennen.webp");
    height: 70vh;
    width: auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    border-radius: 20px;
    margin-top: 80px;
    margin-left: 10px;
    margin-right: 10px;
}

.hero-praasands {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url("../images/praasands.webp");
    height: 70vh;
    width: auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    border-radius: 20px;
    margin-top: 80px;
    margin-left: 10px;
    margin-right: 10px;
}

.hero-fistral {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url("../images/fistral.webp");
    height: 70vh;
    width: auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    border-radius: 20px;
    margin-top: 80px;
    margin-left: 10px;
    margin-right: 10px;
}

.hero-kennack {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url("../images/kennacksands.webp");
    height: 70vh;
    width: auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    border-radius: 20px;
    margin-top: 80px;
    margin-left: 10px;
    margin-right: 10px;
}

/*Text Sizes*/
h1 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

/*Button Styles*/
.mt-3 {
    background-color: #5c91c6;
    border: 1px solid #5c91c6;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.mt-3:hover {
    background-color: #497bb3;
    border-color: #497bb3;
    color: white;
    text-decoration: none;
}

/* Cornwall map section */
.cornwall-map {
    padding: 4rem 1rem;
    background: #ffffff;
    /* match wireframe grey */
}

/* Overlap: assume first column is text, second is map */
.cornwall-map .row > div:last-child {
    position: relative;
    margin-left: -4rem;
    /* adjust for more/less overlap */
    z-index: 1;
}

/* Keep map title text above the map */
.cornwall-map h2,
.cornwall-map p {
    position: relative;
    z-index: 2;
}

/* Map title styling */
.map-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.map-subtitle {
    color: #6c6c6c;
    max-width: 22rem;
}

/* Wrapper for creating positioning context for our map pins */
.map-wrapper {
    position: relative;
    max-width: 800px;
    width: 100%;
}

.map-image {
    display: block;
    width: 100%;
    height: auto;
}

/* Location pins styles for the map */
.map-pin {
    position: absolute;
    width: 24px;
    height: 24px;
    background-image: url("../images/red-pin.svg");
    background-size: contain;
    background-repeat: no-repeat;
    border: none;
    background-color: transparent;
    transform: translate(-50%, -100%);
    /* Center the pin horizontally and position the tip at the location */
    cursor: pointer;
}

/* Modal base */
.map-modal {
    position: fixed;
    inset: 0;
    display: none;
    /* hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 999;
}

/* Backdrop */
.map-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

/* Modal card */
.map-modal-content {
    position: relative;
    background: #ffffff;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    max-width: 320px;
    width: 90%;
    z-index: 1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
}

.map-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Show modal when .is-open is applied */
.map-modal.is-open {
    display: flex;
}

/* Responsive: remove overlap on small screens */
@media (max-width: 767.98px) {
    .cornwall-map .row > div:last-child {
        margin-left: 0;
    }
}

/* Carousel section */
.carousel-inner {
    padding: 1rem 1rem;
}

.carousel-item .row {
    justify-content: center;
}

.card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    min-height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* Individual card backgrounds */
.card-1 {
    background-image: url("../images/watergate.webp");
}

.card-2 {
    background-image: url("../images/porthtowan.webp");
}

.card-3 {
    background-image: url("../images/gwithian.webp");
}

.card-4 {
    background-image: url("../images/sennen.webp");
}

.card-5 {
    background-image: url("../images/praasands.webp");
}

.card-6 {
    background-image: url("../images/fistral.webp");
}

.card-7 {
    background-image: url("../images/kennacksands.webp");
}

.card-8 {
    background-image: url("../images/fistral2.webp");
}

.card-9 {
    background-image: url("../images/watergate.webp");
}

.card-10 {
    background-image: url("../images/porthtowan.webp");
}

.card-11 {
    background-image: url("../images/gwithian.webp");
}

.card-12 {
    background-image: url("../images/sennen.webp");
}

/* Added overlay for better text readability */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    height: 100%;
    position: relative;
    z-index: 2;
    text-align: center;
    min-height: 300px;
}

.card-title {
    color: white;
    font-weight: 600;
    margin-bottom: 4rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-text {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    margin-bottom: 0.75rem;
}

.carousel-indicators {
    position: relative;
    margin-top: 20px;
    margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 100%;
    background-color: #d0d0d0;
    border: none;
    opacity: 1;
}

.carousel-indicators .active {
    background-color: #000000;
}

/* Footer section */
/* Mobile-first footer / social links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 0rem;
}

@media (min-width: 992px) {
    .social-links {
        justify-content: flex-end;
        text-align: left;
    }
}

.social-links a {
    color: #000;
    font-size: 1.8rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: #555;
    transform: translateY(-2px);
}

#logo-footer {
    margin-top: 0rem;
}

#logo-footer .container {
    margin-left: 0rem;
}

.footer {
    margin-top: 4rem;
}

footer .container {
    padding-right: 3rem;
    padding-left: 3rem;
}

.about-section {
    margin-top: 18rem;
    /* pushes it DOWN */
    padding: 3rem 0;
    /* internal breathing room */
}

.hero {
    min-height: 70vh;
}

/* Navbar background colour */
.navbar {
    background-color: #ffffff;
}

/* find my surf card styling */
.beach-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.beach-card {
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    width: 260px;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    /* subtle depth */
}

/* 📱 Mobile */
@media (max-width: 600px) {
    .beach-container {
        flex-direction: column;
        align-items: stretch;
    }

    .beach-card {
        width: auto;
        margin-left: 10px;
        margin-right: 10px;
    }
}

.status {
    color: #ffffff;
    margin-bottom: 20px;
    padding: 10px;
    font-weight: bold;
}

.centered {
    text-align: center;
}

.surfboard-btn {
    padding: 12px 40px;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #5c91c6, #4fa3b2);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 20px;
}

.surfboard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.surfboard-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}
