/* realestate.css — Thailand Property style reference */

*, *::before, *::after { box-sizing: border-box; }

body {
    background-color: #ecf0f1;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #555;
    line-height: 1.42857143;
    margin: 0;
    padding: 0;
}

/* Typography */
h1 { font-size: 36px; font-weight: 500; margin: 0 0 10px; color: #333; }
h2 { font-size: 30px; font-weight: 500; margin: 0 0 10px; color: #333; }
h3 { font-size: 24px; font-weight: 500; margin: 0 0 10px; color: #333; }
h4 { font-size: 18px; font-weight: 500; margin: 0 0 10px; color: #333; }
h5 { font-size: 14px; font-weight: 600; margin: 0 0 10px; color: #333; }
h6 { font-size: 12px; font-weight: 600; margin: 0 0 10px; color: #333; }

a { color: #337ab7; text-decoration: none; }
a:hover { color: #23527c; text-decoration: underline; }

/* Cards / Panels */
.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 16px;
}

.card-header {
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    padding: 10px 16px;
    border-radius: 4px 4px 0 0;
    font-weight: 600;
    color: #333;
    width: 100%;
    box-sizing: border-box;
}

.card-header .header-row,
.card-header > div {
    margin-bottom: 0;
}

.card-body { padding: 16px; }

/* Inputs */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="password"],
input[type="date"],
select,
textarea {
    display: block;
    width: 100%;
    padding: 6px 12px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 300;
    color: #555;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #66afe9;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 400;
    font-family: inherit;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    text-decoration: none;
    transition: background .15s ease-in-out, border-color .15s ease-in-out;
}

.btn-primary   { background: #337ab7; border-color: #2e6da4; color: #fff; }
.btn-primary:hover { background: #286090; border-color: #204d74; color: #fff; text-decoration: none; }

.btn-success   { background: #5cb85c; border-color: #4cae4c; color: #fff; }
.btn-success:hover { background: #449d44; border-color: #398439; color: #fff; text-decoration: none; }

.btn-warning   { background: #f0ad4e; border-color: #eea236; color: #fff; }
.btn-warning:hover { background: #ec971f; border-color: #d58512; color: #fff; text-decoration: none; }

.btn-danger    { background: #d9534f; border-color: #d43f3a; color: #fff; }
.btn-danger:hover { background: #c9302c; border-color: #ac2925; color: #fff; text-decoration: none; }

.btn-default   { background: #fff; border-color: #ccc; color: #333; }
.btn-default:hover { background: #e6e6e6; border-color: #adadad; color: #333; text-decoration: none; }

.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 3px; }
.btn-lg { padding: 10px 16px; font-size: 18px; border-radius: 6px; }

/* Dropdown shadow */
.dropdown-menu {
    background: #fff;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
    padding: 5px 0;
    min-width: 160px;
}

/* Labels / Badges */
.label {
    display: inline-block;
    padding: 3px 7px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    color: #fff;
}
.label-primary { background: #337ab7; }
.label-success { background: #5cb85c; }
.label-info    { background: #5bc0de; }
.label-warning { background: #f0ad4e; color: #fff; }
.label-danger  { background: #d9534f; }

/* Alerts */
.alert {
    padding: 15px;
    border: 1px solid transparent;
    border-radius: 4px;
    margin-bottom: 16px;
}
.alert-success { background: #dff0d8; border-color: #d6e9c6; color: #3c763d; }
.alert-info    { background: #d9edf7; border-color: #bce8f1; color: #31708f; }
.alert-warning { background: #fcf8e3; border-color: #faebcc; color: #8a6d3b; }
.alert-danger  { background: #f2dede; border-color: #ebccd1; color: #a94442; }

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 14px;
}
.table th, .table td {
    padding: 8px;
    border-top: 1px solid #ddd;
    vertical-align: top;
    text-align: left;
}
.table thead th {
    border-bottom: 2px solid #ddd;
    font-weight: 600;
    color: #333;
}
.table-striped tbody tr:nth-child(odd) { background: #f9f9f9; }
.table-hover tbody tr:hover { background: #f5f5f5; }

/* Utility */
.text-muted   { color: #999; }
.text-primary { color: #337ab7; }
.text-success { color: #5cb85c; }
.text-warning { color: #f0ad4e; }
.text-danger  { color: #d9534f; }
.text-dark    { color: #333; }

.bg-light  { background: #f5f5f5; }
.bg-white  { background: #fff; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.p-1  { padding: 8px; }
.p-2  { padding: 16px; }
.p-3  { padding: 24px; }

.pull-right { float: right; }
.pull-left  { float: left; }
.clearfix::after { content: ""; display: table; clear: both; }

/* Overlay */
.overlay {
    position: fixed;
    display: none;
    width: 100%; height: 100%;
    top: 0; left: 0;
    background: rgba(0,0,0,0.5);
    z-index: 100;
}
