/* LUME BOOKING - FLATPICKR VERZIJA - SOFIA SANS FONT */

* {
    font-family: 'Sofia Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
}

.lclb-wrapper {
    max-width: 1000px;
    margin: 0px auto;
    background: #ffffff00;
    padding: 0px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* PRVI RED */
.lclb-row-1 {
    display: grid;
    grid-template-columns: 1.75fr 1fr 1.25fr;
    gap: 0px;
    margin-bottom: 0;
}

/* INPUT WRAPPER S IKONOM */
.lclb-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.lclb-icon {
    position: absolute;
    left: 16px;
    z-index: 1;
    pointer-events: none;
}

.lclb-input-wrapper input[type="text"] {
    width: 100%;
    padding: 24px 16px 24px 48px;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
}

.lclb-input-wrapper input[type="text"]:hover {
    border-color: #879b45;
}

.lclb-input-wrapper input[type="text"]:focus {
    outline: none;
    border-color: #879b45;
    box-shadow: 0 0 0 3px rgba(135, 155, 69, 0.1);
}

/* GUESTS WRAPPER */
.lclb-guests-field {
    position: relative;
}

.lclb-guests-popup {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 8px;
    background: white;
    border: 2px solid #879b45;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 280px;
}

.lclb-guests-popup.active {
    display: block;
}

.lclb-guest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.lclb-guest-row:last-child {
    border-bottom: none;
}

.lclb-guest-row span {
    font-size: 15px;
    font-weight: 500;
    color: #374151;
}

.lclb-counter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lclb-counter-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #879b45;
    background: white;
    color: #879b45;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lclb-counter-btn:hover {
    background: #879b45;
    color: white;
}

.lclb-counter-value {
    min-width: 30px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

/* ZELENA STRELICA */
.lclb-arrow-btn {
    width: 100%;
    height: auto;
    padding: 24px 16px;
    background: linear-gradient(135deg, #879b45 0%, #6b7a37 100%);
    color: white;
    border: none;
    border-radius: 0 6px 0 0;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(135, 155, 69, 0.3);
    display: block;
    line-height: 1;
}

.lclb-arrow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(135, 155, 69, 0.4);
}

.lclb-arrow-btn.hidden {
    display: none;
}

/* PRIKAZ CIJENE umjesto strelice */
.lclb-price-display {
    width: 100%;
    height: auto;
    padding: 22px 16px;
    background: linear-gradient(135deg, #879b45 0%, #6b7a37 100%);
    color: white;
    border-radius: 0 6px 0 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(135, 155, 69, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1;
}

.lclb-price-nights {
    font-size: 16px;
    font-weight: 600;
}

.lclb-price-total {
    font-size: 24px;
    font-weight: 700;
}

/* Zaobljeni rubovi - samo vanjski bridovi */
.lclb-date-field .lclb-input-wrapper input[type="text"] {
    border-radius: 6px 0 0 0;
}

.lclb-guests-field .lclb-input-wrapper input[type="text"] {
    border-radius: 0;
}

/* DRUGI RED */
.lclb-row-2 {
    display: none;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0px;
    margin-top: 0px;
    opacity: 0;
    transform: translateY(-20px);
}

.lclb-row-2.visible {
    display: grid;
    animation: slideDown 0.5s ease forwards;
}

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

/* POLJA */
.lclb-field input,
.lclb-row-message textarea {
    width: 100%;
    padding: 24px 16px 24px 48px;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

/* Textarea wrapper */
.lclb-textarea-wrapper {
    position: relative;
}

.lclb-icon-textarea {
    position: absolute;
    left: 16px;
    top: 16px;
    z-index: 1;
    pointer-events: none;
}

.lclb-field input:hover,
.lclb-row-message textarea:hover {
    border-color: #879b45;
}

.lclb-field input:focus,
.lclb-row-message textarea:focus {
    outline: none;
    border-color: #879b45;
    box-shadow: 0 0 0 3px rgba(135, 155, 69, 0.1);
}

/* PORUKA */
.lclb-row-message {
    display: none;
    margin-top: 0px;
    opacity: 0;
    transform: translateY(-10px);
}

.lclb-row-message.visible {
    display: block;
    animation: slideDown 0.4s ease forwards;
}

.lclb-row-message textarea {
    min-height: 100px;
    resize: vertical;
}

/* GUMB REZERVIRAJ */
.lclb-row-submit {
    display: none;
    margin-top: 0px;
    opacity: 0;
    transform: translateY(-10px);
}

.lclb-row-submit.visible {
    display: block;
    animation: slideDown 0.4s ease forwards;
}

.lclb-row-submit button {
    width: 100%;
    padding: 24px 40px;
    background: linear-gradient(135deg, #879b45 0%, #6b7a37 100%);
    color: white;
    border: none;
    border-radius: 0 0 6px 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lclb-row-submit button:hover {
    transform: translateY(-2px);
}

.lclb-row-submit button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* SUCCESS MESSAGE */
#lclb-response {
    margin-top: 20px;
    padding: 40px;
    background: linear-gradient(135deg, #879b45 0%, #6b7a37 100%);
    color: white;
    border-radius: 6px;
    text-align: center;
    display: none;
    opacity: 0;
}

#lclb-response.visible {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

#lclb-response.hiding {
    animation: fadeOut 0.5s ease forwards;
}

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

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

/* FLATPICKR CUSTOM STYLING */
.flatpickr-calendar {
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
    border: 2px solid #879b45 !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #879b45 !important;
    border-color: #879b45 !important;
}

.flatpickr-day.inRange {
    background: #f0f4e8 !important;
    border-color: #f0f4e8 !important;
    box-shadow: none !important;
}

.flatpickr-day:hover:not(.disabled) {
    background: #d1e0b3 !important;
    border-color: #879b45 !important;
}

.flatpickr-day.disabled,
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.disabled:hover,
.flatpickr-calendar .flatpickr-day.flatpickr-disabled {
    color: #dc2626 !important;
    background: #fee2e2 !important;
    cursor: not-allowed !important;
    border-color: #fecaca !important;
    opacity: 1 !important;
}

/* MOBILE */
@media (max-width: 768px) {
    .lclb-row-1,
    .lclb-row-2 {
        grid-template-columns: 1fr;
    }
    
    .lclb-wrapper {
        padding: 20px;
        margin: 20px auto;
    }

/* MOBILE */
@media (max-width: 768px) {
    .lclb-row-1,
    .lclb-row-2 {
        grid-template-columns: 1fr;
    }
    
    .lclb-wrapper {
        padding: 20px;
        margin: 20px auto;
    }
    
    /* Mobile - zaobljeni rubovi */
    .lclb-date-field .lclb-input-wrapper input[type="text"] {
        border-radius: 6px 6px 0 0 !important; /* Samo gore */
    }
    
    .lclb-guests-field .lclb-input-wrapper input[type="text"],
    .lclb-arrow-btn,
    .lclb-price-display,
    .lclb-row-2 .lclb-field input,
    .lclb-row-message textarea {
        border-radius: 0 !important; /* Bez zaobljenja */
    }
    
    .lclb-row-submit button {
        border-radius: 0 0 6px 6px !important; /* Samo dolje - ostaje */
    }
}
/* PAYMENT SECTION */
.lclb-row-payment {
    margin-top: 0px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 0;
}

.lclb-row-payment label:hover {
    border-color: #879b45 !important;
    background: #f0f4e8 !important;
}

.lclb-row-payment > div {
    gap: 0px !important;
}

@media (max-width: 768px) {
    .lclb-row-payment {
        padding: 0 !important;
    }
    
    .lclb-row-payment > div {
        grid-template-columns: 1fr !important;
    }
    
    .lclb-row-payment label {
        border-radius: 0 !important;
    }
}
