/* Seastay Search Widget - Minimal Responsive CSS */

* {
    box-sizing: border-box;
}

.seastay-dates-widget {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.dates-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.dates-form {
    width: 100%;
}

.dates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    align-items: end;
    width: 100%;
}

.dates-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0; /* Prevents overflow */
	text-align:left;
	border-right: 1px #e7effe solid;
}
.dates-field:nth-child(4) {
	border-right: 0;
}

.dates-field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dates-field input,
.dates-field select {
    width: 100%;
    padding: 0;
    font-size: 16px;
	background:#ffffff;
    border: 0;
    box-sizing: border-box;
    min-width: 0; /* Prevents overflow */
}

.dates-field input::placeholder,
.dates-field select {
    color: var(--text-dark-muted); /* match whatever color you're going for */
}

.dates-field input:focus,
.dates-field select:focus {
    outline: none !important;
    box-shadow: none !important;
    border: 0 !important;
}

.dates-search-btn {
    width: 100%;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    min-height: 48px;
    box-sizing: border-box;
}

.dates-search-btn:hover {
    opacity: 0.9;
}

/* Tablet */
@media (max-width: 1024px) {
	.dates-field {
		border-right: 0;
		border-bottom: 1px #e7effe solid;
	}
	.dates-field:nth-child(3) {
		border-right: 0;
	}
    .dates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    /* Guests field full width */
    .dates-field:nth-child(3) {
        grid-column: 1 / -1;
    }
    /* Button full width */
    .dates-field:nth-child(4) {
        grid-column: 1 / -1;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .seastay-dates-widget {
        padding: 10px;
    }
    .dates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    /* Guests field full width */
    .dates-field:nth-child(3) {
        grid-column: 1 / -1;
    }
    /* Button full width */
    .dates-field:nth-child(4) {
        grid-column: 1 / -1;
    }
    .dates-field input,
    .dates-field select {
        padding: 10px;
        font-size: 15px;
    }
    .dates-field label {
        font-size: 13px;
    }
}

/* Small Mobile - Extra precaution */
@media (max-width: 480px) {
    .seastay-dates-widget {
        padding: 8px;
    }
    .dates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    /* Guests field full width */
    .dates-field:nth-child(3) {
        grid-column: 1 / -1;
    }
    /* Button full width */
    .dates-field:nth-child(4) {
        grid-column: 1 / -1;
    }
    .dates-field input,
    .dates-field select {
        padding: 10px 8px;
        font-size: 14px;
    }
    .dates-search-btn {
        padding: 12px 16px;
        font-size: 15px;
    }
}