/* Oikavia marketplace styles */

:root {
    --oik-gold: #c9a962;
    --oik-gold-dark: #a8893f;
    --oik-navy: #1a3a4a;
    --oik-navy-btn: #1e3347;
    --oik-header-mobile: 72px;
    --oik-bottom-nav-h: 62px;
}

.oik-hero {
    position: relative;
    background: linear-gradient(135deg, var(--oik-navy) 0%, #2d6a7a 50%, #3d8b99 100%);
    color: #fff;
    padding: 50px 0 60px;
    margin-top: 0;
    overflow: hidden;
}

.oik-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/oik-hero-bg.jpg") center center / cover no-repeat;
    z-index: 0;
}

.oik-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 35, 50, 0.55) 0%, rgba(15, 35, 50, 0.72) 100%);
    z-index: 1;
}

.oik-hero > .container {
    position: relative;
    z-index: 2;
}

.oik-hero-title {
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.15;
}

.oik-hero-divider {
    width: 72px;
    height: 3px;
    margin: 0 auto 18px;
    background: var(--oik-gold);
    border-radius: 2px;
}

.oik-hero-lead,
.oik-hero .lead {
    font-size: 1.25em;
    opacity: 0.95;
    margin-bottom: 30px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    word-spacing: normal;
    color: rgba(255, 255, 255, 0.95);
}

.oik-search-box {
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.oik-search-box #search-home-wrapper {
    position: static;
    background: none;
    padding: 0;
}

.oik-search-box #search-home {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0;
}

/* Desktop booking search — airy horizontal layout */
@media (min-width: 768px) {
    .oik-booking-search {
        padding: 0;
    }

    .oik-booking-search .oik-search-fields {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        gap: 14px;
        margin: 0 !important;
    }

    .oik-booking-search .oik-search-field {
        float: none !important;
        width: auto !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .oik-booking-search .oik-search-field-place { flex: 1.5 1 160px; }
    .oik-booking-search .oik-search-field-type { flex: 1.2 1 140px; }
    .oik-booking-search .oik-search-field-checkin,
    .oik-booking-search .oik-search-field-checkout { flex: 1 1 130px; }
    .oik-booking-search .oik-search-field-adults,
    .oik-booking-search .oik-search-field-children { flex: 0.7 1 90px; }
    .oik-booking-search .oik-search-field-submit { flex: 1.2 1 160px; }

    .oik-booking-search .form-group {
        margin-bottom: 0 !important;
        padding: 0 !important;
    }

    .oik-booking-search .oik-field-group {
        display: flex;
        align-items: stretch;
        width: 100%;
        border: 1px solid #e2e8ec;
        border-radius: 10px;
        overflow: hidden;
        background: #fff;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .oik-booking-search .oik-field-group:focus-within {
        border-color: var(--oik-gold);
        box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.18);
    }

    .oik-booking-search .input-group-addon {
        display: flex;
        align-items: center;
        gap: 7px;
        flex-shrink: 0;
        border: none !important;
        background: #f7f9fa !important;
        color: #5c6770;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        padding: 0 12px;
        min-width: 0;
        white-space: nowrap;
        border-radius: 0;
    }

    .oik-booking-search .input-group-addon i {
        color: var(--oik-gold-dark);
        font-size: 14px;
        width: 16px;
        text-align: center;
    }

    .oik-booking-search .oik-field-label {
        display: none;
    }

    .oik-booking-search .form-control,
    .oik-booking-search .bootstrap-select > .dropdown-toggle {
        flex: 1 1 auto;
        width: 1% !important;
        height: 50px !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 14px;
        font-size: 14px;
        background: #fff !important;
        color: #333 !important;
    }

    .oik-booking-search .bootstrap-select {
        flex: 1 1 auto;
        width: 1% !important;
    }

    .oik-booking-search .oik-check-btn {
        height: 50px;
        line-height: 1.4;
        padding: 0 18px;
        border-radius: 10px !important;
        font-size: 12px;
        box-shadow: 0 4px 14px rgba(30, 51, 71, 0.25);
        transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    }

    .oik-booking-search .oik-check-btn:hover {
        box-shadow: 0 6px 20px rgba(30, 51, 71, 0.32);
        transform: translateY(-1px);
    }

    .oik-booking-search .oik-check-btn i {
        margin-right: 6px;
        color: var(--oik-gold);
    }
}

.oik-section {
    padding: 50px 0;
}
.oik-section.section-title,
.section-title {
    font-weight: 700;
    margin-bottom: 25px;
}
.oik-types {
    background: #f8f9fa;
    overflow: hidden;
}

.oik-type-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: -10px;
    margin-right: -10px;
}

.oik-types .oik-type-grid > [class*="col-"] {
    float: none;
    padding-left: 10px;
    padding-right: 10px;
}

.oik-type-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    padding: 20px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    color: #333;
    text-decoration: none !important;
}
.oik-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    color: #2d6a7a;
}
.oik-type-icon {
    display: block;
    font-size: 2em;
    color: #2d6a7a;
    margin-bottom: 8px;
}
.oik-type-name {
    font-size: 0.9em;
    font-weight: 600;
}

.oik-property-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    color: #333;
    text-decoration: none !important;
    height: 100%;
}
.oik-property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
    color: #333;
}
.oik-property-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #e9ecef;
}
.oik-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.oik-property-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255,255,255,0.95);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    color: #2d6a7a;
}
.oik-property-body {
    padding: 15px;
}
.oik-property-body h3 {
    font-size: 1.15em;
    margin: 0 0 8px;
    font-weight: 700;
}
.oik-location {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}
.oik-price {
    margin: 10px 0 0;
    font-size: 1.05em;
}
.oik-price strong {
    color: #2d6a7a;
}

.oik-host-cta {
    background: linear-gradient(135deg, #eef6f8 0%, #d4ecef 100%);
}

.oik-plan-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    position: relative;
    height: 100%;
}
.oik-plan-featured {
    border-color: #2d6a7a;
    box-shadow: 0 4px 20px rgba(45,106,122,0.2);
}
.oik-plan-label {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #2d6a7a;
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}
.oik-plan-card h3 {
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a3a4a;
}
.oik-plan-price {
    font-size: 2em;
    margin-bottom: 5px;
    color: #2d6a7a;
}
.oik-plan-price strong {
    font-weight: 800;
}
.oik-plan-yearly {
    font-size: 0.95em;
    margin-bottom: 15px;
}
.oik-plan-card ul {
    text-align: left;
    margin-bottom: 25px;
    min-height: 140px;
}
.oik-plan-card ul li {
    padding: 6px 0;
    font-size: 0.95em;
}

.facility-icon-fa {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: #f0f4f5;
    border-radius: 50%;
    margin: 3px;
    font-size: 16px;
    color: #2d6a7a;
}

@media (min-width: 768px) and (max-width: 991px) {
    .oik-types .oik-type-grid > [class*="col-"] {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (min-width: 992px) {
    .oik-types .oik-type-grid > [class*="col-"] {
        flex: 0 0 16.666%;
        max-width: 16.666%;
    }
}

.oik-check-btn {
    background: var(--oik-navy-btn) !important;
    border-color: var(--oik-navy-btn) !important;
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 0.06em;
    border-radius: 6px !important;
    text-transform: uppercase;
}

.oik-check-btn:hover,
.oik-check-btn:focus {
    background: var(--oik-navy) !important;
    border-color: var(--oik-navy) !important;
    color: #fff !important;
}

@media (max-width: 767px) {
    .oik-hero {
        padding: 24px 0 36px;
        min-height: calc(100vh - var(--oik-bottom-nav-h));
        min-height: calc(100dvh - var(--oik-bottom-nav-h));
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .oik-hero > .container {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-left: 16px;
        padding-right: 16px;
    }

    .oik-hero-title {
        font-size: 1.45em;
        line-height: 1.25;
        margin-bottom: 10px;
    }

    .oik-hero-divider {
        width: 56px;
        height: 2px;
        margin-bottom: 14px;
    }

    .oik-hero-lead,
    .oik-hero .lead {
        font-size: 0.95em;
        line-height: 1.45;
        margin-bottom: 22px;
        padding: 0 4px;
    }

    .oik-search-box {
        margin: 0;
        padding: 20px 18px;
        border-radius: 16px;
        box-shadow: 0 12px 44px rgba(0, 0, 0, 0.24);
    }

    .oik-booking-search {
        padding: 0;
    }

    .oik-booking-search .oik-search-fields {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin: 0 !important;
    }

    .oik-booking-search .oik-search-field {
        width: 100% !important;
        float: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 0 !important;
    }

    .oik-booking-search .oik-search-field-adults,
    .oik-booking-search .oik-search-field-children {
        width: calc(50% - 6px) !important;
        flex: 0 0 calc(50% - 6px);
    }

    .oik-booking-search .oik-search-fields {
        flex-wrap: wrap;
        flex-direction: row;
    }

    .oik-booking-search .oik-search-field-place,
    .oik-booking-search .oik-search-field-type,
    .oik-booking-search .oik-search-field-checkin,
    .oik-booking-search .oik-search-field-checkout,
    .oik-booking-search .oik-search-field-submit {
        flex: 0 0 100%;
        width: 100% !important;
    }

    .oik-booking-search .form-group {
        margin-bottom: 0 !important;
        padding: 0 !important;
    }

    .oik-booking-search .oik-field-group {
        display: block !important;
        width: 100%;
        border: 1px solid #e5e8eb;
        border-radius: 12px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .oik-booking-search .oik-field-group:focus-within {
        border-color: var(--oik-gold);
        box-shadow: 0 2px 12px rgba(201, 169, 98, 0.15);
    }

    .oik-booking-search .input-group-addon {
        display: flex !important;
        align-items: center;
        gap: 8px;
        width: 100%;
        border: none !important;
        border-bottom: 1px solid #eef1f3;
        background: #fafbfc !important;
        color: #5c6770;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        padding: 11px 16px;
        min-width: 0;
        white-space: nowrap;
        border-radius: 0;
    }

    .oik-booking-search .input-group-addon i {
        color: var(--oik-gold-dark);
        font-size: 14px;
        width: 16px;
        text-align: center;
        flex-shrink: 0;
    }

    .oik-booking-search .oik-field-label {
        flex: 1;
        min-width: 0;
    }

    .oik-booking-search .form-control,
    .oik-booking-search .bootstrap-select > .dropdown-toggle {
        width: 100% !important;
        height: 48px !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 12px 16px;
        font-size: 15px;
        background: #fff !important;
        color: #333 !important;
    }

    .oik-booking-search .bootstrap-select {
        width: 100% !important;
    }

    .oik-booking-search .oik-check-btn {
        height: 54px;
        margin-top: 2px;
        font-size: 13px;
        border-radius: 12px !important;
        box-shadow: 0 6px 20px rgba(30, 51, 71, 0.28);
        letter-spacing: 0.08em;
    }

    .oik-booking-search .oik-check-btn i {
        margin-right: 8px;
        color: var(--oik-gold);
    }

    .oik-booking-search .btn-block { width: 100%; }

    /* Property types — 2-column wrap grid, no horizontal scroll */
    .oik-types .oik-type-grid {
        margin-left: -6px;
        margin-right: -6px;
    }

    .oik-types .oik-type-grid > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
        min-width: 0;
        padding-left: 6px;
        padding-right: 6px;
        margin-bottom: 12px;
    }

    .oik-type-card {
        padding: 18px 8px;
        border-radius: 12px;
    }

    .oik-type-icon {
        font-size: 1.75em;
    }

    .oik-type-name {
        font-size: 0.82em;
        line-height: 1.3;
    }
}

@media (max-width: 767px) {
    .oik-hero h1 { font-size: 1.45em; line-height: 1.25; }
    .oik-hero .lead { font-size: 0.95em; }
    .oik-search-box { margin: 0; }
    .oik-search-box .booking-search .btn-block { width: 100%; }
}

/* I feel lucky surprise section */
.oik-lucky-section {
    background: linear-gradient(135deg, #fff8e7 0%, #ffe8cc 100%);
    border-top: 1px solid #f0d9b5;
    border-bottom: 1px solid #f0d9b5;
}
.oik-lucky-intro {
    max-width: 640px;
    margin: 0 auto 20px;
}
.oik-lucky-btn {
    font-size: 1.1em;
    padding: 12px 28px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.35);
}
.oik-lucky-btn:hover {
    transform: scale(1.03);
}
.oik-lucky-results {
    margin-top: 30px;
    min-height: 20px;
}
.oik-lucky-loading {
    padding: 30px;
    color: #888;
}
.oik-lucky-destination {
    font-size: 1.3em;
    font-weight: 700;
    color: #e67e22;
    margin-bottom: 20px;
}
.oik-lucky-headline h3 {
    color: #e67e22;
    font-weight: 700;
    margin-bottom: 10px;
}
.oik-lucky-intro-text {
    margin-bottom: 25px;
}
.oik-lucky-intro-text .lead {
    font-size: 1.1em;
    color: #555;
}
.oik-lucky-empty {
    padding: 20px;
    color: #666;
}

/* Mobile bottom navigation */
.oik-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    height: var(--oik-bottom-nav-h);
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #e8eaed;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.oik-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #8a939b;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none !important;
    padding: 2px 4px;
    min-width: 0;
}

.oik-bottom-nav-item i {
    font-size: 18px;
    line-height: 1;
}

.oik-bottom-nav-item.active,
.oik-bottom-nav-item:hover,
.oik-bottom-nav-item:focus {
    color: var(--oik-gold-dark);
}

@media (max-width: 991px) {
    body {
        padding-bottom: calc(var(--oik-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
    }

    body#page-1 {
        padding-bottom: calc(var(--oik-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
    }

    #toTop {
        bottom: calc(var(--oik-bottom-nav-h) + 12px);
    }

    #booking-cart {
        bottom: calc(var(--oik-bottom-nav-h) + 8px);
    }
}
