/* Phần tử header "Tìm villa" (inc/header-search.php). Màu chủ đạo theo theme: #0c4a6e → #0891b2 */
.cds { list-style: none; display: flex; align-items: center; margin: 0 6px; }
.cds .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* nút kính lúp trên header */
.cds-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; min-height: 0; margin: 0 !important; padding: 0; border: 0; border-radius: 999px; background: linear-gradient(135deg, #0c4a6e, #0891b2); color: #fff; box-shadow: 0 4px 14px rgba(8, 145, 178, .35); cursor: pointer; transition: transform .2s, filter .2s; }
.cds-toggle:hover { transform: translateY(-1px) scale(1.04); filter: brightness(1.08); color: #fff; }
.cds-mobile .cds-toggle { width: 36px; height: 36px; }

/* panel nổi */
html.cds-open { overflow: hidden; }
.cds-overlay { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; background: rgba(8, 20, 33, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: cds-fade .18s ease-out; }
.cds-overlay[hidden] { display: none; }
.cds-panel { width: 100%; max-width: 760px; padding: 18px 20px 20px; background: #fff; border-radius: 24px; box-shadow: 0 30px 80px rgba(12, 74, 110, .35); animation: cds-pop .22s ease-out; }
.cds-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cds-panel-title { font-size: 18px; font-weight: 700; color: #0c4a6e; }
.cds-close { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; min-height: 0; margin: 0 !important; padding: 0; border: 0; border-radius: 999px; background: #f1f5f9; color: #0c4a6e; font-size: 22px; line-height: 1; cursor: pointer; }
.cds-close:hover { background: #e2e8f0; }
@keyframes cds-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cds-pop { from { opacity: 0; transform: translateY(-12px) scale(.98); } to { opacity: 1; transform: none; } }

/* form */
.cds-form { display: flex; align-items: center; gap: 0; margin: 0; padding: 5px; background: #fff; border: 1.5px solid rgba(12, 74, 110, .16); border-radius: 999px; }
.cds-form:focus-within { border-color: #0891b2; box-shadow: 0 0 0 4px rgba(8, 145, 178, .12); }
.cds-field { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 14px; height: 44px; color: #0c4a6e; font-weight: 400; }
.cds-kw { flex: 1 1 auto; min-width: 0; }
.cds-field svg { flex-shrink: 0; opacity: .6; }
.cds-form input[type="search"], .cds-form select { margin: 0; padding: 0; height: 44px; min-height: 0; border: 0 !important; background-color: transparent !important; box-shadow: none !important; color: #0f172a; font-size: 15px; line-height: 44px; }
.cds-form input[type="search"] { width: 100%; }
.cds-form input[type="search"]::placeholder { color: #64748b; opacity: 1; }
.cds-form input[type="search"]:focus, .cds-form select:focus { outline: none; }
.cds-zone { border-left: 1px solid #e2e8f0; padding-right: 4px; }
.cds-form select { width: auto; max-width: 170px; padding-right: 22px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230c4a6e' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 4px center !important; -webkit-appearance: none; appearance: none; }
.cds-submit { display: inline-flex; flex-shrink: 0; align-items: center; gap: 6px; margin: 0 !important; padding: 0 22px; height: 44px; min-height: 0; border: 0; border-radius: 999px; background: linear-gradient(90deg, #0c4a6e, #0891b2); color: #fff; font-size: 15px; font-weight: 700; line-height: 44px; text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: 0 4px 14px rgba(8, 145, 178, .35); transition: filter .2s; }
.cds-submit:hover { filter: brightness(1.08); color: #fff; }

/* nút khu vực bấm nhanh */
.cds-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.cds-chips-label { font-size: 13px; font-weight: 600; color: #64748b; margin-right: 2px; }
.cds-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1.5px solid rgba(12, 74, 110, .16); border-radius: 999px; color: #0c4a6e; font-size: 13px; font-weight: 600; text-decoration: none; transition: all .2s; }
.cds-chip span { padding: 1px 7px; border-radius: 999px; background: rgba(12, 74, 110, .08); font-size: 11px; font-weight: 700; }
.cds-chip:hover { border-color: #0891b2; background: #ecfeff; color: #0c4a6e; }

/* điện thoại: form xếp dọc */
@media (max-width: 639px) {
	.cds-overlay { padding-top: 70px; }
	.cds-panel { padding: 14px; border-radius: 20px; }
	.cds-form { flex-wrap: wrap; gap: 8px; padding: 0; border: 0; border-radius: 0; }
	.cds-form:focus-within { box-shadow: none; }
	.cds-field { flex: 1 1 100%; border: 1.5px solid #e2e8f0; border-radius: 14px; }
	.cds-zone { border-left: 1.5px solid #e2e8f0; }
	.cds-form select { width: 100%; max-width: none; }
	.cds-submit { flex: 1 1 100%; justify-content: center; border-radius: 14px; }
}

/* menu trượt */
.cds-sidebar { margin: 10px 0; padding: 0 15px; }
.cds-sidebar .cds-form { flex-wrap: wrap; gap: 8px; width: 100%; padding: 0; border: 0; border-radius: 0; }
.cds-sidebar .cds-form:focus-within { box-shadow: none; }
.cds-sidebar .cds-field { flex: 1 1 100%; height: 40px; border: 1.5px solid #e2e8f0; border-radius: 12px; }
.cds-sidebar .cds-zone { border-left: 1.5px solid #e2e8f0; }
.cds-sidebar .cds-form input[type="search"], .cds-sidebar .cds-form select { height: 38px; line-height: 38px; }
.cds-sidebar .cds-form select { width: 100%; max-width: none; }
.cds-sidebar .cds-submit { flex: 1 1 100%; justify-content: center; height: 40px; line-height: 40px; border-radius: 12px; }
