/*
|--------------------------------------------------------------------------
| Wedding navigation
|--------------------------------------------------------------------------
*/

.wedding-header .main-nav {
    z-index: 5000;
    min-height: 92px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(19, 29, 45, 0.06);
}

.wedding-header .navbar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 92px;
    padding: 0 15px;
}

.wedding-header .navbar-brand .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.wedding-header .navbar-brand .logo img {
    display: block;
    width: auto;
    max-height: 68px;
}

@media (min-width: 768px) {
    .wedding-header .navbar-collapse {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        min-height: 92px;
        padding-right: 0;
        padding-left: 0;
    }
}

.wedding-main-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    width: auto !important;
    margin: 0;
}

.wedding-main-menu--single {
    gap: 1px;
}

.wedding-auth-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto !important;
    margin: 0 0 0 auto;
}

.wedding-auth-menu > li {
    float: none;
    margin-right: 0 !important;
    font-size: 13px !important;
    line-height: 18px !important;
}

.wedding-auth-menu > li::before {
    display: none !important;
}

.wedding-auth-menu > li > a {
    padding: 8px 13px;
    border: 1px solid #f0c5cc;
    border-radius: 18px;
    color: #df3654 !important;
    background: #ffffff !important;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 18px;
    text-decoration: none !important;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.wedding-auth-menu > li > a:hover,
.wedding-auth-menu > li > a:focus {
    color: #ffffff !important;
    border-color: #df3654;
    background: #df3654 !important;
}

.wedding-main-menu > li {
    position: relative;
    float: none;
}

.wedding-main-menu > li > a {
    position: relative;
    padding: 10px 10px;
    color: #111111 !important;
    background: transparent !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    text-transform: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

@media (min-width: 1200px) {
    .wedding-main-menu--single {
        flex-wrap: nowrap;
        margin-left: 12px;
    }

    .wedding-main-menu--single > li > a {
        padding: 10px 9px;
        font-size: 14px;
    }
}

.wedding-main-menu > li > a:hover,
.wedding-main-menu > li > a:focus {
    color: #df3654 !important;
    background: transparent !important;
}

.wedding-main-menu > li.active > a,
.wedding-main-menu > li.open > a {
    color: #111111 !important;
    background: transparent !important;
}

.wedding-main-menu > li.active > a::after,
.wedding-main-menu > li.open > a::after,
.wedding-main-menu > li > a:hover::after {
    position: absolute;
    right: 11px;
    bottom: 0;
    left: 11px;
    height: 2px;
    content: "";
    background: #df3654;
}

.wedding-main-menu .menu-arrow {
    display: inline-block;
    margin-left: 4px;
    font-size: 12px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.wedding-nav-dropdown.open > a .menu-arrow {
    transform: rotate(180deg);
}

.wedding-dropdown-menu {
    z-index: 6000;
    top: calc(100% + 10px);
    left: 50%;
    width: 760px;
    max-width: calc(100vw - 30px);
    margin: 0;
    padding: 18px;
    border: 1px solid #f0d9dd;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(26, 31, 44, 0.14);
    transform: translateX(-50%);
}

.wedding-dropdown-menu--catalog {
    width: 620px;
    min-width: 620px;
}

.wedding-dropdown-menu--areas {
    width: 820px;
}

.wedding-dropdown-menu--venues {
    top: calc(100% + 10px);
    right: auto;
    left: 3px;
    width: 138px;
    min-width: 138px;
    max-width: 138px;
    margin: 0;
    padding: 7px 0;
    overflow: hidden;
    border: 1px solid #d8d8d8;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transform: none;
}

/* Keep the Venues underline aligned like the reference image. */
.wedding-nav-dropdown--venues.open > a::after,
.wedding-nav-dropdown--venues > a:hover::after {
    right: 0;
    left: 0;
}


/*
|--------------------------------------------------------------------------
| Events dropdown
|--------------------------------------------------------------------------
*/

.wedding-dropdown-menu--events {
    top: calc(100% + 10px);
    right: auto;
    left: 0;
    width: 204px;
    min-width: 204px;
    max-width: 204px;
    max-height: 70vh;
    margin: 0;
    padding: 9px 14px 12px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #d8d8d8;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.08);
    transform: none;
}

.wedding-dropdown-menu--events > li {
    display: block;
    width: 100%;
}

.wedding-dropdown-menu--events > li > a,
.wedding-dropdown-empty--event {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 36px;
    padding: 7px 11px;
    color: #222222 !important;
    background: transparent !important;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
    text-decoration: none !important;
    white-space: normal;
    overflow-wrap: anywhere;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        padding-left 0.2s ease;
}

.wedding-dropdown-menu--events > li > a:hover,
.wedding-dropdown-menu--events > li > a:focus,
.wedding-dropdown-menu--events > li.active > a {
    padding-left: 15px;
    color: #df3654 !important;
    background: #fff7f8 !important;
}

.wedding-dropdown-menu--events .wedding-event-menu-divider {
    height: 1px;
    min-height: 1px;
    margin: 8px 0 3px;
    background: #e3e6eb;
}

.wedding-dropdown-menu--events .wedding-event-menu-view-all > a {
    color: #df3654 !important;
}

.wedding-dropdown-menu--events .wedding-event-menu-view-all > a:hover,
.wedding-dropdown-menu--events .wedding-event-menu-view-all > a:focus {
    color: #bf2441 !important;
    background: #fff7f8 !important;
}

.wedding-dropdown-menu--list {
    left: 0;
    width: 210px;
    min-width: 210px;
    padding: 8px 0;
    transform: none;
}

.wedding-dropdown-menu::before {
    position: absolute;
    top: -13px;
    right: 0;
    left: 0;
    height: 13px;
    content: "";
}

.wedding-dropdown-menu--list > li {
    display: block;
    width: 100%;
}

.wedding-dropdown-menu--venues > li {
    display: block;
    width: 100%;
}

.wedding-dropdown-menu--venues > li > a,
.wedding-dropdown-empty--venue {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 36px;
    padding: 8px 16px;
    color: #222222 !important;
    background: transparent !important;
    font-size: 15px;
    font-weight: 400;
    line-height: 20px;
    text-decoration: none !important;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        padding-left 0.2s ease;
}

.wedding-dropdown-menu--venues > li > a:hover,
.wedding-dropdown-menu--venues > li > a:focus,
.wedding-dropdown-menu--venues > li.active > a {
    padding-left: 20px;
    color: #df3654 !important;
    background: #f8f8f8 !important;
}

.wedding-dropdown-menu--list > li > a {
    display: block;
    padding: 9px 15px;
    color: #222222;
    background: #ffffff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        padding-left 0.2s ease;
}

.wedding-dropdown-menu--list > li > a:hover,
.wedding-dropdown-menu--list > li > a:focus,
.wedding-dropdown-menu--list > li.active > a {
    padding-left: 19px;
    color: #df3654;
    background: #fff4f6;
}

.wedding-dropdown-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(210px, 0.9fr);
    gap: 18px;
    align-items: start;
}

.wedding-dropdown-layout--service-select {
    grid-template-columns: 1fr;
    gap: 0;
}

.wedding-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.wedding-dropdown-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    padding: 12px 14px;
    border: 1px solid #f3e8ea;
    border-radius: 18px;
    color: #202636 !important;
    background: #ffffff;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.wedding-dropdown-card:hover,
.wedding-dropdown-card:focus,
.wedding-dropdown-card.is-active {
    border-color: #f3b4bf;
    background: #fff7f8;
    box-shadow: 0 12px 24px rgba(223, 54, 84, 0.08);
}

.wedding-dropdown-card__media {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #fff0f3;
    flex: 0 0 42px;
    overflow: hidden;
}

.wedding-dropdown-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wedding-dropdown-card__media .fa {
    color: #df3654;
    font-size: 20px;
    line-height: 1;
}

.wedding-dropdown-card__initial {
    color: #df3654;
    font-size: 16px;
    font-weight: 700;
}

.wedding-dropdown-card__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wedding-dropdown-card__title {
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
}

.wedding-dropdown-card__meta {
    margin-top: 4px;
    color: #7b8395;
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
}

.wedding-dropdown-featured {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wedding-featured-card {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    color: #202636 !important;
    background: #fff8f9;
    text-decoration: none !important;
    border: 1px solid #f3e8ea;
}

.wedding-featured-card img {
    display: block;
    width: 100%;
    height: 124px;
    object-fit: cover;
}

.wedding-featured-card span {
    display: block;
    padding: 11px 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.wedding-areas-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.wedding-area-card {
    padding: 14px 16px;
    border: 1px solid #f3e8ea;
    border-radius: 20px;
    background: #ffffff;
}

.wedding-area-card__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #202636 !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none !important;
}

.wedding-area-card__links {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 12px;
}

.wedding-area-card__links a {
    color: #70788b !important;
    font-size: 13px;
    line-height: 1.45;
    text-decoration: none !important;
    white-space: normal;
    word-break: break-word;
}

.wedding-area-card__links a:hover,
.wedding-area-card__links a:focus {
    color: #df3654 !important;
}

.wedding-area-card__view-all {
    display: inline-block;
    margin-top: 12px;
    color: #df3654 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
}

.wedding-dropdown-empty {
    color: #70788b;
    font-size: 14px;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .wedding-nav-dropdown:hover > .wedding-dropdown-menu {
        display: block;
    }

    .wedding-nav-dropdown:hover > a .menu-arrow {
        transform: rotate(180deg);
    }

    .wedding-nav-dropdown:hover > a::after {
        position: absolute;
        right: 11px;
        bottom: 0;
        left: 11px;
        height: 2px;
        content: "";
        background: #df3654;
    }
}

@media (max-width: 991px) {
    .wedding-header .main-nav {
        min-height: 76px;
    }

    .wedding-header .navbar-header {
        min-height: 76px;
    }

    .wedding-header .navbar-brand {
        height: 76px;
    }

    .wedding-header .navbar-brand .logo img {
        max-height: 58px;
    }

    .wedding-main-menu {
        justify-content: flex-start;
    }

    .wedding-auth-menu {
        margin-left: 12px;
    }
}

@media (max-width: 767px) {
    .wedding-header .navbar-toggle {
        margin-top: 15px;
        margin-right: 0;
        margin-left: 15px;
        border-color: #df3654;
        background: transparent;
    }

    .wedding-header .navbar-toggle:hover,
    .wedding-header .navbar-toggle:focus {
        background: #fff4f6;
    }

    .wedding-header .navbar-toggle .icon-bar {
        background: #df3654;
    }

    .wedding-header .navbar-collapse {
        max-height: calc(100vh - 76px);
        padding: 10px 15px 25px;
        border-top: 1px solid #eeeeee;
        background: #ffffff;
        overflow-y: auto;
    }

    .wedding-main-menu {
        flex-direction: column;
        align-items: stretch;
    }

    .wedding-auth-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 9px;
        margin: 14px 0 0;
    }

    .wedding-main-menu > li {
        width: 100%;
    }

    .wedding-main-menu > li > a {
        padding: 12px 12px;
    }

    .wedding-auth-menu > li {
        width: 100%;
    }

    .wedding-auth-menu > li > a {
        display: block;
        width: 100%;
        padding: 11px 14px;
        border-radius: 16px;
        text-align: center;
    }

    .wedding-dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        margin: 5px 0 12px;
        padding: 14px;
        border: 1px solid #f0d9dd;
        border-radius: 20px;
        box-shadow: none;
        transform: none;
    }

    .wedding-dropdown-menu--list {
        padding: 8px 0;
    }

    .wedding-dropdown-menu--venues {
        left: 0;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        padding: 8px 0;
    }

    .wedding-dropdown-menu--events {
        left: 0;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        padding: 8px 12px 12px;
    }

    .wedding-dropdown-layout,
    .wedding-dropdown-grid,
    .wedding-areas-grid {
        grid-template-columns: 1fr;
    }

    .wedding-dropdown-featured {
        margin-top: 8px;
    }
}


/*
|--------------------------------------------------------------------------
| Stable desktop hover/click dropdown
| Keeps the menu open while the cursor moves from the nav item to the card.
|--------------------------------------------------------------------------
*/
@media (min-width: 768px) {
    .wedding-nav-dropdown {
        position: relative;
    }

    /* Invisible hover bridge for the gap between link and dropdown. */
    .wedding-nav-dropdown::after {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 1001;
        height: 14px;
        content: "";
        background: transparent;
    }

    /* Keep dropdown rendered so hover transition does not break. */
    .wedding-nav-dropdown > .wedding-dropdown-menu {
        display: block;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform-origin: top center;
        transition: opacity 0.18s ease, visibility 0.18s ease;
    }

    /* Venue/list dropdowns must keep their original positioning transform. */
    .wedding-nav-dropdown > .wedding-dropdown-menu--venues,
    .wedding-nav-dropdown > .wedding-dropdown-menu--events,
    .wedding-nav-dropdown > .wedding-dropdown-menu--list,
    .wedding-nav-dropdown > .wedding-dropdown-menu--about {
        transform: none;
    }

    /* Wide catalog and areas dropdowns remain centred. */
    .wedding-nav-dropdown > .wedding-dropdown-menu--catalog,
    .wedding-nav-dropdown > .wedding-dropdown-menu--areas {
        transform: translateX(-50%);
    }

    /* Open on hover, keyboard focus, or Bootstrap click state. */
    .wedding-nav-dropdown:hover > .wedding-dropdown-menu,
    .wedding-nav-dropdown:focus-within > .wedding-dropdown-menu,
    .wedding-nav-dropdown.open > .wedding-dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .wedding-nav-dropdown:hover > a .menu-arrow,
    .wedding-nav-dropdown:focus-within > a .menu-arrow,
    .wedding-nav-dropdown.open > a .menu-arrow {
        transform: rotate(180deg);
    }
}

/*
|--------------------------------------------------------------------------
| About Us dropdown
|--------------------------------------------------------------------------
*/

.wedding-dropdown-menu--about {
    top: calc(100% + 10px);
    right: auto;
    left: 0;
    width: 170px;
    min-width: 170px;
    max-width: 170px;
    margin: 0;
    padding: 8px 0;
    overflow: hidden;
    border: 1px solid #d8d8d8;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.08);
    transform: none;
}

.wedding-dropdown-menu--about > li {
    display: block;
    width: 100%;
}

.wedding-dropdown-menu--about > li > a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 38px;
    padding: 8px 16px;
    color: #222222 !important;
    background: transparent !important;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
    text-decoration: none !important;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        padding-left 0.2s ease;
}

.wedding-dropdown-menu--about > li > a:hover,
.wedding-dropdown-menu--about > li > a:focus,
.wedding-dropdown-menu--about > li.active > a {
    padding-left: 20px;
    color: #df3654 !important;
    background: #fff7f8 !important;
}

/* Keep About Us underline aligned with the menu text. */
.wedding-nav-dropdown--about.open > a::after,
.wedding-nav-dropdown--about > a:hover::after {
    right: 10px;
    left: 10px;
}

@media (max-width: 767px) {
    .wedding-dropdown-menu--about {
        left: 0;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        padding: 8px 0;
        border-radius: 18px;
    }
}
