/* ===== NAVIGATION COMPONENTS ===== */

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-subtle);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.header.scrolled {
    background: rgb(255 255 255 / 98%);
    box-shadow: var(--shadow-sm);
}

.header.scrolled .logo {
    color: #79756c;
}

.header.scrolled .nav-menu a {
    color: #79756c;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 300;
    color: #e3e3e3;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.logo:hover {
    color: var(--color-accent);
}

/* Navigation Menu */
.nav-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
    position: relative;
}

.nav-menu a {
    display: block;
    padding: var(--spacing-xs) var(--spacing-sm);
    color: #e3e3e3;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-accent);
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform var(--transition-fast);
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: none;
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: none;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 191px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    background: #0000005e;
    border: 2px solid #b3a597;
    margin: 0;
}

.dropdown-menu li:nth-child(1) {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
}

.dropdown-menu li:nth-child(2) {
    border-top-right-radius: 0;
    border-top-left-radius: 0;
}

.dropdown-menu a {
    color: #b3a597;
    padding: var(--spacing-sm) var(--spacing-sm);
    margin: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    justify-content: center;
}

.dropdown-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.dropdown-menu a:hover::before {
    left: 100%;
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, var(--color-accent), #a08f8f);
    color: var(--color-white);
    border-radius: var(--radius-md);
}

.dropdown-menu li:nth-child(1) a:hover {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.dropdown-menu li:nth-child(2) a:hover {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.dropdown-menu a.active {
    background: linear-gradient(135deg, var(--color-accent), #a08f8f);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(179, 165, 151, 0.25);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.nav-toggle:hover {
    background: var(--color-primary);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #e3e3e3;
    margin: 4px 0;
    transition: all var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== PARALLAX EFFECTS ===== */
.parallax {
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.parallax[data-speed="slow"] {
    transform: translateZ(0);
}

.parallax[data-speed="medium"] {
    transform: translateZ(0);
}

.parallax[data-speed="fast"] {
    transform: translateZ(0);
}

/* ===== RIPPLE EFFECTS ===== */
.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===== PROGRESS BARS ===== */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--color-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: var(--spacing-sm) 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    width: 0;
    transition: width 1.5s ease-in-out;
    border-radius: var(--radius-sm);
}

/* ===== FLOATING ELEMENTS ===== */
.floating {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ===== ENHANCED ANIMATIONS ===== */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.slide-in-up {
    animation: slideInUp 0.6s ease-out;
}

.slide-in-down {
    animation: slideInDown 0.6s ease-out;
}

.zoom-in {
    animation: zoomIn 0.6s ease-out;
}

/* ===== WEDDING DAY COUNTDOWN ===== */
.countdown.wedding-day {
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
}

.countdown.wedding-day h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.countdown.wedding-day p {
    color: var(--color-white);
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Enhanced Countdown Styling */
.countdown {
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.countdown h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
    font-weight: 300;
}

.countdown-subtitle {
    font-family: var(--font-accent);
    font-size: 1.3rem;
    color: var(--color-accent);
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.countdown-message {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-top: var(--spacing-md);
    opacity: 0.8;
    font-style: italic;
}

/* ===== ENHANCED CARD INTERACTIONS ===== */
.card {
    transition: all var(--transition-normal);
    cursor: pointer;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* ===== REGISTRY SPECIFIC STYLES ===== */
.registry-card {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.registry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.registry-card:hover::before {
    left: 100%;
}

.registry-icon {
    color: var(--color-accent);
    margin-bottom: var(--spacing-md);
}

.registry-card h3 {
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
}

.registry-card p {
    color: var(--color-text);
    opacity: 0.8;
    margin-bottom: var(--spacing-md);
}

/* ===== PAYMENT PROGRESS ===== */
.payment-progress {
    display: none;
    margin: var(--spacing-md) 0;
    background: var(--color-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 6px;
}

.payment-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    width: 0;
    transition: width 0.3s ease;
    border-radius: var(--radius-sm);
}

/* ===== CELEBRATION ANIMATION ===== */
.celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.celebration-content {
    display: flex;
    gap: var(--spacing-md);
    animation: celebration-bounce 3s ease-in-out;
}

.celebration-content span {
    font-size: 3rem;
    animation: celebration-float 3s ease-in-out infinite;
}

.celebration-content span:nth-child(1) { animation-delay: 0s; }
.celebration-content span:nth-child(2) { animation-delay: 0.2s; }
.celebration-content span:nth-child(3) { animation-delay: 0.4s; }
.celebration-content span:nth-child(4) { animation-delay: 0.6s; }

@keyframes celebration-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

@keyframes celebration-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(10deg);
    }
    50% {
        transform: translateY(-10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-15px) rotate(5deg);
    }
}

/* ===== GIFT COUNTER ===== */
.gift-counter {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-accent);
    text-align: center;
    margin: var(--spacing-md) 0;
}

.gift-counter-container {
    background: var(--color-primary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    margin: var(--spacing-lg) 0;
}

/* ===== ENHANCED FORM STYLES ===== */
.form-input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-input:focus.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

/* ===== SPINNER ===== */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-white);
    animation: spin 1s ease-in-out infinite;
    margin-right: var(--spacing-xs);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== ENHANCED NOTIFICATIONS ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-md);
    max-width: 400px;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    border-left: 4px solid var(--color-accent);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left-color: #28a745;
}

.notification.error {
    border-left-color: #dc3545;
}

.notification.warning {
    border-left-color: #ffc107;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-message {
    flex: 1;
    margin-right: var(--spacing-sm);
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--color-text);
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.notification-close:hover {
    opacity: 1;
}

/* ===== GUEST BOOK STYLES ===== */
.guest-book-messages {
    max-height: 400px;
    overflow-y: auto;
    padding: var(--spacing-md);
    background: var(--color-primary);
    border-radius: var(--radius-md);
}

.guest-message {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.guest-message:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.guest-message-content h4 {
    color: var(--color-accent);
    margin-bottom: var(--spacing-xs);
}

.guest-message-content p {
    margin-bottom: var(--spacing-xs);
}

.guest-message-content small {
    color: var(--color-text);
    opacity: 0.6;
}

/* ===== COPY BUTTON STYLES ===== */
.copy-button {
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
}

.copy-button:hover {
    background: var(--color-secondary);
    transform: translateY(-1px);
}

.copy-button.copied {
    background: #28a745;
}

/* ===== FOOTER COMPONENTS ===== */

.footer {
    background: #b2a598;
    color: var(--color-white);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    color: var(--color-overlay);
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: var(--color-subtle);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid var(--color-subtle);
    padding-top: var(--spacing-md);
    text-align: center;
    color: var(--color-subtle);
    font-size: 0.9rem;
}

/* Mobile footer line break and made-with style */
@media (max-width: 767px) {
  .footer-bottom .mobile-break {
    display: block;
  }
  .footer-bottom .footer-made-with {
    display: block;
    margin-top: 0.5em;
    font-size: 1em;
    color: var(--color-accent);
    font-family: var(--font-accent);
    letter-spacing: 0.02em;
  }
}

/* ===== FORM COMPONENTS ===== */

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--color-text);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-subtle);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--color-white);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-error {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: var(--spacing-xs);
}

.form-success {
    color: #28a745;
    font-size: 0.9rem;
    margin-top: var(--spacing-xs);
}

/* ===== GALLERY COMPONENTS ===== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    background: transparent;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: flex-end;
    padding: var(--spacing-md);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: var(--color-white);
    font-weight: 500;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ===== LIGHTBOX ENHANCED ===== */
.lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 30, 30, 0.92);
    pointer-events: auto;
    transition: opacity 0.2s;
}
.lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 98vw;
    max-height: 96vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 0;
}
.lightbox-image {
    max-width: 96vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    margin-bottom: 1.2rem;
    margin-top: 2.5rem;
    background: #fff;
    object-fit: contain;
}
.lightbox-caption {
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 1.2rem;
    font-family: var(--font-body);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.lightbox-close {
    position: absolute;
    top: 18px;
    right: 28px;
    font-size: 2.5rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3;
    transition: color 0.2s;
}
.lightbox-close:hover {
    color: #b3a597;
}
.lightbox-prev, .lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 64px;
    height: 64px;
    background: rgba(30,30,30,0.75);
    border-radius: 50%;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    opacity: 0.95;
    outline: none;
}
.lightbox-prev {
    left: 32px;
}
.lightbox-next {
    right: 32px;
}
.lightbox-prev svg, .lightbox-next svg {
    width: 56px;
    height: 56px;
    stroke: #fff;
    display: block;
}
.lightbox-prev:hover, .lightbox-next:hover, .lightbox-prev:focus, .lightbox-next:focus {
    background: rgba(30,30,30,0.95);
    border-color: #b3a597;
    opacity: 1;
}
@media (max-width: 900px) {
    .lightbox-prev, .lightbox-next {
        width: 48px;
        height: 48px;
    }
    .lightbox-prev svg, .lightbox-next svg {
        width: 36px;
        height: 36px;
    }
    .lightbox-prev {
        left: 8px;
    }
    .lightbox-next {
        right: 8px;
    }
}
@media (max-width: 600px) {
    .lightbox-content {
        padding: 0.5rem 0;
    }
    .lightbox-image {
        max-width: 98vw;
        max-height: 60vh;
        margin-top: 1rem;
    }
    .lightbox-prev, .lightbox-next {
        width: 36px;
        height: 36px;
    }
    .lightbox-prev svg, .lightbox-next svg {
        width: 24px;
        height: 24px;
    }
}

/* ===== COUNTDOWN TIMER ===== */

.countdown {
    background: var(--color-primary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    margin: var(--spacing-lg) 0;
    box-shadow: var(--shadow-sm);
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

@media (max-width: 768px) {
    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.8rem;
    }
}

.countdown-item {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.countdown-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.countdown-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--color-accent);
    display: block;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.countdown-label {
    font-size: 0.9rem;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: var(--spacing-xs);
}

/* ===== MAP COMPONENT ===== */

.map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: var(--spacing-lg) 0;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== ACCORDION COMPONENT ===== */

.accordion {
    margin: var(--spacing-lg) 0;
}

.accordion-item {
    border: 1px solid var(--color-subtle);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
}

.accordion-header {
    background: var(--color-primary);
    padding: var(--spacing-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--transition-fast);
}

.accordion-header:hover {
    background: var(--color-subtle);
}

.accordion-title {
    font-weight: 500;
    margin: 0;
}

.accordion-icon {
    transition: transform var(--transition-fast);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 var(--spacing-md);
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.accordion-item.active .accordion-content {
    padding: var(--spacing-md);
    max-height: 500px;
}

/* ===== TESTIMONIAL COMPONENT ===== */

.testimonial {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    margin: var(--spacing-md) 0;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.testimonial-author {
    font-weight: 500;
    color: var(--color-accent);
}

/* ===== BREADCRUMB NAVIGATION ===== */

.breadcrumb {
    display: flex;
    align-items: center;
    margin: var(--spacing-md) 0;
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-item:hover {
    color: var(--color-accent);
}

.breadcrumb-separator {
    margin: 0 var(--spacing-xs);
    color: var(--color-subtle);
}

.breadcrumb-current {
    color: var(--color-accent);
    font-weight: 500;
}

/* ===== BACK TO TOP BUTTON ===== */

.back-to-top {
    position: fixed;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--color-accent);
    color: var(--color-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== TOOLTIP ===== */

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-text);
    color: var(--color-white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 1000;
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--color-text);
}

.tooltip:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
}

/* ===== GALLERY FILTERS ===== */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.gallery-filter button {
    background: var(--color-white);
    border: 2px solid var(--color-subtle);
    color: var(--color-text);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.gallery-filter button:hover,
.gallery-filter button.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* ===== GALLERY PLACEHOLDER ===== */
.wedding-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border: 2px dashed var(--color-subtle);
    min-height: 250px;
}

.placeholder-content {
    text-align: center;
    color: var(--color-text);
    opacity: 0.6;
}

.placeholder-content svg {
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
}

.placeholder-content h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
}

.placeholder-content p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== FEATURED PHOTO ===== */
.featured-photo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    margin: var(--spacing-lg) 0;
}

.featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.photo-description h3 {
    color: var(--color-accent);
    margin-bottom: var(--spacing-md);
}

.photo-description p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
}

/* ===== SHARING INFO ===== */
.sharing-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.hashtag {
    background: var(--color-accent);
    color: var(--color-white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-weight: bold;
    display: inline-block;
    margin: var(--spacing-xs) 0;
}

.masonry-gallery {
    column-count: 3;
    column-gap: var(--spacing-md);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto var(--spacing-lg) auto;
}

@media (max-width: 900px) {
    .masonry-gallery {
        column-count: 2;
    }
}
@media (max-width: 600px) {
    .masonry-gallery {
        column-count: 1;
    }
}

.masonry-gallery .gallery-item {
    display: inline-block;
    width: 100%;
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--color-accent);
    position: relative;
}

.masonry-gallery .gallery-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    opacity: 1;
}

/* Refined Modern Countdown Section Styles */
section.section.countdown-section {
    padding: 0;
    background: #ffffff;
}

.countdown.countdown-modern {
    width: 100%;
    margin: 0;
    padding: 43px 0 0 0;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
}

.countdown.countdown-modern h2 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    color: var(--color-text);
    font-family: var(--font-heading);
    font-weight: 400;
    margin-bottom: 2.5rem;
}

.countdown.countdown-modern .countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.countdown.countdown-modern .countdown-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: #F5F1E8;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.countdown.countdown-modern .countdown-label {
    font-size: 1rem;
    color: #b3a597;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-body);
    font-weight: 400;
}

.countdown.countdown-modern .countdown-message {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text);
    margin-top: var(--spacing-md);
    opacity: 0.8;
    font-style: italic;
    justify-self: center;
    margin: 0;
    padding: 0 0 3.5rem 0;
}

.countdown.countdown-modern .countdown-grid {
    grid-template-rows: auto auto;
}

@media (max-width: 1100px) {
    .countdown.countdown-modern .countdown-grid {
        gap: 1.2rem;
    }
    .countdown.countdown-modern .countdown-item {
        min-width: 120px;
        min-height: 110px;
        padding: 2.2rem 0 1.8rem 0;
    }
}

@media (max-width: 900px) {
    .countdown.countdown-modern .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    .countdown.countdown-modern .countdown-message {
        grid-row: 3;
        grid-column: 1 / 2;
    }
}

@media (max-width: 600px) {
    .countdown.countdown-modern {
        padding: 24px 0 0 0;
    }
    .countdown.countdown-modern .countdown-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    .countdown.countdown-modern .countdown-item {
        min-width: 0;
        min-height: 80px;
        padding: 1.2rem 0;
    }
    .countdown.countdown-modern .countdown-number {
        font-size: 2rem;
    }
    .countdown.countdown-modern .countdown-message {
        margin-top: 0.8rem;
        font-size: 0.95rem;
    }
}

.masonry-gallery ~ .accent-text, .section .accent-text.photo-gallery-accent {
    font-size: 2.5rem;
}

.accent-text {
    font-family: var(--font-accent);
    font-size: 2.2em;
}

/* ===== VIDEO GALLERY STYLES ===== */

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

.gallery-item:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.play-button svg {
    margin-left: 4px;
}

.gallery-video {
    display: none;
}

.video-info {
    padding: var(--spacing-sm);
    background: var(--color-white);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.video-info h3 {
    margin: 0 0 var(--spacing-xs) 0;
    font-size: 1.1rem;
    color: var(--color-text);
}

.video-info p {
    margin: 0 0 var(--spacing-xs) 0;
    font-size: 0.9rem;
    color: var(--color-text);
    opacity: 0.8;
}

.video-duration {
    font-size: 0.8rem;
    color: var(--color-accent);
    font-weight: 500;
}

/* Enhanced Lightbox for Videos */
.lightbox-media {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-video {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    background: #000;
}

/* Media Gallery Grid */
.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

@media (max-width: 900px) {
    .media-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: var(--spacing-sm);
    }
}

@media (max-width: 600px) {
    .media-gallery {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
}

/* Photo Gallery Modal Styles */
.gallery-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}
.gallery-modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(30, 30, 30, 0.92);
    z-index: 1;
}
.gallery-modal-content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.gallery-modal-image {
    max-width: 80vw;
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    margin-bottom: 1.2rem;
    margin-top: 2.5rem;
    background: #fff;
    object-fit: contain;
}
.gallery-modal-caption {
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 1.2rem;
    font-family: var(--font-body);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.gallery-modal-close {
    position: absolute;
    top: 18px;
    right: 28px;
    font-size: 2.5rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3;
    transition: color 0.2s;
}
.gallery-modal-close:hover {
    color: #b3a597;
}
.gallery-modal-prev, .gallery-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3;
    padding: 0 16px;
    transition: color 0.2s;
    opacity: 0.85;
}
.gallery-modal-prev:hover, .gallery-modal-next:hover {
    color: #b3a597;
    opacity: 1;
}
.gallery-modal-prev {
    left: 10px;
}
.gallery-modal-next {
    right: 10px;
}
@media (max-width: 700px) {
    .gallery-modal-content {
        max-width: 98vw;
        max-height: 98vh;
    }
    .gallery-modal-image {
        max-width: 95vw;
        max-height: 60vh;
    }
    .gallery-modal-close {
        top: 8px;
        right: 12px;
        font-size: 2rem;
    }
    .gallery-modal-prev, .gallery-modal-next {
        font-size: 2rem;
        padding: 0 8px;
    }
}

/* ===== MEDIA FILTER BUTTONS ===== */
.gallery-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-lg) 0 var(--spacing-md) 0;
}

.gallery-filter {
    background: var(--color-white);
    color: var(--color-text);
    border: 2px solid var(--color-accent);
    border-radius: 999px;
    padding: 0.5em 1.5em;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 0;
    text-align: center;
    appearance: none;
}

.gallery-filter.active,
.gallery-filter:focus,
.gallery-filter:hover {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
    box-shadow: 0 4px 16px rgba(179, 165, 151, 0.10);
}

@media (max-width: 600px) {
    .gallery-nav {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-xs);
    }
    .gallery-filter {
        width: 100%;
        font-size: 1rem;
        padding: 0.5em 1em;
    }
}

/* ===== DIRECTIONS PANEL ===== */

.directions-panel {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-xs) var(--spacing-md);
}

.directions-form {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-subtle);
    margin-bottom: var(--spacing-lg);
}

.directions-form .form-group {
    margin-bottom: var(--spacing-md);
}

.directions-form label {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: var(--spacing-xs);
    text-align: center;
}

.directions-form input[type="text"] {
    width: 100%;
    max-width: 400px;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--color-subtle);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: var(--color-primary);
    color: var(--color-text);
    text-align: center;
    margin: 0 auto;
    display: block;
}

.directions-form input[type="text"]:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(179, 165, 151, 0.1);
    background: var(--color-white);
}

.directions-form input[type="text"]::placeholder {
    color: var(--color-text);
    opacity: 0.6;
    font-style: italic;
}

.directions-form .btn {
    background: linear-gradient(135deg, var(--color-accent), #a08f8f);
    color: var(--color-white);
    border: none;
    padding: var(--spacing-sm) var(--spacing-xl);
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-top: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
}

.directions-form .btn:hover {
    background: linear-gradient(135deg, #a08f8f, var(--color-accent));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.route-info {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-subtle);
    margin-top: var(--spacing-lg);
    animation: slideInUp 0.5s ease-out;
}

.route-info h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-accent);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.route-info p {
    margin-bottom: var(--spacing-xs);
    font-size: 1rem;
    color: var(--color-text);
    text-align: center;
}

.route-info p:last-child {
    margin-bottom: 0;
}

.route-info strong {
    color: var(--color-accent);
    font-weight: 600;
}

/* Mobile Responsiveness for Directions */
@media (max-width: 768px) {
    .directions-panel {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .directions-form {
        padding: var(--spacing-md);
    }
    
    .directions-form input[type="text"] {
        max-width: 100%;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .directions-form .btn {
        width: 100%;
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    .route-info {
        padding: var(--spacing-md);
    }
    
    .route-info h4 {
        font-size: 1.2rem;
    }
}

/* ===== GOOGLE PLACES AUTOCOMPLETE STYLING ===== */

.pac-container {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-subtle);
    margin-top: 4px;
    overflow: hidden;
    font-family: var(--font-body);
}

.pac-item {
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--color-subtle);
    cursor: pointer;
    font-size: 1rem;
    color: var(--color-text);
    transition: background-color var(--transition-fast);
}

.pac-item:last-child {
    border-bottom: none;
}

.pac-item:hover,
.pac-item.pac-item-selected {
    background: rgba(179, 165, 151, 0.1);
    color: var(--color-accent);
}

.pac-item-query {
    color: var(--color-accent);
    font-weight: 500;
}

.pac-matched {
    font-weight: 600;
    color: var(--color-accent);
}

.pac-icon {
    display: none; /* Hide default icons for cleaner look */
}

.pac-item-query .pac-matched {
    color: var(--color-accent);
}

/* Ensure autocomplete appears above other elements */
.pac-container {
    z-index: 9999;
}

/* Mobile styling for autocomplete */
@media (max-width: 768px) {
    .pac-container {
        max-width: calc(100vw - 2rem);
        left: 1rem !important;
        right: 1rem !important;
        width: auto !important;
    }
    
    .pac-item {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.9rem;
    }
} 