/* HERO REDESIGN - Viator Style */

/* Base Overlay for text contrast */
.hero-section {
    position: relative;
    padding: 160px 0 100px;
    /* Increased padding */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 720px;
    /* Increased from 600px (+20%) */
    display: flex;
    align-items: center;
}

/* ... */

/* HERO SLIDER REDESIGN */
.hero-section-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    /* Increased from 500px */
}

.hero-slider .owl-stage-outer,
.hero-slider .hero-slide-item {
    min-height: 720px;
    /* Increased from 500px */
    height: 100vh;
    max-height: 850px;
    /* Increased from 700px */
}

/* ... */

/* IPHONE 17 STYLE */
.iphone-17 {
    border-radius: 55px !important;
    border: 8px solid #222 !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3) !important;
    background: #000;
    /* Ensure black frame background */
    width: 100%;
    height: 520px;
    /* Define explicit height */
    position: relative;
    overflow: hidden;
}

.iphone-17 .phone-screen {
    border-radius: 46px !important;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 10;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Dark overlay for text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    /* Bring text above overlay */
    text-align: center !important;
    width: 100%;
    color: #fff;
}

/* Typography */
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content .sub-title {
    font-size: 1.25rem;
    color: #f8f9fa;
    margin-bottom: 2.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Search Pill Container */
.search-pill-container {
    background: #fff;
    border-radius: 50px;
    padding: 8px;
    display: inline-flex;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    width: 100%;
    align-items: center;
}

/* Search Inputs */
.search-pill-container .input-group {
    border: none;
    margin-bottom: 0;
    flex: 1;
    position: relative;
}

.search-pill-container .input-group:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: #e0e0e0;
}

.search-pill-container .form-control,
.search-pill-container .form-select {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 500;
}

.search-pill-container .input-group-text {
    background: transparent;
    border: none;
    padding-left: 20px;
    color: #666;
}

/* Search Button */
.search-pill-container .btn-search {
    border-radius: 50px !important;
    padding: 12px 32px;
    font-weight: 600;
    font-size: 1rem;
    margin-left: 8px;
    background-color: var(--primary, #000);
    /* Fallback to black if var missing */
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}

.search-pill-container .btn-search:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* WHY WANDERPICS Section */
.why-wanderpics {
    padding: 60px 0;
    background: #fff;
}

.feature-box {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon-circle {
    width: 64px;
    height: 64px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
    font-size: 24px;
}

.feature-title {
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.feature-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* CATEGORIES / DESTINATIONS - Rounded Cards */
.viator-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.viator-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.viator-card img {
    width: 100%;
    height: 220px;
    /* Fixed height for consistency */
    object-fit: cover;
}

.viator-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: #fff;
}

.viator-card-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
    color: #fff;
}

/* Media Queries */
@media (max-width: 768px) {
    .search-pill-container {
        flex-direction: column;
        border-radius: 16px;
        padding: 16px;
    }

    .search-pill-container .input-group {
        width: 100%;
        margin-bottom: 12px;
        border-bottom: 1px solid #eee;
    }

    .search-pill-container .input-group:not(:last-child)::after {
        display: none;
    }

    .search-pill-container .btn-search {
        width: 100%;
        margin-left: 0;
    }
}

/* Datepicker Pill Style */
.datetimepicker {
    border: none !important;
    background: transparent !important;
    font-weight: 500;
    color: #333;
    padding: 12px 10px;
    cursor: pointer;
}

.datetimepicker::placeholder {
    color: #666;
    font-weight: 500;
}

/* Ensure Primary Color is used (WanderPics Brand) */
:root {
    --primary: #fd5056;
    /* Default WanderPics Red/Pink if variable fails */
}

.text-linear-primary {
    color: var(--primary);
}

.btn-search {
    background-color: var(--primary) !important;
}

.feature-icon-circle {
    color: var(--primary) !important;
    background: rgba(253, 80, 86, 0.1);
}

/* Bootstrap Floating Datepicker Fix */
.bootstrap-datetimepicker-widget {
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    padding: 10px !important;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background-color: var(--primary) !important;
    border-radius: 50%;
}

.bootstrap-datetimepicker-widget table td.today:before {
    border-bottom-color: var(--primary) !important;
}

/* HERO SLIDER REDESIGN */
.hero-section-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    /* Increased from 500px */
}

.hero-slider .owl-stage-outer,
.hero-slider .hero-slide-item {
    min-height: 720px;
    /* Increased from 500px */
    height: 100vh;
    max-height: 850px;
    /* Increased from 700px */
}

.hero-slide-item {
    background-size: cover;
    background-position: center;
    position: relative;
    width: 100%;
}

.hero-slide-item .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}

.hero-content-overlay {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 5;
    pointer-events: none;
}

.hero-content-overlay .container {
    pointer-events: auto;
}

/* HERO ANIMATIONS */
.hero-animated-overlays {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.floating-item {
    position: absolute;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.25));
    opacity: 0.95;
    transition: all 0.5s ease;
}

.float-polaroid {
    top: 15%;
    left: 8%;
    width: 220px;
    transform: rotate(-6deg);
    animation: floatPolaroid 8s ease-in-out infinite;
}

.float-phone {
    bottom: 12%;
    right: 5%;
    width: 260px;
    transform: rotate(8deg);
    animation: floatPhone 9s ease-in-out infinite;
}

@keyframes floatPolaroid {

    0%,
    100% {
        transform: translateY(0) rotate(-6deg);
    }

    50% {
        transform: translateY(-20px) rotate(-3deg);
    }
}

@keyframes floatPhone {

    0%,
    100% {
        transform: translateY(0) rotate(8deg);
    }

    50% {
        transform: translateY(-25px) rotate(10deg);
    }
}

/* INDEPENDENT POLAROID ANIMATIONS */
.float-polaroid-stack {
    /* Container is now static or relative, items move independently */
    position: absolute;
    left: 5%;
    top: 10%;
    z-index: 20;
    width: 300px;
    height: 400px;
    pointer-events: none;
}

.polaroid-frame {
    background: #fff;
    padding: 12px 12px 35px 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
    width: 240px;
    backface-visibility: hidden;
    position: absolute;
    /* Ensure absolute for offsets */
}

/* ... content ... */

/* Individual Animations & COMPOSITION (Offsets) */
/* HERO REDESIGN - Viator Style */

/* Base Overlay for text contrast */
/* ... skipped unmodified top ... */

/* INDEPENDENT POLAROID ANIMATIONS */
/* ... */

/* Individual Animations & COMPOSITION (Offsets) */
/* HERO REDESIGN - Viator Style */

/* ... skipped unmodified top ... */

/* INDEPENDENT POLAROID ANIMATIONS */
/* ... */

/* Individual Animations & COMPOSITION (Offsets) */
/* AGGRESSIVE SPACING as requested - INCREASED FURTHER */
.p1 {
    left: -140px;
    /* Increased from -100px */
    top: 60px;
    z-index: 3;
    animation: floatP1 12s ease-in-out infinite;
}

.p2 {
    left: 100px;
    /* Increased from 80px */
    top: -80px;
    /* Increased from -60px */
    z-index: 1;
    animation: floatP2 15s ease-in-out infinite;
    animation-delay: 1s;
}

.p3 {
    left: 200px;
    /* Increased from 150px */
    top: 140px;
    /* Increased from 100px */
    z-index: 2;
    animation: floatP3 18s ease-in-out infinite;
    animation-delay: 2s;
}

/* ... animations keyframes ... */

/* IPHONE 17 STYLE - Minimalist (No Chrome except Dynamic Island) */
.iphone-17 {
    /* ... existing structure ... */
    /* Ensure content fits */
}

/* HIDE PHONE CHROME (Status Bar + Instagram Bottom) */
.phone-ui-status-bar,
.phone-ui-gram-bottom {
    display: none !important;
}

/* RESTORE DYNAMIC ISLAND */
.phone-dynamic-island {
    display: block !important;
    position: absolute;
    top: 15px;
    /* Adjusted for better visibility */
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 35px;
    background: #000;
    border-radius: 20px;
    z-index: 20;
}

/* SEARCH PILL REDESIGN - AIRBNB STYLE (High Specificity) */
.search-pill-container {
    padding: 0;
    border-radius: 40px;
    background: #fff;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    position: relative;
    max-width: 850px;
    width: auto;
}

/* Force White Icon on ID */
#submitSearchForm i,
#submitSearchForm .ti-search {
    color: #fff !important;
    font-weight: bold !important;
}

#submitSearchForm {
    background-color: #ff385c !important;
    opacity: 1 !important;
}

/* Individual Fields Hover Effect */
.search-field-group {
    border-radius: 32px;
    transition: background-color 0.2s ease;
    cursor: pointer;
    position: relative;
    min-width: 160px;
    text-align: left;
}

.search-field-group:hover {
    background-color: #ebebeb;
    border-color: transparent !important;
}

/* Dropdown - Force clean style */
#categoryDropdown {
    border: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    font-weight: 700 !important;
    color: #222 !important;
    padding: 0 !important;
    cursor: pointer !important;
    /* appearance: none !important; */
}

/* Datepicker Input */
.search-pill-container .datetimepicker {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    font-weight: 700 !important;
    color: #222 !important;
    padding: 0 !important;
}

/* Location Input */
.search-pill-container input[name="location"] {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    font-weight: 700 !important;
    color: #222 !important;
    padding: 0 !important;
}

/* Dividers */
.search-field-group.border-end::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: #ddd;
    display: block;
}

.search-field-group:hover::after {
    display: none;
}


/* ... animations keyframes ... */


/* POPULAR TAGS LEGIBILITY */
.popular-searches span,
.popular-searches a {
    text-shadow: none !important;
    /* Removed shadow */
    font-weight: 500;
}

.polaroid-frame {
    background: #fff;
    padding: 15px 15px 60px 15px;
    /* Increased bottom padding for caption/message */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    width: 240px;
    /* Slightly wider */
    position: absolute;
    backface-visibility: hidden;
    height: auto;
    display: flex;
    flex-direction: column;
}

.polaroid-img-wrapper {
    width: 100%;
    height: 220px;
    background: #f0f0f0;
    overflow: hidden;
    position: relative;
    border: 1px solid #eee;
    /* Thin border around the image itself */
}

.polaroid-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.polaroid-caption {
    font-family: 'Nothing You Could Do', cursive, sans-serif;
    color: #333;
    text-align: center;
    margin-top: 15px;
    /* Space between image and text */
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    padding: 0 10px;
    z-index: 5;
}

/* Individual Animations */
.p1 {
    animation: floatP1 12s ease-in-out infinite;
}

.p2 {
    animation: floatP2 15s ease-in-out infinite;
    animation-delay: 1s;
}

.p3 {
    animation: floatP3 18s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes floatP1 {

    0%,
    100% {
        transform: translateY(0) rotate(-8deg);
    }

    50% {
        transform: translateY(-15px) rotate(-4deg);
    }
}

@keyframes floatP2 {

    0%,
    100% {
        transform: translateY(0) rotate(6deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

@keyframes floatP3 {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(15px) rotate(-8deg);
    }
}

/* AIRBNB STYLE PROVIDER CARDS */
.airbnb-provider-card {
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
    cursor: pointer;
    border-radius: 12px;
}

.airbnb-provider-card:hover {
    transform: translateY(-2px);
}

.card-img-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
}

.card-img-wrapper img {
    transition: transform 0.4s ease;
}

.airbnb-provider-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.favorite-icon {
    z-index: 2;
    transition: transform 0.2s;
}

.favorite-icon:hover {
    transform: scale(1.15);
}

/* --- MISSING ANIMATION CSS & NEW FIXES --- */

/* HERO FRAMES (CSS BASED) */
.polaroid-frame {
    background: #fff;
    padding: 12px 12px 35px 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
    width: 240px;
    backface-visibility: hidden;
}

.polaroid-frame img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f0f0f0;
}

.polaroid-caption {
    font-family: 'Nothing You Could Do', cursive, sans-serif;
    color: #333;
    text-align: center;
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* IPHONE 17 STYLE */
.iphone-17 {
    border-radius: 55px !important;
    border: 8px solid #222 !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3) !important;
    background: #000;
    /* Ensure black frame background */
    width: 260px;
    /* Explicit width matching container */
    height: 520px;
    /* Define explicit height */
    position: relative;
    overflow: hidden;
}

.iphone-17 .phone-screen {
    border-radius: 46px !important;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 10;
}

.phone-dynamic-island {
    position: absolute;
    top: 11px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 35px;
    background: #000;
    border-radius: 20px;
    z-index: 20;
    transition: all 0.3s ease;
}

.phone-ui-status-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 25px 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    z-index: 15;
}

/* INSTAGRAM BOTTOM UI ONLY */
.phone-ui-gram-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    padding: 15px 20px 25px 20px;
    border-bottom-left-radius: 46px;
    border-bottom-right-radius: 46px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

.gram-actions-bar {
    display: flex;
    align-items: center;
    font-size: 22px;
    color: #222;
    margin-bottom: 12px;
}

.gram-actions-bar i {
    margin-right: 18px;
    cursor: pointer;
    transition: transform 0.2s;
}

.gram-actions-bar i:hover {
    transform: scale(1.1);
}

.gram-actions-bar .spacer {
    flex-grow: 1;
}

.gram-actions-bar .fa-bookmark {
    margin-right: 0;
}

.gram-stats-compact {
    font-size: 13px;
    line-height: 1.4;
    color: #222;
}

.gram-caption {
    display: block;
    margin-top: 4px;
}

/* SEARCH PILL FIXES */
.search-pill-container i {
    font-size: 1.6rem !important;
    /* Larger icons */
    color: #ff385c !important;
    /* Airbnb Pink */
    vertical-align: middle;
}

.search-pill-container .input-group-text {
    padding-left: 20px;
}

.search-pill-container .btn-search {
    background-color: #ff385c !important;
    /* Airbnb Pink */
    font-size: 1.1rem;
    padding: 14px 40px;
    border: none;
    transition: background-color 0.3s ease;
}

.search-pill-container .btn-search:hover {
    background-color: #d90b3e !important;
    /* Darker Pink hover */
}

/* POPULAR TAGS LEGIBILITY */
.popular-searches span,
.popular-searches a {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

.popular-searches .badge {
    background-color: rgba(255, 255, 255, 0.95) !important;
    color: #333 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: none !important;
}

/* MODERN DATEPICKER (AIRBNB STYLE) */
.bootstrap-datetimepicker-widget {
    background: #fff;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    border: none !important;
    padding: 24px !important;
    width: 360px !important;
    /* Wider */
    font-family: inherit;
    display: block;
    /* Ensure visibility when active */
}

.bootstrap-datetimepicker-widget table {
    width: 100%;
}

.bootstrap-datetimepicker-widget table thead tr:first-child th {
    font-size: 1.2rem;
    font-weight: 800;
    padding-bottom: 20px;
    color: #222;
}

.bootstrap-datetimepicker-widget table thead tr:first-child th:hover {
    background: none;
}

.bootstrap-datetimepicker-widget table td.day {
    height: 44px;
    line-height: 44px;
    width: 44px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 1rem;
    color: #222;
}

.bootstrap-datetimepicker-widget table td.day:hover {
    background: #f7f7f7;
    border: 1px solid #222;
    color: #222;
}

.bootstrap-datetimepicker-widget table td.today:before {
    display: none;
}

.bootstrap-datetimepicker-widget table td.today {
    color: #ff385c;
    font-weight: 800;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background-color: #ff385c !important;
    color: #fff !important;
    box-shadow: none;
}

.bootstrap-datetimepicker-widget .datepicker-days .dow {
    color: #717171;
    font-weight: 600;
    padding-bottom: 10px;
    font-size: 0.9rem;
}

.timepicker-picker,
.picker-switch {
    display: none !important;
}
/* Wpic Global Section Titles (Phase 17) */
.wpic-section-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #222 !important;
    margin-bottom: 0.25rem !important; /* aligns with mb-1 */
}
