/* ============================================
   CLICKAWEDDING CUSTOM STYLES
   Professional unified CSS for the entire application
   Uses Bootstrap 4 as base, custom styles for brand/specific needs only
   ============================================ */

/* ============================================
   FONTS
   ============================================ */
@font-face {
    font-family: "Cinzel Decorative";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/cinzeldecorative/v16/daaCSScvJGqLYhG8nNt8KPPswUAPni7TTMw.woff2)
        format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================
   BRAND COLORS & VARIABLES
   ============================================ */
:root {
    --brand-primary: #e91e63;
    --brand-primary-dark: #d81b60;
    --brand-primary-light: #f50057;
    --brand-primary-hover: rgba(233, 30, 99, 0.1);
    --brand-shadow: rgba(233, 30, 99, 0.25);
}

/* ============================================
   CUSTOM BUTTONS (extending Bootstrap)
   ============================================ */

/* Global button border radius - smooth rounded edges for all buttons */
.btn,
button,
input[type="submit"],
input[type="button"],
a.btn {
    border-radius: 12px !important;
}

/* Primary gradient button - extends Bootstrap .btn */
.btn-brand-primary {
    background: linear-gradient(
        135deg,
        var(--brand-primary) 0%,
        var(--brand-primary-dark) 100%
    );
    border: none;
    color: white;
    box-shadow: 0 2px 8px var(--brand-shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px !important;
}

.btn-brand-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-brand-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.35);
    background: linear-gradient(
        135deg,
        var(--brand-primary-light) 0%,
        var(--brand-primary) 100%
    );
    color: white;
}

.btn-brand-primary:hover::before {
    left: 100%;
}

.btn-brand-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px var(--brand-shadow);
}

/* Filter button height - matches form control height */
.btn-filter-height {
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px !important;
}

/* ============================================
   ICON UTILITIES
   ============================================ */

/* Has icon focus - container for inputs with icon */
.has-icon-focus {
    position: relative;
    display: block;
}

/* Animated icon positioned absolutely within parent */
.icon-absolute {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    z-index: 10;
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

/* Focus state for icon */
.has-icon-focus:focus-within .icon-absolute {
    color: var(--brand-primary);
    transform: translateY(-50%) scale(1.05);
}

/* ============================================
   FILTER COMPONENTS
   ============================================ */

/* Active filters container */
.active-filters-container {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
}

/* Active filters label */
.active-filters-label {
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

/* Filter count badge */
.filter-count-badge {
    background: linear-gradient(
        135deg,
        var(--brand-primary) 0%,
        var(--brand-primary-dark) 100%
    );
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 8px;
    display: inline-block;
    min-width: 20px;
    text-align: center;
    animation: badgePulse 0.3s ease-out;
}

/* Clear all filters button */
.clear-all-filters {
    background: white;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    padding: 8px 16px;
    border-radius: 12px !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.clear-all-filters:hover {
    background: var(--brand-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(233, 30, 99, 0.25);
}

/* Filter chip badges */
.filter-chip {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(
        135deg,
        var(--brand-primary) 0%,
        var(--brand-primary-dark) 100%
    );
    color: white;
    padding: 10px 16px;
    border-radius: 24px;
    margin: 4px 6px 4px 0;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(233, 30, 99, 0.3);
    animation: chipFadeIn 0.3s ease-out;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.35);
}

.filter-chip-remove {
    margin-left: 10px;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 700;
    padding: 0;
    line-height: 1;
}

.filter-chip-remove:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg) scale(1.1);
}

.filter-chip-label {
    font-size: 11px;
    opacity: 0.85;
    margin-right: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

/* Filter loading state */
.filter-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

/* ============================================
   INPUT UTILITIES (extending Bootstrap)
   ============================================ */

/* Input with icon - add padding for icon space */
.input-with-icon {
    padding-left: 45px;
}

/* Enhanced form control with brand focus */
.form-control-brand {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 48px;
    font-size: 15px;
}

.form-control-brand:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1),
        0 2px 8px rgba(233, 30, 99, 0.12);
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
    }
}

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

@keyframes badgePulse {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

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

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Remove tap highlight on mobile */
.no-tap-highlight {
    -webkit-tap-highlight-color: transparent;
}

/* Smooth hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

/* Loading spinner overlay */
.loading-overlay {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading-overlay::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid var(--brand-primary);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

/* ============================================
   MOBILE RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 768px) {
    .filter-chip {
        font-size: 13px;
        padding: 8px 14px;
        margin: 3px 4px 3px 0;
    }

    .filter-chip-label {
        font-size: 10px;
        margin-right: 5px;
    }

    .filter-chip-remove {
        width: 20px;
        height: 20px;
        font-size: 12px;
        margin-left: 8px;
    }
}

/* ============================================
   ENQUIRY MODAL CUSTOM STYLES
   ============================================ */

/* Modal enhancements */
.enquiry-modal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.enquiry-modal .modal-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 0;
}

/* Phone input with prefix */
.phone-input-wrapper {
    position: relative;
}

.phone-input-prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-weight: 500;
    z-index: 10;
    pointer-events: none;
}

.phone-input-wrapper .form-control {
    padding-left: 45px;
}

/* Gradient button for modals */
.btn-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    border-radius: 12px !important;
}

.btn-gradient-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
    color: white;
}

.btn-gradient-primary:active {
    transform: translateY(0);
}

/* Form control modern styling */
.form-control-modern {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.form-control-modern:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

/* OTP specific styles */
.otp-input {
    letter-spacing: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 20px;
}

.btn-resend-otp {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.btn-resend-otp:hover {
    color: #764ba2;
}

/* Success icon */
.success-icon {
    font-size: 64px;
    color: #28a745;
}

/* ============================================
   GLOBAL LAYOUT STYLES (from app.blade.php)
   ============================================ */

/* Yellow/Orange color utility */
.yellow {
    color: orange !important;
}

/* Card Rounded Corners - Reusable Class */
.app-card-rounded,
.app-card-rounded.card,
div.app-card-rounded {
    border-radius: 12px !important;
    overflow: hidden !important;
}

.app-card-rounded-top,
a.app-card-rounded-top {
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
}

.app-card-rounded-sm,
span.app-card-rounded-sm {
    border-radius: 4px !important;
}

/* Horizontal card specific rounding */
@media (min-width: 768px) {
    .app-card-rounded-left-desktop {
        border-top-left-radius: 12px !important;
        border-bottom-left-radius: 12px !important;
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        overflow: hidden;
    }
}

@media (max-width: 767px) {
    .app-card-rounded-top-mobile {
        border-top-left-radius: 12px !important;
        border-top-right-radius: 12px !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        overflow: hidden;
    }
}

/* Loading button frame */
.frame-ilxsly {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    min-width: 64px;
    height: 64px;
    min-height: 64px;
    padding: 0px;
    cursor: pointer;
    background-color: rgb(230 31 109 / 86%);
    border: 0px;
    border-radius: 50%;
    color: #fff;
}

#Dvloading {
    float: right;
    position: fixed;
    bottom: 2%;
    right: 0px;
}

/* Modal styles */
.modal-body {
    padding: 5px 15px;
}

#cldGlryModal .modal-body {
    padding: 0px 0px !important;
}

/* Listing item constraints */
.listing-item.listing {
    min-height: 302px;
    max-height: 302px;
}

/* Success modal */
#succModal .modal-header {
    background: #e61f6d;
    color: #fff;
}

#succModal .modal-title {
    font-weight: 900;
    text-transform: uppercase;
}

/* Site logo */
.site-logo img {
    max-height: 60px;
    margin-top: -8px;
}

.site-logo {
    font-size: 28px;
    display: inline-flex;
    color: #e40c80 !important;
}

.site-navbar .site-logo {
    position: relative;
    left: 0;
    top: 0px;
    margin-top: 15px;
    text-transform: lowercase;
}

.site_logo_img {
    vertical-align: middle;
    border-style: none;
    width: 48px;
    position: absolute;
    z-index: 999999;
    top: -8px;
    object-fit: contain;
    margin: 0 auto;
    left: 91px;
}

@media screen and (max-width: 767px) {
    .site-navbar > .row > div {
        text-align: center;
    }

    .site_logo_img {
        position: static;
        display: block;
    }

    .site-navbar .site-logo {
        font-size: 20px;
        margin: 0;
    }
}

/* ============================================
   HOMEPAGE SPECIFIC STYLES
   (Only styles that extend Bootstrap functionality)
   ============================================ */

/* Rating stars - custom for application */
.rating-stars-manual {
    font-size: 0.85rem;
}

.rating-stars-manual i {
    color: #777 !important;
}

.rating-stars-manual i.yellow {
    color: #ff9800 !important;
}

.rating-stars-manual .votes-count {
    color: #555 !important;
    font-weight: 600;
}

/* Tilt effect 3D transforms - custom for vanilla-tilt library */
[data-tilt] {
    transform-style: preserve-3d;
}

/* Blog card images - fixed height for consistent layout */
.card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

/* ============================================
   RECENT LISTINGS CARD STYLES
   (Horizontal card layout - extends Bootstrap cards)
   ============================================ */

.recent-listing-card {
    display: flex;
    flex-direction: column;
}

.recent-listing-card .card-body {
    padding: 1rem !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.recent-listing-img {
    width: 100%;
    height: 180px;
    flex-shrink: 0;
    display: block;
    object-fit: cover;
}

@media (min-width: 768px) {
    .recent-listing-card {
        flex-direction: row;
    }

    .recent-listing-img {
        width: 240px;
        height: auto;
        min-height: 100%;
        object-fit: cover;
    }

    .recent-listing-card .card-body {
        flex: 1;
        justify-content: space-between;
        min-height: 160px;
    }

    /* Left rounded corners for horizontal card image on desktop */
    .app-card-rounded .recent-listing-img {
        border-radius: 12px 0 0 12px !important;
    }

    .recent-listing-card .card-body {
        padding: 1.25rem !important;
    }
}

@media (min-width: 1200px) {
    .recent-listing-img {
        width: 260px;
    }
}
